public class AttributeTypeDescriptionSchemaParser extends AbstractSchemaParser
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG
The LoggerFactory used by this class
|
lexer, monitor, parser
Constructor and Description |
---|
AttributeTypeDescriptionSchemaParser()
Creates a schema parser instance.
|
Modifier and Type | Method and Description |
---|---|
AttributeType |
parse(String schemaDescription)
Parses a AttributeType description.
|
AttributeType |
parseAttributeTypeDescription(String attributeTypeDescription)
Parses a attribute type description according to RFC 4512:
|
isQuirksMode, reset, setParserMonitor, setQuirksMode, updateSchemaName
protected static final org.slf4j.Logger LOG
public AttributeTypeDescriptionSchemaParser()
public AttributeType parseAttributeTypeDescription(String attributeTypeDescription) throws ParseException
AttributeTypeDescription = LPAREN WSP numericoid ; object identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active [ SP "SUP" SP oid ] ; supertype [ SP "EQUALITY" SP oid ] ; equality matching rule [ SP "ORDERING" SP oid ] ; ordering matching rule [ SP "SUBSTR" SP oid ] ; substrings matching rule [ SP "SYNTAX" SP noidlen ] ; value syntax [ SP "SINGLE-VALUE" ] ; single-value [ SP "COLLECTIVE" ] ; collective [ SP "NO-USER-MODIFICATION" ] ; not user modifiable [ SP "USAGE" SP usage ] ; usage extensions WSP RPAREN ; extensions usage = "userApplications" / ; user "directoryOperation" / ; directory operational "distributedOperation" / ; DSA-shared operational "dSAOperation" ; DSA-specific operational extensions = *( SP xstring SP qdstrings ) xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
attributeTypeDescription
- the attribute type description to be parsedParseException
- if there are any recognition errors (bad syntax)public AttributeType parse(String schemaDescription) throws ParseException
parse
in class AbstractSchemaParser
schemaDescription
- The AttributeType description to parseParseException
- If the parsing failedCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.