org.apache.directory.shared.ldap.schema.syntax.parser
Class NormalizerDescriptionSchemaParser

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.syntax.parser.AbstractSchemaParser
      extended by org.apache.directory.shared.ldap.schema.syntax.parser.NormalizerDescriptionSchemaParser

public class NormalizerDescriptionSchemaParser
extends AbstractSchemaParser

A parser for ApacheDS normalizer descriptions.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.schema.syntax.parser.AbstractSchemaParser
lexer, monitor, parser
 
Constructor Summary
NormalizerDescriptionSchemaParser()
          Creates a schema parser instance.
 
Method Summary
 AbstractSchemaDescription parse(java.lang.String schemaDescription)
           
 NormalizerDescription parseNormalizerDescription(java.lang.String normalizerDescription)
          Parses a normalizer description:
 
Methods inherited from class org.apache.directory.shared.ldap.schema.syntax.parser.AbstractSchemaParser
isQuirksMode, reset, setParserMonitor, setQuirksMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 AbstractSchemaDescription parse(java.lang.String schemaDescription)
                                throws java.text.ParseException
Specified by:
parse in class AbstractSchemaParser
Throws:
java.text.ParseException


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.