org.apache.directory.api.ldap.model.schema.parsers
Class NormalizerDescriptionSchemaParser
java.lang.Object
org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser
org.apache.directory.api.ldap.model.schema.parsers.NormalizerDescriptionSchemaParser
public class NormalizerDescriptionSchemaParser
- extends AbstractSchemaParser
A parser for ApacheDS normalizer descriptions.
- Author:
- Apache Directory Project
|
Field Summary |
protected static org.slf4j.Logger |
LOG
The LoggerFactory used by this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.slf4j.Logger LOG
- The LoggerFactory used by this class
NormalizerDescriptionSchemaParser
public NormalizerDescriptionSchemaParser()
- Creates a schema parser instance.
parseNormalizerDescription
public NormalizerDescription parseNormalizerDescription(String normalizerDescription)
throws ParseException
- Parses a normalizer description:
NormalizerDescription = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
SP "FQCN" SP fqcn ; fully qualified class name
[ SP "BYTECODE" SP base64 ] ; optional base64 encoded bytecode
extensions WSP RPAREN ; extensions
base64 = *(4base64-char)
base64-char = ALPHA / DIGIT / "+" / "/"
fqcn = fqcnComponent 1*( DOT fqcnComponent )
fqcnComponent = ???
extensions = *( SP xstring SP qdstrings )
xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
- Parameters:
normalizerDescription - the normalizer description to be parsed
- Returns:
- the parsed NormalizerDescription bean
- Throws:
ParseException - if there are any recognition errors (bad syntax)
parse
public NormalizerDescription parse(String schemaDescription)
throws ParseException
- Parses a Normalizer description.
- Specified by:
parse in class AbstractSchemaParser
- Parameters:
schemaDescription - The Normalizer description to parse
- Returns:
- An instance of NormalizerDescription
- Throws:
ParseException - If the parsing failed
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.