|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FastDnParser>
org.apache.directory.shared.ldap.name.FastDnParser
public enum FastDnParser
A fast LDAP DN parser that handles only simple DNs. If the DN contains
any special character an TooComplexException
is thrown.
Enum Constant Summary | |
---|---|
INSTANCE
|
Method Summary | |
---|---|
static FastDnParser |
getNameParser()
Gets the name parser singleton instance. |
DN |
parse(java.lang.String name)
Parses a DN from a String |
void |
parseDn(java.lang.String name,
DN dn)
Parses the given name string and fills the given DN object. |
void |
parseRdn(java.lang.String name,
RDN rdn)
Parses the given name string and fills the given Rdn object. |
static FastDnParser |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FastDnParser[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FastDnParser INSTANCE
Method Detail |
---|
public static FastDnParser[] values()
for (FastDnParser c : FastDnParser.values()) System.out.println(c);
public static FastDnParser valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static FastDnParser getNameParser()
public DN parse(java.lang.String name) throws LdapException
name
- The DN to parse
LdapException
- If the DN was invalidpublic void parseDn(java.lang.String name, DN dn) throws LdapInvalidDnException
name
- the name to parsedn
- the DN to fill
LdapInvalidDnException
- the invalid name exceptionpublic void parseRdn(java.lang.String name, RDN rdn) throws LdapInvalidDnException
name
- the name to parserdn
- the RDN to fill
LdapInvalidDnException
- the invalid name exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |