enum FastDnParser extends Enum<FastDnParser>
LdapInvalidDnException is thrown.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
hasMoreChars(org.apache.directory.api.util.Position pos)
Checks if there are more characters.
|
private static String |
matchAttributeType(char[] name,
org.apache.directory.api.util.Position pos)
Matches attribute type.
|
private static String |
matchAttributeTypeDescr(char[] name,
org.apache.directory.api.util.Position pos)
Matches attribute type descr.
|
private static String |
matchAttributeTypeNumericOid(char[] name,
org.apache.directory.api.util.Position pos)
Matches attribute type numeric OID.
|
private static void |
matchEquals(char[] name,
org.apache.directory.api.util.Position pos)
Matches the equals character.
|
private static void |
matchSpaces(char[] name,
org.apache.directory.api.util.Position pos)
Matches and forgets optional spaces.
|
private static String |
matchValue(char[] name,
org.apache.directory.api.util.Position pos)
Matches the assertion value.
|
private static char |
nextChar(char[] name,
org.apache.directory.api.util.Position pos,
boolean increment)
Gets the next character.
|
(package private) static Dn |
parse(SchemaManager schemaManager,
String name)
Parses a Dn from a String
|
(package private) static Dn |
parse(String name)
Parses a Dn from a String
|
(package private) static void |
parseDn(SchemaManager schemaManager,
String name,
Dn dn)
Parses the given name string and fills the given Dn object.
|
(package private) static String |
parseDn(SchemaManager schemaManager,
String name,
List<Rdn> rdns) |
(package private) static void |
parseRdn(SchemaManager schemaManager,
String name,
Rdn rdn)
Parses the given name string and fills the given Rdn object.
|
private static void |
parseRdnInternal(SchemaManager schemaManager,
String name,
org.apache.directory.api.util.Position pos,
Rdn rdn) |
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 nullstatic Dn parse(String name) throws LdapException
name - The Dn to parseLdapException - If the Dn was invalidstatic Dn parse(SchemaManager schemaManager, String name) throws LdapException
schemaManager - The SchemaManagername - The Dn to parseLdapException - If the Dn was invalidstatic void parseDn(SchemaManager schemaManager, String name, Dn dn) throws LdapInvalidDnException
schemaManager - The SchemaManagername - the name to parsedn - the Dn to fillLdapInvalidDnException - the invalid name exceptionstatic String parseDn(SchemaManager schemaManager, String name, List<Rdn> rdns) throws LdapInvalidDnException
LdapInvalidDnExceptionstatic void parseRdn(SchemaManager schemaManager, String name, Rdn rdn) throws LdapInvalidDnException
schemaManager - The SchemaManagername - the name to parserdn - the Rdn to fillLdapInvalidDnException - the invalid name exceptionprivate static void parseRdnInternal(SchemaManager schemaManager, String name, org.apache.directory.api.util.Position pos, Rdn rdn) throws LdapInvalidDnException
LdapInvalidDnExceptionprivate static void matchSpaces(char[] name,
org.apache.directory.api.util.Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - If some invalid chars are foundprivate static String matchAttributeType(char[] name, org.apache.directory.api.util.Position pos) throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static String matchAttributeTypeDescr(char[] name, org.apache.directory.api.util.Position pos) throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static String matchAttributeTypeNumericOid(char[] name, org.apache.directory.api.util.Position pos) throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static void matchEquals(char[] name,
org.apache.directory.api.util.Position pos)
throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static String matchValue(char[] name, org.apache.directory.api.util.Position pos) throws LdapInvalidDnException
name - the namepos - the posLdapInvalidDnException - the invalid name exceptionprivate static char nextChar(char[] name,
org.apache.directory.api.util.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(org.apache.directory.api.util.Position pos)
pos - the posCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.