org.newsml.toolkit
Interface TopicSet
- All Superinterfaces:
- BaseNode, CatalogNode, CommentNode, FormalName, FormalNameNode, IdNode
- public interface TopicSet
- extends CatalogNode, CommentNode, FormalName
A collection of metadata.
- Version:
- 1.0
- Author:
- Reuters PLC
getTopicSetRefCount
public int getTopicSetRefCount()
- Count the topic-set references.
- Returns:
- The number of topic-set references present.
getTopicSetRef
public TopicSetRef getTopicSetRef(int index)
- Get a reference to another topic set.
- Parameters:
index
- The index of the topic set reference, zero-based,
numbered sequentially in document order.- Returns:
- The reference, or null if none was provided at the
specified index.
getTopicSetRef
public TopicSetRef[] getTopicSetRef()
- Get all TopicSetRef children in an array.
- Returns:
- A (possibly-empty) array of TopicSetRef children.
getTopicCount
public int getTopicCount()
- Count the topics.
- Returns:
- The number of topics present.
getTopic
public Topic getTopic(int index)
- Get a topic in the topic set.
- Parameters:
index
- The index of the topic, zero-based, numbered
sequentially in document order.- Returns:
- The topic, or null if none was provided at the specified
index.
getTopic
public Topic[] getTopic()
- Get all Topic children in an array.
- Returns:
- A (possibly-empty) array of Topic children.