org.apache.directory.shared.ldap.schema.parsers
Class NormalizerDescriptionSchemaParser

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser
      extended by 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
 
Fields inherited from class org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser
lexer, monitor, parser
 
Constructor Summary
NormalizerDescriptionSchemaParser()
          Creates a schema parser instance.
 
Method Summary
 NormalizerDescription parse(java.lang.String schemaDescription)
          Parses a Normalizer description
 NormalizerDescription parseNormalizerDescription(java.lang.String normalizerDescription)
          Parses a normalizer description:
 
Methods inherited from class org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser
isQuirksMode, reset, setParserMonitor, setQuirksMode, setSchemaName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.slf4j.Logger LOG
The LoggerFactory used by this class

Constructor Detail

NormalizerDescriptionSchemaParser

public NormalizerDescriptionSchemaParser()
Creates a schema parser instance.

Method Detail

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.