org.newsml.toolkit
Interface RevisionStatus

All Superinterfaces:
BaseNode, IdNode

public interface RevisionStatus
extends BaseNode, IdNode

A new status for a previous revision.

The RevisionStatus provides a new status for a previous revision as a result of the release of the current revision: in plain English, now the new version of the news item is out, the status of the old one is as follows...

Version:
2.0
Author:
Reuters PLC

Method Summary
 Text getRevision()
          Get the revision to which the new status applies.
 FormalName getStatus()
          Get the new status for the past revision.
 
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.IdNode
getDuid, getEuid
 

Method Detail

getStatus

public FormalName getStatus()
Get the new status for the past revision.
Returns:
A formal name representing the new status (not null).
See Also:
getRevision()

getRevision

public Text getRevision()
Get the revision to which the new status applies.

To get the integer value, use the Text.toInt() method in the Text object returned.

Returns:
Text containing positive integer indicating the previous revision, or -1 to indicate all previous revisions.