com.ibm.uddi.datatypes
Class NameList
java.lang.Object
|
+--com.ibm.uddi.datatypes.NameList
- All Implemented Interfaces:
- java.io.Serializable
- public class NameList
- extends java.lang.Object
- implements java.io.Serializable
Corresponds to UDDI v2.0 sequence of 'name' elements.
Encapsulates a Vector of Name
objects.
- See Also:
- Serialized Form
Constructor Summary |
NameList()
Constructs a new, empty NameList. |
NameList(int initialSize)
Constructs a new, empty NameList, with the initial capacity specified. |
NameList(Name initialName)
Construct a NameList with an initial Name . |
Method Summary |
void |
add(Name name)
Adds a Name to the NameList. |
Name |
get(int index)
Returns the Name at the specified index. |
int |
size()
Returns the number of Name objects in the NameList. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
java_copyright
public static final java.lang.String java_copyright
NameList
public NameList()
- Constructs a new, empty NameList.
NameList
public NameList(int initialSize)
- Constructs a new, empty NameList, with the initial capacity specified.
- Parameters:
initialSize
- the initial capacity of the NameList.
NameList
public NameList(Name initialName)
- Construct a NameList with an initial
Name
.
- Parameters:
initialName
- an initial Name to put into the NameList
add
public void add(Name name)
- Adds a
Name
to the NameList.
- Parameters:
name
- the Name to be added.
get
public Name get(int index)
- Returns the
Name
at the specified index.
- Parameters:
int
- the index of the Name to be retrieved.- Returns:
- the Name at the specified index.
size
public int size()
- Returns the number of
Name
objects in the NameList.
- Returns:
- the number of Name objects in the NameList.