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 2006/04/21 18:35:44 UTC
svn commit: r395942 -
/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureGrammar.java
Author: elecharny
Date: Fri Apr 21 09:35:40 2006
New Revision: 395942
URL: http://svn.apache.org/viewcvs?rev=395942&view=rev
Log:
Added two transitions and the associated action for parameter SEQUENCE OF
Modified:
directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureGrammar.java
Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureGrammar.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureGrammar.java?rev=395942&r1=395941&r2=395942&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureGrammar.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/extended/operations/StoredProcedureGrammar.java Fri Apr 21 09:35:40 2006
@@ -175,7 +175,29 @@
// ...
// Nothing to do. The list of parameters will be created with the first parameter.
super.transitions[StoredProcedureStatesEnum.PARAMETERS_VALUE][UniversalTag.SEQUENCE_TAG] = new GrammarTransition(
- StoredProcedureStatesEnum.PARAMETERS_VALUE, StoredProcedureStatesEnum.PARAMETER_TYPE_TAG, null );
+ StoredProcedureStatesEnum.PARAMETERS_VALUE, StoredProcedureStatesEnum.PARAMETER_TAG, new GrammarAction(
+ "Stores the parameters" )
+ {
+ public void action( IAsn1Container container ) throws DecoderException
+ {
+ StoredProcedureContainer storedProcedureContainer = ( StoredProcedureContainer ) container;
+ storedProcedureContainer.grammarEndAllowed( true );
+ }
+ } );
+
+
+
+ // parameter SEQUENCE OF { (Tag)
+ // ...
+ // Nothing to do
+ super.transitions[StoredProcedureStatesEnum.PARAMETER_TAG][UniversalTag.SEQUENCE_TAG] = new GrammarTransition(
+ StoredProcedureStatesEnum.PARAMETER_TAG, StoredProcedureStatesEnum.PARAMETER_VALUE, null );
+
+ // parameter SEQUENCE OF { (Value)
+ // ...
+ // Nothing to do.
+ super.transitions[StoredProcedureStatesEnum.PARAMETER_VALUE][UniversalTag.SEQUENCE_TAG] = new GrammarTransition(
+ StoredProcedureStatesEnum.PARAMETER_VALUE, StoredProcedureStatesEnum.PARAMETER_TYPE_TAG, null );
// Parameter ::= {
// type OCTETSTRING, (Tag)
@@ -187,7 +209,7 @@
// Parameter ::= {
// type OCTETSTRING, (Value)
// ...
- // Nothing to do
+ // We can create a parameter, and store its type
super.transitions[StoredProcedureStatesEnum.PARAMETER_TYPE_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition(
StoredProcedureStatesEnum.PARAMETER_TYPE_VALUE, StoredProcedureStatesEnum.PARAMETER_VALUE_TAG, new GrammarAction(
"Store parameter type" )
@@ -240,7 +262,7 @@
// }
// Store the parameter value
super.transitions[StoredProcedureStatesEnum.PARAMETER_VALUE_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition(
- StoredProcedureStatesEnum.PARAMETER_VALUE_VALUE, StoredProcedureStatesEnum.PARAMETER_TYPE_TAG, new GrammarAction(
+ StoredProcedureStatesEnum.PARAMETER_VALUE_VALUE, StoredProcedureStatesEnum.PARAMETER_TAG, new GrammarAction(
"Store parameter value" )
{
public void action( IAsn1Container container ) throws DecoderException