Calypso Gateway v1.0

codec.visit
Class InvocationAspVisitor

java.lang.Object
  |
  +--com.t3.ot.misc.VisitorImpl
        |
        +--codec.visit.BasicAspVisitor
              |
              +--codec.visit.InvocationAspVisitor
Direct Known Subclasses:
ServerCallVisitor

public class InvocationAspVisitor
extends BasicAspVisitor

Class implementing skeleton behaviour for Visitors focused on handling PDUs related to operation invocations.


Field Summary
protected  VisitorAdapter adapter
           
static int ATTR_OPTIONS_GET
           
static int ATTR_OPTIONS_SET
           
protected  int attrOptions
           
protected  long callID
          See "callidState" for explanations.
protected  int callidState
          State "callidState" indicates whether "CALL_ID" field has been processed already or not.
protected  java.util.Vector constructedContext
          Backbone for constructing "context" field.
protected  org.omg.CORBA.Context context
          Context of the requested/responded operation.
protected  int contextState
          In case "isContextPresent" is set to "true", defines the state of context construction process in the similar way as it is done for "tableState".
static int DEF_ATTRIBUTE
           
static int DEF_OPERATION
           
protected  org.omg.CORBA.Any discriminator
          Discriminator of last "union" statement.
protected  DynIterator dynIterator
           
protected  boolean isContextPresent
          Defines whether "context" clause is present in operation declaration in Interface Repository.
protected  org.omg.CORBA.NVList nvList
          NVList constructed by using Interface Repository.
protected  org.omg.CORBA.Object object
          CORBA object for which request/response is being prepared.
protected  org.omg.CORBA.Contained opAttrDef
           
protected  int opAttrDefClass
           
protected  java.lang.String[] opNameScope
          Name scope of the requested/responded operation.
protected static int STATE_CALLID_PARSED
           
protected static int STATE_CALLID_UNPARSED
           
protected static int STATE_CONTEXT_ACTIVE
           
protected static int STATE_CONTEXT_COMPLETE
           
protected static int STATE_CONTEXT_INACTIVE
           
 
Fields inherited from class codec.visit.BasicAspVisitor
asp, choiceCount, orb, pcoName, STATE_TABLE_ACTIVE, STATE_TABLE_COMPLETE, STATE_TABLE_INACTIVE, tableState
 
Fields inherited from class com.t3.ot.misc.VisitorImpl
_isGoingForward
 
Constructor Summary
InvocationAspVisitor(java.lang.String pcoName_, com.t3.ot.pco.ASP asp_)
           
 
Method Summary
protected  void checkAspFieldName(java.lang.String aspFieldName, java.lang.String paramName)
          Check that PDU field name matches the definition from Int Rep.
protected  void checkBegOfNode(DynNode dynNode, java.lang.String aspFieldName)
           
protected  boolean checkContextInCharStringValue(com.t3.ot.misc.StringValue value)
          Returns true in case value has been processed by this procedure and does not need further handling, returns false otherwise.
private  void checkContextInFinalizeVisitor()
           
protected  boolean checkContextInSequenceOfBegin(com.t3.ot.misc.StructValue value)
          Returns true in case value has been processed by this procedure and does not need further handling, returns false otherwise.
protected  boolean checkContextInSequenceOfEnd(com.t3.ot.misc.StructValue value)
          Returns true in case value has been processed by this procedure and does not need further handling, returns false otherwise.
protected  void checkDiscriminator(DynNode dynNode, java.lang.String aspFieldName)
          Check whether current PDU field has a name "seq_discriminator" and if so, save the corresponding any value to "discriminator" class field.
protected  void checkDynIterator()
          A frequently used shortcut to checking the validity of DynIterator automaton state.
protected  void checkEndOfNode(DynNode dynNode, java.lang.String aspFieldName)
           
protected  void checkLeaf(DynNode dynNode, java.lang.String aspFieldName)
           
protected  void checkTableAndCallid()
          A frequently used shortcut for checking the validity of Visitor automaton state.
protected  void finalizeVisitor()
           
 int getAttrOptions()
          Get information about whether we are having get() or set() operation on an attribute.
protected static int getDynNodeKind(DynNode dynNode)
          Obtain "kind" attribute of "namedValue".
 org.omg.CORBA.Contained getOpAttrDef()
          Get CORBA-style operation or attribute definition.
 int getOpAttrDefClass()
          Get information about whether we actually have a definition of an attribute or of a class in a manner independent from ORB vendor.
 
Methods inherited from class codec.visit.BasicAspVisitor
visitBitStringValue, visitBooleanValue, visitCharStringValue, visitChoiceBegin, visitChoiceEnd, visitEnumeratedValue, visitHexStringValue, visitIntegerValue, visitNullValue, visitObjectIdentifierBegin, visitObjectIdentifierEnd, visitOctetStringValue, visitSequenceBegin, visitSequenceEnd, visitSequenceOfBegin, visitSequenceOfEnd, visitStructValueBegin, visitStructValueEnd, visitTableBegin, visitTableEnd, visitValue
 
Methods inherited from class com.t3.ot.misc.VisitorImpl
isGoingForward, setGoBackward, visitMatchingSymbol, visitTTCNConstraintBegin, visitTTCNConstraintEnd
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

opAttrDef

protected org.omg.CORBA.Contained opAttrDef

