com.ibm.pvc.we.ins
Class SimpleContentSource

java.lang.Object
  |
  +--com.ibm.pvc.we.ins.SimpleContentSource
All Implemented Interfaces:
ContentSource, java.io.Serializable

public abstract class SimpleContentSource
extends java.lang.Object
implements ContentSource

A SimpleContentSource is a ContentSource with a single named entity.

See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          Name of the SimpleContentSource
 
Constructor Summary
SimpleContentSource()
           
 
Method Summary
 java.lang.String getName(int i)
          Obtain the name of the single entity in this SimpleContextSource's sequence of named entities.
 int getNameCount()
          Obtain the number of named entities in this ContentSource.
static SimpleContentSource newSimpleContentSource(java.lang.String name)
          Construct a SimpleContentSource corresponding to a specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Name of the SimpleContentSource
Constructor Detail

SimpleContentSource

public SimpleContentSource()
Method Detail

newSimpleContentSource

public static SimpleContentSource newSimpleContentSource(java.lang.String name)
Construct a SimpleContentSource corresponding to a specified name.
Parameters:
name - the specified name
Returns:
a newly constructed SimpleContentSource corresponding to name

getNameCount

public int getNameCount()
Obtain the number of named entities in this ContentSource. A SimpleContentSource has a single named entity.
Specified by:
getNameCount in interface ContentSource
Returns:
1

getName

public java.lang.String getName(int i)
                         throws java.lang.IndexOutOfBoundsException
Obtain the name of the single entity in this SimpleContextSource's sequence of named entities.
Specified by:
getName in interface ContentSource
Parameters:
i - the position of the single entity, which is always 0
Returns:
the name of the single entity
Throws:
java.lang.IndexOutOfBoundsException - if i!=0