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

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser
      extended by org.apache.directory.shared.ldap.schema.parsers.DITContentRuleDescriptionSchemaParser

public class DITContentRuleDescriptionSchemaParser
extends AbstractSchemaParser

A parser for RFC 4512 DIT content rule descriptons

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
DITContentRuleDescriptionSchemaParser()
          Creates a schema parser instance.
 
Method Summary
 DITContentRule parse(java.lang.String schemaDescription)
          Parses a DITContentRule description
 DITContentRule parseDITContentRuleDescription(java.lang.String ditContentRuleDescription)
          Parses a DIT content rule description according to RFC 4512:
 
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

DITContentRuleDescriptionSchemaParser

public DITContentRuleDescriptionSchemaParser()
Creates a schema parser instance.

Method Detail

parseDITContentRuleDescription

public DITContentRule parseDITContentRuleDescription(java.lang.String ditContentRuleDescription)
                                              throws java.text.ParseException
Parses a DIT content rule description according to RFC 4512:
 DITContentRuleDescription = LPAREN WSP
    numericoid                 ; object identifier
    [ SP "NAME" SP qdescrs ]   ; short names (descriptors)
    [ SP "DESC" SP qdstring ]  ; description
    [ SP "OBSOLETE" ]          ; not active
    [ SP "AUX" SP oids ]       ; auxiliary object classes
    [ SP "MUST" SP oids ]      ; attribute types
    [ SP "MAY" SP oids ]       ; attribute types
    [ SP "NOT" SP oids ]       ; attribute types
    extensions WSP RPAREN      ; extensions
 

Parameters:
ditContentRuleDescription - the DIT content rule description to be parsed
Returns:
the parsed DITContentRuleDescription bean
Throws:
java.text.ParseException - if there are any recognition errors (bad syntax)

parse

public DITContentRule parse(java.lang.String schemaDescription)
                     throws java.text.ParseException
Parses a DITContentRule description

Specified by:
parse in class AbstractSchemaParser
Parameters:
The - DITContentRule description to parse
Returns:
An instance of DITContentRule
Throws:
java.text.ParseException - If the parsing failed


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