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

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

public class LdapSyntaxDescriptionSchemaParser
extends AbstractSchemaParser

A parser for RFC 4512 LDAP syntx 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
LdapSyntaxDescriptionSchemaParser()
          Creates a schema parser instance.
 
Method Summary
 LdapSyntax parse(java.lang.String schemaDescription)
          Parses a LdapSyntax description
 LdapSyntax parseLdapSyntaxDescription(java.lang.String ldapSyntaxDescription)
          Parses a LDAP syntax 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

LdapSyntaxDescriptionSchemaParser

public LdapSyntaxDescriptionSchemaParser()
Creates a schema parser instance.

Method Detail

parseLdapSyntaxDescription

public LdapSyntax parseLdapSyntaxDescription(java.lang.String ldapSyntaxDescription)
                                      throws java.text.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:
java.text.ParseException - if there are any recognition errors (bad syntax)

parse

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

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


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