org.apache.directory.shared.ldap.aci
Class ACIItemParser

java.lang.Object
  extended byorg.apache.directory.shared.ldap.aci.ACIItemParser

public class ACIItemParser
extends java.lang.Object

A reusable wrapper around the antlr generated parser for an ACIItem as defined by X.501. This class enables the reuse of the antlr parser/lexer pair without having to recreate them every time.

Version:
$Rev: 379008 $
Author:
Apache Directory Project

Constructor Summary
ACIItemParser()
          Creates a ACIItem parser.
ACIItemParser(NameComponentNormalizer normalizer)
          Creates a normalizing ACIItem parser.
 
Method Summary
 boolean isNormizing()
          Tests to see if this parser is normalizing.
 ACIItem parse(java.lang.String spec)
          Parses an ACIItem without exhausting the parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACIItemParser

public ACIItemParser()
Creates a ACIItem parser.


ACIItemParser

public ACIItemParser(NameComponentNormalizer normalizer)
Creates a normalizing ACIItem parser.

Method Detail

parse

public ACIItem parse(java.lang.String spec)
              throws java.text.ParseException
Parses an ACIItem without exhausting the parser.

Parameters:
spec - the specification to be parsed
Returns:
the specification bean
Throws:
java.text.ParseException - if there are any recognition errors (bad syntax)

isNormizing

public boolean isNormizing()
Tests to see if this parser is normalizing.

Returns:
true if it normalizes false otherwise


Copyright © 2003-2006 . All Rights Reserved.