|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FastLdapDnParser>
org.apache.directory.shared.ldap.name.FastLdapDnParser
public enum FastLdapDnParser
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 javax.naming.NameParser |
getNameParser()
Gets the name parser singleton instance. |
javax.naming.Name |
parse(java.lang.String name)
|
void |
parseDn(java.lang.String name,
LdapDN dn)
Parses the given name string and fills the given LdapDN object. |
void |
parseRdn(java.lang.String name,
Rdn rdn)
Parses the given name string and fills the given Rdn object. |
static FastLdapDnParser |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FastLdapDnParser[] |
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 FastLdapDnParser INSTANCE
| Method Detail |
|---|
public static FastLdapDnParser[] values()
for (FastLdapDnParser c : FastLdapDnParser.values()) System.out.println(c);
public static FastLdapDnParser 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 javax.naming.NameParser getNameParser()
public javax.naming.Name parse(java.lang.String name)
throws javax.naming.NamingException
parse in interface javax.naming.NameParserjavax.naming.NamingException
public void parseDn(java.lang.String name,
LdapDN dn)
throws javax.naming.InvalidNameException
name - the name to parsedn - the LdapDN to fill
javax.naming.InvalidNameException - the invalid name exception
public void parseRdn(java.lang.String name,
Rdn rdn)
throws javax.naming.InvalidNameException
name - the name to parserdn - the RDN to fill
javax.naming.InvalidNameException - the invalid name exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||