|
OracleVirtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.octetstring.vde.syntax.Syntax
com.octetstring.vde.syntax.DirectoryString
com.octetstring.vde.syntax.DistinguishedName
public class DistinguishedName
Class representing a Directory String syntax (case insensitive string)
Field Summary | |
---|---|
static DistinguishedName |
EMPTY_DN |
Constructor Summary | |
---|---|
DistinguishedName() Create an empty distinguished name |
|
DistinguishedName(byte[] bytes) Create a directory string from the given byte array. |
|
DistinguishedName(byte[] bytes, int hashCode) Create a directory string from the given byte array, but skip the computation of the hashCode. |
|
DistinguishedName(DirectoryString dn) |
|
DistinguishedName(java.util.List<javax.naming.ldap.Rdn> rdnComponents) |
|
DistinguishedName(java.lang.String data) Create a new directory string from the given String. |
Method Summary | |
---|---|
DistinguishedName |
concat(DistinguishedName baseDN) This method creates a new DN that is a descendant of this DN, using the specified DN as a relative base DN. |
boolean |
equals(java.lang.Object obj) Determine if this Distinguished Name equals another. |
java.lang.String |
escapeSlashes() |
int |
getNumberOfRDNs() |
DistinguishedName |
getParent() |
java.lang.String |
getRDN() |
javax.naming.ldap.Rdn |
getRDN(int position) |
DistinguishedName |
getRelativeDN(DistinguishedName baseDN) |
byte[] |
getValue() Get this directory string as a byte array. |
int |
indexOf(DirectoryString indexString) Find the first occurance of the index string in this directory string. |
boolean |
isAncestorOf(DistinguishedName dn) This method determines whether this DN is an ancestor of the specified DN. |
boolean |
isDescendantOf(DistinguishedName dn) This method determines whether this DN is a descendant of the specified DN. |
boolean |
isEmptyDN() |
java.lang.String |
normalize() Retrieves a normalized string representation of this DN. |
void |
setDirectoryString(java.lang.String directoryString) Sets the value of this distinguished name using a string. |
void |
setValue(byte[] value) Sets the value of this directory string from an array of bytes |
static DistinguishedName |
toDNSyntax(DirectoryString dn) |
javax.naming.Name |
toName() |
Methods inherited from class com.octetstring.vde.syntax.DirectoryString |
---|
clone, compareTo, compareTo, endsWith, endsWith, equals, getBytes, getDirectoryBytes, getDirectoryChars, getDirectoryString, hashCode, indexOf, length, reverse, setDirectoryBytes, setValue, startsWith, startsWith, substring, toString, validate |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DistinguishedName EMPTY_DN
Constructor Detail |
---|
public DistinguishedName()
public DistinguishedName(java.util.List<javax.naming.ldap.Rdn> rdnComponents)
public DistinguishedName(DirectoryString dn) throws InvalidDNException
InvalidDNException
public DistinguishedName(byte[] bytes) throws InvalidDNException
bytes
- a byte[]
valueInvalidDNException
public DistinguishedName(byte[] bytes, int hashCode) throws InvalidDNException
bytes
- a byte[]
valuehashCode
- an int
valueInvalidDNException
public DistinguishedName(java.lang.String data)
data
- a String
valueMethod Detail |
---|
public java.lang.String getRDN()
public javax.naming.ldap.Rdn getRDN(int position)
public javax.naming.Name toName()
public DistinguishedName getParent()
public boolean isDescendantOf(DistinguishedName dn)
public boolean isAncestorOf(DistinguishedName dn)
public DistinguishedName concat(DistinguishedName baseDN)
baseDN
- The relative base DN to concatenate onto this DN.public DistinguishedName getRelativeDN(DistinguishedName baseDN)
public int getNumberOfRDNs()
public boolean isEmptyDN()
public java.lang.String normalize()
normalize
in class DirectoryString
public boolean equals(java.lang.Object obj)
equals
in class DirectoryString
obj
- an Object
valueboolean
valuepublic int indexOf(DirectoryString indexString)
indexOf
in class DirectoryString
indexString
- a DirectoryString
valueint
valuepublic void setDirectoryString(java.lang.String directoryString)
setDirectoryString
in class DirectoryString
directoryString
- a String
valuepublic void setValue(byte[] value)
setValue
in class DirectoryString
value
- a byte[]
valuepublic byte[] getValue()
DirectoryString
getValue
in class DirectoryString
byte[]
valuepublic java.lang.String escapeSlashes()
public static DistinguishedName toDNSyntax(DirectoryString dn) throws InvalidDNException
InvalidDNException
|
OracleVirtual Directory Java API Reference 11g Release 1 (11.1.1) E10688-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |