directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r159165 - in directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers: ./ IAsn1Container.java
Date Sun, 27 Mar 2005 18:41:18 GMT
Author: elecharny
Date: Sun Mar 27 10:41:18 2005
New Revision: 159165

URL: http://svn.apache.org/viewcvs?view=rev&rev=159165
Log:
A first working version of the new ASN.1 LDAP decoder.

Added:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java?view=auto&rev=159165
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/containers/IAsn1Container.java
Sun Mar 27 10:41:18 2005
@@ -0,0 +1,95 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.ber.containers;
+
+import org.apache.asn1.ber.grammar.IGrammar;
+import org.apache.asn1.ber.tlv.TLV;
+import org.apache.asn1.util.pools.IPoolable;
+import org.apache.asn1.util.pools.LocalPoolManager;
+
+
+/**
+ * Every ASN1 container must implement this interface. 
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public interface IAsn1Container extends IPoolable
+{
+    //~ Methods ------------------------------------------------------------------------------------
+
+    // State accessors
+    /**
+     * @return Returns the current grammar state
+     */
+    int getState();
+
+    /**
+     * Set the new current state
+     *
+     * @param state The new state
+     */
+    void setState( int state );
+
+    /**
+     * Set the current TLV
+     *
+     * @param tlv The current TLV
+     */
+    public void setCurrentTLV( TLV tlv );
+
+    /**
+     * @return Returns the current TLV being decoded
+     */
+    public TLV getCurrentTLV();
+
+    /**
+     * @return Returns the grammar used to decode a LdapMessage.
+     */
+    public IGrammar getGrammar();
+
+    /**
+     * Set the IGrammar to use
+     *
+     * @param grammar The grammar to set.
+     */
+    public void setGrammar( IGrammar grammar );
+
+    /**
+     * Associate a pool Manager to the container
+     *
+     * @param poolManager The pool manager
+     */
+    public void setPoolManager( LocalPoolManager poolManager );
+
+    /**
+     * @return The poolManager associated with this container
+     */
+    public LocalPoolManager getPoolManager();
+
+    /**
+     * @return Returns the transition from the previous state to the new 
+     * state
+     */
+    public int getTransition();
+
+    /**
+     * Update the transition from a state to another
+     *
+     * @param transition The transition to set
+     */
+    public void setTransition( int transition );
+}



Mime
View raw message