enum FastDnParser extends java.lang.Enum<FastDnParser>
TooComplexException is thrown.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
hasMoreChars(Position pos)
Checks if there are more characters.
|
private static java.lang.String |
matchAttributeType(char[] name,
Position pos)
Matches attribute type.
|
private static java.lang.String |
matchAttributeTypeDescr(char[] name,
Position pos)
Matches attribute type descr.
|
private static java.lang.String |
matchAttributeTypeNumericOid(char[] name,
Position pos)
Matches attribute type numeric OID.
|
private static void |
matchEquals(char[] name,
Position pos)
Matches the equals character.
|
private static void |
matchSpaces(char[] name,
Position pos)
Matches and forgets optional spaces.
|
private static java.lang.String |
matchValue(char[] name,
Position pos)
Matches the assertion value.
|
private static char |
nextChar(char[] name,
Position pos,
boolean increment)
Gets the next character.
|
(package private) static Dn |
parse(java.lang.String name)
Parses a Dn from a String
|
(package private) static void |
parseDn(java.lang.String name,
Dn dn)
Parses the given name string and fills the given Dn object.
|
(package private) static void |
parseDn(java.lang.String name,
java.util.List<Rdn> rdns) |
(package private) static void |
parseRdn(java.lang.String name,
Rdn rdn)
Parses the given name string and fills the given Rdn object.
|
private static void |
parseRdnInternal(java.lang.String name,
Position pos,
Rdn rdn) |
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.
|
public static final FastDnParser INSTANCE
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 namejava.lang.NullPointerException - if the argument is nullstatic Dn parse(java.lang.String name) throws LdapException
name - The Dn to parseLdapException - If the Dn was invalidstatic void parseDn(java.lang.String name,
Dn dn)
throws LdapInvalidDnException
name - the name to parsedn - the Dn to fillLdapInvalidDnException - the invalid name exceptionstatic void parseDn(java.lang.String name,
java.util.List<Rdn> rdns)
throws LdapInvalidDnException
LdapInvalidDnExceptionstatic void parseRdn(java.lang.String name,
Rdn rdn)
throws LdapInvalidDnException
name - the name to parserdn - the Rdn to fillLdapInvalidDnException - the invalid name exceptionprivate static void parseRdnInternal(java.lang.String name,
Position pos,
Rdn rdn)
throws LdapInvalidDnException
LdapInvalidDnExceptionprivate static void matchSpaces(char[] name,
Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnExceptionprivate static java.lang.String matchAttributeType(char[] name,
Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static java.lang.String matchAttributeTypeDescr(char[] name,
Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static java.lang.String matchAttributeTypeNumericOid(char[] name,
Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static void matchEquals(char[] name,
Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static java.lang.String matchValue(char[] name,
Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static char nextChar(char[] name,
Position pos,
boolean increment)
throws LdapInvalidDnException
name - the namepos - the posincrement - true to increment the positionLdapInvalidDnException - If no more characters are availableprivate static boolean hasMoreChars(Position pos)
pos - the pos