You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/12/26 11:31:19 UTC
svn commit: r359056 -
/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/aci/ACIItemParser.java
Author: elecharny
Date: Mon Dec 26 02:31:14 2005
New Revision: 359056
URL: http://svn.apache.org/viewcvs?rev=359056&view=rev
Log:
- Used LdapDN instead of LdapName
- No need of a constructor with a Normalizer argument
- No more init() method
Modified:
directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/aci/ACIItemParser.java
Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/aci/ACIItemParser.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/aci/ACIItemParser.java?rev=359056&r1=359055&r2=359056&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/aci/ACIItemParser.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/aci/ACIItemParser.java Mon Dec 26 02:31:14 2005
@@ -22,8 +22,6 @@
import java.io.StringReader;
import java.text.ParseException;
-import org.apache.ldap.common.name.NameComponentNormalizer;
-
import antlr.RecognitionException;
import antlr.TokenStreamException;
@@ -43,9 +41,6 @@
/** the antlr generated lexer being wrapped */
private ReusableAntlrACIItemLexer lexer;
- private final boolean isNormalizing;
-
-
/**
* Creates a ACIItem parser.
*/
@@ -53,27 +48,9 @@
{
this.lexer = new ReusableAntlrACIItemLexer( new StringReader( "" ) );
this.parser = new ReusableAntlrACIItemParser( lexer );
-
- this.parser.init(); // this method MUST be called while we cannot do
- // constructor overloading for antlr generated parser
- this.isNormalizing = false;
}
/**
- * Creates a normalizing ACIItem parser.
- */
- public ACIItemParser(NameComponentNormalizer normalizer)
- {
- this.lexer = new ReusableAntlrACIItemLexer( new StringReader( "" ) );
- this.parser = new ReusableAntlrACIItemParser( lexer );
-
- this.parser.setNormalizer( normalizer );
- this.parser.init(); // this method MUST be called while we cannot do
- // constructor overloading for antlr generated parser
- this.isNormalizing = true;
- }
-
- /**
* Initializes the plumbing by creating a pipe and coupling the
* parser/lexer pair with it.
*
@@ -123,15 +100,5 @@
}
return l_ACIItem;
- }
-
- /**
- * Tests to see if this parser is normalizing.
- *
- * @return true if it normalizes false otherwise
- */
- public boolean isNormizing()
- {
- return this.isNormalizing ;
}
}