org.apache.directory.shared.ldap.trigger
Class TriggerSpecificationParser

java.lang.Object
  extended by org.apache.directory.shared.ldap.trigger.TriggerSpecificationParser

public class TriggerSpecificationParser
extends java.lang.Object

A reusable wrapper around the ANTLR generated parser for a TriggerSpecification. This class enables the reuse of the antlr parser/lexer pair without having to recreate them every time.

Version:
$Rev:$, $Date:$
Author:
Apache Directory Project

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

Constructor Detail

TriggerSpecificationParser

public TriggerSpecificationParser()
Creates a TriggerSpecification parser.


TriggerSpecificationParser

public TriggerSpecificationParser(NormalizerMappingResolver resolver)
Creates a normalizing TriggerSpecification parser.

Method Detail

parse

public TriggerSpecification parse(java.lang.String spec)
                           throws java.text.ParseException
Parses an TriggerSpecification 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-2011 Apache Software Foundation. All Rights Reserved.