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

Method Summary
 Party[] getParty()
          Get an array of all party objects.
 Party getParty(int index)
          Get one of the parties.
 int getPartyCount()
          Count the parties.
 
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.CommentNode
getComment, getComment, getCommentCount
 
Methods inherited from interface org.newsml.toolkit.IdNode
getDuid, getEuid
 

Method Detail

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.