org.apache.directory.api.ldap.model.schema.parsers
Class LdapSyntaxDescriptionSchemaParser
java.lang.Object
org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser
org.apache.directory.api.ldap.model.schema.parsers.LdapSyntaxDescriptionSchemaParser
public class LdapSyntaxDescriptionSchemaParser
- extends AbstractSchemaParser
A parser for RFC 4512 LDAP syntx descriptions.
- 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
LdapSyntaxDescriptionSchemaParser
public LdapSyntaxDescriptionSchemaParser()
- Creates a schema parser instance.
parseLdapSyntaxDescription
public LdapSyntax parseLdapSyntaxDescription(String ldapSyntaxDescription)
throws ParseException
- Parses a LDAP syntax description according to RFC 4512:
SyntaxDescription = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
extensions WSP RPAREN ; extensions
- Parameters:
ldapSyntaxDescription - the LDAP syntax description to be parsed
- Returns:
- the parsed LdapSyntax bean
- Throws:
ParseException - if there are any recognition errors (bad syntax)
parse
public LdapSyntax parse(String schemaDescription)
throws ParseException
- Parses a LdapSyntax description.
- Specified by:
parse in class AbstractSchemaParser
- Parameters:
schemaDescription - The LdapSyntax description to parse
- Returns:
- An instance of LdapSyntax
- Throws:
ParseException - If the parsing failed
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.