|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The top-level NewsML package.
This interface represents the root of the NewsML content tree. The NewsML specification defines packaging and metadata, but not content: in other words, a NewsML package shows how news objects go together, and provides information (metadata) about the news objects, but the objects themselves will appear in other formats (either XML-based or non XML-based).
The package contains two major parts: the news envelope
(see getNewsEnvelope()
), which is roughly equivalent to the
address on the outside of a package, and a list of news items
(see getNewsItem(int)
), which assemble collections of news objects
by theme or content.
Method Summary | |
NewsEnvelope |
getNewsEnvelope()
Get the envelope for the NewsML package. |
NewsItem[] |
getNewsItem()
Get all NewsItem children in an array. |
NewsItem |
getNewsItem(int index)
Get one of the top-level news items. |
int |
getNewsItemCount()
Count the top-level news items. |
TopicSet[] |
getTopicSet()
Get all TopicSet children in an array. |
TopicSet |
getTopicSet(int index)
Get a topic set attached to this component. |
int |
getTopicSetCount()
Get the number of topic sets present. |
Methods inherited from interface org.newsml.toolkit.BaseNode |
getAttr, getChild, getChild, getChild, getChild, getChildCount, getChildCount, getParent, getPath, getSession, getXMLName, getXPath, insertAfter, insertAfter, insertAfter, insertAfter, insertAfterDuid, insertAfterDuid, insertBefore, insertBefore, insertBefore, insertBefore, insertBeforeDuid, insertBeforeDuid, insertChild, insertChild, insertFirst, insertFirst, insertLast, insertLast, removeChild, removeChild, removeSelf, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, setAttr, setAttr, toXML, toXML, unsetAttr, unsetAttr, writeXML, writeXML |
Methods inherited from interface org.newsml.toolkit.CatalogNode |
getCatalog |
Methods inherited from interface org.newsml.toolkit.IdNode |
getDuid, getEuid |
Method Detail |
public int getTopicSetCount()
public TopicSet getTopicSet(int index)
index
- The index of the topic set, zero-based, numbered
sequentially in document order.public TopicSet[] getTopicSet()
public NewsEnvelope getNewsEnvelope()
public int getNewsItemCount()
public NewsItem getNewsItem(int index)
index
- The index of the news item, zero-based, numbered
sequentially.public NewsItem[] getNewsItem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |