Package org.springframework.ldap.core
Class DnParserImpl
java.lang.Object
org.springframework.ldap.core.DnParserImpl
- All Implemented Interfaces:
DnParser,DnParserImplConstants
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionDnParserImpl(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 Stringfinal LdapRdnComponentfinal Stringfinal voidDisable tracing.final DistinguishedNamedn()Parse a full Distinguished Name.final voidEnable tracing.Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final voidinput()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 LdapRdnrdn()Parse a Relative Distinguished Name.voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.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:DnParserParse a full Distinguished Name.- Specified by:
dnin interfaceDnParser- Returns:
- the
DistinguishedNamecorresponding to the parsed stream. - Throws:
ParseException
-
rdn
Description copied from interface:DnParserParse a Relative Distinguished Name.- Specified by:
rdnin 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.
-