org.newsml.toolkit
Interface NewsLine
- All Superinterfaces:
- BaseNode, IdNode
- public interface NewsLine
- extends BaseNode, IdNode
A user-defined news line.
NewsML provides several explicit types of news lines, including
the headline, subheadline, byline, dateline, and several others.
This interface represents any news lines not belonging to those
types.
- Version:
- 2.0
- Author:
- Reuters PLC
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 |
getNewsLineType
public FormalName getNewsLineType()
- The type of the extended newsline.
- Returns:
- A formal name representing the type (not null).
getNewsLineTextCount
public int getNewsLineTextCount()
- Count the text chunks.
- Returns:
- The number of text chunks present.
getNewsLineText
public OriginText getNewsLineText(int index)
- A chunk of text for the newsline.
- Returns:
- A chunk of text for the news line.
getNewsLineText
public OriginText[] getNewsLineText()
- Get all NewsLineText children in an array.
- Returns:
- A (possibly-empty) array of NewsLineText children.