org.newsml.toolkit
Interface Comment
- All Superinterfaces:
- BaseNode, IdNode, IdText, LanguageNode, Text
- public interface Comment
- extends IdText, LanguageNode
A comment node in a NewsML document.
Many different element types in a NewsML document can have prose
comments attached, possibly in multiple languages. These are not
to be confused with XML comments (<!-- ... -->), which are
discarded during import.
- Version:
- 1.1beta
- Author:
- Reuters PLC
Methods inherited from interface org.newsml.toolkit.BaseNode |
getChild, getChild, getChild, getChild, getChildCount, getChildCount, getParent, getPath, getSession, getXMLName, getXPath, removeSelf, toXML, toXML, writeXML, writeXML |
getTranslationOf
public Text getTranslationOf()
- Get the identifier of another comment translated by this one.
- Returns:
- Text containing the Duid of the original version of
this comment.
- See Also:
getReferencedComment()
getReferencedComment
public Comment getReferencedComment()
throws IOException
- Get the comment referenced by TranslationOf.
- Returns:
- The referenced comment, or null if not found.
- Throws:
NewsMLException
- if the referenced node is not a comment.- See Also:
getTranslationOf()