org.newsml.toolkit
Interface PartyList
- All Superinterfaces:
- BaseNode, CommentNode, IdNode
- All Known Subinterfaces:
- SourceList
- public interface PartyList
- extends BaseNode, CommentNode, IdNode
A list of parties connected with the NewsML package.
- 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 |
getPartyCount
public int getPartyCount()
- Count the parties.
- Returns:
- The number of parties present.
getParty
public Party getParty(int index)
- Get one of the parties.
- Parameters:
index
- The position of the party, zero-based, numbered
sequentially in document order.- Returns:
- The party, or null if none was provided at the
specified location.
getParty
public Party[] getParty()
- Get an array of all party objects.
- Returns:
- An array of Party objects, possibly empty.