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.0
- Author:
- Reuters PLC
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.