opAttrDefClass

protected int opAttrDefClass

DEF_OPERATION

public static final int DEF_OPERATION

DEF_ATTRIBUTE

public static final int DEF_ATTRIBUTE

attrOptions

protected int attrOptions

ATTR_OPTIONS_GET

public static final int ATTR_OPTIONS_GET

ATTR_OPTIONS_SET

public static final int ATTR_OPTIONS_SET

object

protected org.omg.CORBA.Object object
CORBA object for which request/response is being prepared.

opNameScope

protected java.lang.String[] opNameScope
Name scope of the requested/responded operation.

nvList

protected org.omg.CORBA.NVList nvList
NVList constructed by using Interface Repository.

context

protected org.omg.CORBA.Context context
Context of the requested/responded operation.

isContextPresent

protected boolean isContextPresent
Defines whether "context" clause is present in operation declaration in Interface Repository.

constructedContext

protected java.util.Vector constructedContext
Backbone for constructing "context" field.

adapter

protected VisitorAdapter adapter

callidState

protected int callidState
State "callidState" indicates whether "CALL_ID" field has been processed already or not. Calypso Gateway specification requires that "CALL_ID" field shall be the first field of the TTCN PDU. In case state is set to "STATE_CALLID_PARSED", "callID" field shall be set to valid value.

STATE_CALLID_UNPARSED

protected static final int STATE_CALLID_UNPARSED

STATE_CALLID_PARSED

protected static final int STATE_CALLID_PARSED

callID

protected long callID
See "callidState" for explanations.

contextState

protected int contextState
In case "isContextPresent" is set to "true", defines the state of context construction process in the similar way as it is done for "tableState".

STATE_CONTEXT_INACTIVE

protected static final int STATE_CONTEXT_INACTIVE

STATE_CONTEXT_ACTIVE

protected static final int STATE_CONTEXT_ACTIVE

STATE_CONTEXT_COMPLETE

protected static final int STATE_CONTEXT_COMPLETE

dynIterator

protected DynIterator dynIterator

discriminator

protected org.omg.CORBA.Any discriminator
Discriminator of last "union" statement.
Constructor Detail

InvocationAspVisitor

public InvocationAspVisitor(java.lang.String pcoName_,
                            com.t3.ot.pco.ASP asp_)
                     throws com.t3.ot.misc.OtException
Method Detail

getOpAttrDef

public final org.omg.CORBA.Contained getOpAttrDef()
Get CORBA-style operation or attribute definition.

getOpAttrDefClass

public final int getOpAttrDefClass()
Get information about whether we actually have a definition of an attribute or of a class in a manner independent from ORB vendor.

getAttrOptions

public final int getAttrOptions()
Get information about whether we are having get() or set() operation on an attribute.

finalizeVisitor

protected void finalizeVisitor()
                        throws com.t3.ot.misc.OtException
Overrides:
finalizeVisitor in class BasicAspVisitor

checkContextInFinalizeVisitor

private final void checkContextInFinalizeVisitor()
                                          throws com.t3.ot.misc.OtException

checkContextInCharStringValue

protected final boolean checkContextInCharStringValue(com.t3.ot.misc.StringValue value)
                                               throws com.t3.ot.misc.OtException
Returns true in case value has been processed by this procedure and does not need further handling, returns false otherwise.

checkContextInSequenceOfBegin

protected final boolean checkContextInSequenceOfBegin(com.t3.ot.misc.StructValue value)
                                               throws com.t3.ot.misc.OtException
Returns true in case value has been processed by this procedure and does not need further handling, returns false otherwise.

checkContextInSequenceOfEnd

protected final boolean checkContextInSequenceOfEnd(com.t3.ot.misc.StructValue value)
                                             throws com.t3.ot.misc.OtException
Returns true in case value has been processed by this procedure and does not need further handling, returns false otherwise.

checkAspFieldName

protected final void checkAspFieldName(java.lang.String aspFieldName,
                                       java.lang.String paramName)
                                throws com.t3.ot.misc.OtException
Check that PDU field name matches the definition from Int Rep.

checkDiscriminator

protected final void checkDiscriminator(DynNode dynNode,
                                        java.lang.String aspFieldName)
                                 throws com.t3.ot.misc.OtException
Check whether current PDU field has a name "seq_discriminator" and if so, save the corresponding any value to "discriminator" class field.

getDynNodeKind

protected static final int getDynNodeKind(DynNode dynNode)
Obtain "kind" attribute of "namedValue".

checkTableAndCallid

protected final void checkTableAndCallid()
                                  throws com.t3.ot.misc.OtException
A frequently used shortcut for checking the validity of Visitor automaton state.

checkDynIterator

protected final void checkDynIterator()
                               throws com.t3.ot.misc.OtException
A frequently used shortcut to checking the validity of DynIterator automaton state.

checkLeaf

protected final void checkLeaf(DynNode dynNode,
                               java.lang.String aspFieldName)
                        throws com.t3.ot.misc.OtException

checkBegOfNode

protected final void checkBegOfNode(DynNode dynNode,
                                    java.lang.String aspFieldName)
                             throws com.t3.ot.misc.OtException

checkEndOfNode

protected final void checkEndOfNode(DynNode dynNode,
                                    java.lang.String aspFieldName)
                             throws com.t3.ot.misc.OtException

Calypso Gateway v1.0