Package org.springframework.ldap.core
Class DnParserImpl
java.lang.Object
org.springframework.ldap.core.DnParserImpl
- All Implemented Interfaces:
DnParser
,DnParserImplConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.springframework.ldap.core.DnParserImplConstants
ALPHA, ATTRIBUTE_TYPE_STRING, ATTRVALUE, ATTRVALUE_S, BACKSLASHCHAR, DEFAULT, DIGIT, EOF, ESCAPEDSTART, HASHCHAR, HEXCHAR, HEXPAIR, LDAP_OID, LEADCHAR, PAIR, QUOTECHAR, SPACE, SPACED_EQUALS, SPACED_EQUALS_S, SPECIAL, STRINGCHAR, tokenImage, TRAILCHAR
-
Constructor Summary
ConstructorDescriptionDnParserImpl
(InputStream stream) Constructor with InputStream.DnParserImpl
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingDnParserImpl
(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
final LdapRdnComponent
final String
final void
Disable tracing.final DistinguishedName
dn()
Parse a full Distinguished Name.final void
Enable tracing.Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final void
input()
input -> dn dn -> rdn ( ( "," | ";" ) rdn )* rdn -> attributeTypeAndValue ( "+" attributeTypeAndValue )* attributeTypeAndValue -> ( <SPACE> )* AttributeType SpacedEquals AttributeValue ( <SPACE> )* SpacedEquals -> <SPACED_EQUALS> AttributeType -> <LDAP_OID> | <ATTRIBUTE_TYPE_STRING> AttributeValue -> <ATTRVALUE>final LdapRdn
rdn()
Parse a Relative Distinguished Name.void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final void
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
DnParserImpl
Constructor with InputStream. -
DnParserImpl
Constructor with InputStream and supplied encoding -
DnParserImpl
Constructor. -
DnParserImpl
Constructor with generated Token Manager.
-
-
Method Details
-
input
input -> dn dn -> rdn ( ( "," | ";" ) rdn )* rdn -> attributeTypeAndValue ( "+" attributeTypeAndValue )* attributeTypeAndValue -> ( <SPACE> )* AttributeType SpacedEquals AttributeValue ( <SPACE> )* SpacedEquals -> <SPACED_EQUALS> AttributeType -> <LDAP_OID> | <ATTRIBUTE_TYPE_STRING> AttributeValue -> <ATTRVALUE>- Throws:
ParseException
-
dn
Description copied from interface:DnParser
Parse a full Distinguished Name.- Specified by:
dn
in interfaceDnParser
- Returns:
- the
DistinguishedName
corresponding to the parsed stream. - Throws:
ParseException
-
rdn
Description copied from interface:DnParser
Parse a Relative Distinguished Name.- Specified by:
rdn
in interfaceDnParser
- Returns:
- the next rdn on the stream.
- Throws:
ParseException
-
attributeTypeAndValue
- Throws:
ParseException
-
SpacedEquals
- Throws:
ParseException
-
AttributeType
- Throws:
ParseException
-
AttributeValue
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-