org.apache.directory.shared.ldap.schema.parsers
Class NormalizerDescriptionSchemaParser
java.lang.Object
org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser
org.apache.directory.shared.ldap.schema.parsers.NormalizerDescriptionSchemaParser
public class NormalizerDescriptionSchemaParser
- extends AbstractSchemaParser
A parser for ApacheDS normalizer descriptions.
- Version:
- $Rev$, $Date$
- 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(java.lang.String normalizerDescription)
throws java.text.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:
java.text.ParseException
- if there are any recognition errors (bad syntax)
parse
public NormalizerDescription parse(java.lang.String schemaDescription)
throws java.text.ParseException
- Parses a Normalizer description
- Specified by:
parse
in class AbstractSchemaParser
- Parameters:
The
- Normalizer description to parse
- Returns:
- An instance of NormalizerDescription
- Throws:
java.text.ParseException
- If the parsing failed
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.