org.apache.directory.api.ldap.model.schema.parsers
Class DitContentRuleDescriptionSchemaParser
java.lang.Object
org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser
org.apache.directory.api.ldap.model.schema.parsers.DitContentRuleDescriptionSchemaParser
public class DitContentRuleDescriptionSchemaParser
- extends AbstractSchemaParser
A parser for RFC 4512 DIT content rule descriptons
- 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
DitContentRuleDescriptionSchemaParser
public DitContentRuleDescriptionSchemaParser()
- Creates a schema parser instance.
parseDITContentRuleDescription
public DitContentRule parseDITContentRuleDescription(String ditContentRuleDescription)
throws 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:
ParseException - if there are any recognition errors (bad syntax)
parse
public DitContentRule parse(String schemaDescription)
throws ParseException
- Parses a DitContentRule description.
- Specified by:
parse in class AbstractSchemaParser
- Parameters:
schemaDescription - The DitContentRule description to parse
- Returns:
- An instance of DitContentRule
- Throws:
ParseException - If the parsing failed
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.