com.ibm.pvc.we.ins
Interface ContentSource
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- SimpleContentSource
- public interface ContentSource
- extends java.io.Serializable
A ContentSource is an ordered collection of one or more entities producing
incoming messages. Each of these entities has a name.
|
Method Summary |
java.lang.String |
getName(int i)
The name of the entity at a given position in this ContextSource's
sequence of named entities. |
int |
getNameCount()
Obtain the number of named entities in this ContentSource. |
getNameCount
public int getNameCount()
- Obtain the number of named entities in this ContentSource.
- Returns:
- the number of named entities in this ContentSource
getName
public java.lang.String getName(int i)
throws java.lang.IndexOutOfBoundsException
- The name of the entity at a given position in this ContextSource's
sequence of named entities. Position numbers range from zero
to getNameCount()-1.
- Parameters:
i - the given position- Returns:
- the name of the entity at position
i - Throws:
java.lang.IndexOutOfBoundsException - if i<0 or i>=getNameCount()