|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.dataservices.model.CompoundDN
The CompoundDN class represents a sequence of distinguished names that can be used to represent a series of related entities.
DistinguishedName
,
Serialized FormConstructor Summary | |
---|---|
CompoundDN()
Default constructor. |
|
CompoundDN(CompoundDN compoundDN)
Constructs with a CompoundDN object |
|
CompoundDN(DistinguishedName baseDN)
Constructs with an initial base distinguished name. |
Method Summary | |
---|---|
void |
append(DistinguishedName dn)
Adds a distinguished name to the end of the object. |
boolean |
contains(DistinguishedName dn)
Returns whether the given distinguished name is contained within the object. |
DistinguishedName |
first()
Returnst the first distinguished name of the object. |
DistinguishedName |
get(int index)
Returns the distinguished name at the given index, or position, in the object. |
java.util.Collection |
getDNs()
Returns all distinguished names in a collection. |
DistinguishedName |
last()
Returnst the last distinguished name of the object. |
void |
prepend(DistinguishedName dn)
Prepends a distinguished name to the front of the object. |
DistinguishedName |
remove(int index)
Removes the distinguished name at the given index. |
void |
replace(int index,
DistinguishedName dn)
Replaces the distinguished name at the given index. |
int |
size()
Returns the number of distinguished names in the object. |
java.lang.String |
toString()
Return the String representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompoundDN()
public CompoundDN(DistinguishedName baseDN)
baseDN
- Initial base DistinguishedName.public CompoundDN(CompoundDN compoundDN)
compoundDN
- Initial CompoundDN object.Method Detail |
public void append(DistinguishedName dn)
dn
- DistinguishedName to add.public void prepend(DistinguishedName dn)
dn
- DistinguishedName to prepend.public java.util.Collection getDNs()
public boolean contains(DistinguishedName dn)
dn
- DistinguishedName to check for.
public DistinguishedName get(int index)
index
- position of DistinguishedName to return
java.lang.ArrayIndexOutOfBoundsException
- Thrown if index out of
range (index < 0 || index >= size()).public DistinguishedName first()
java.util.NoSuchElementException
- Thrown if object is empty.public DistinguishedName last()
java.util.NoSuchElementException
- Thrown if object is empty.public int size()
public void replace(int index, DistinguishedName dn)
index
- Index of the distinguished name to replace. Indecies
start at 0.dn
- Replacement DistinguishedName.
java.lang.ArrayIndexOutOfBoundsException
- Thrown if index out of
range (index < 0 || index >= size()).public DistinguishedName remove(int index)
index
- Index of the distinguished name to remove. Indecies
start at 0.
java.lang.ArrayIndexOutOfBoundsException
- Thrown if index out of
range (index < 0 || index >= size()).public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |