public enum FastDnParser extends Enum<FastDnParser>
TooComplexException is thrown.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static FastDnParser |
getNameParser()
Gets the name parser singleton instance.
|
DN |
parse(String name)
Parses a DN from a String
|
void |
parseDn(String name,
DN dn)
Parses the given name string and fills the given DN object.
|
void |
parseRdn(String name,
RDN rdn)
Parses the given name string and fills the given Rdn object.
|
static FastDnParser |
valueOf(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.
|
public static final FastDnParser INSTANCE
public static FastDnParser[] values()
for (FastDnParser c : FastDnParser.values()) System.out.println(c);
public static FastDnParser valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static FastDnParser getNameParser()
public DN parse(String name) throws LdapException
name - The DN to parseLdapException - If the DN was invalidpublic void parseDn(String name, DN dn) throws LdapInvalidDnException
name - the name to parsedn - the DN to fillLdapInvalidDnException - the invalid name exceptionpublic void parseRdn(String name, RDN rdn) throws LdapInvalidDnException
name - the name to parserdn - the RDN to fillLdapInvalidDnException - the invalid name exceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.