codec.adapt
Class BuilderAdapter
java.lang.Object
|
+--codec.adapt.CorbaTtcnAdapter
|
+--codec.adapt.BuilderAdapter
- public final class BuilderAdapter
- extends CorbaTtcnAdapter
Class performing adaptation of CORBA NVList introspection capabilities
to requirements of e.g. ServerReplyBuilder. Ordered collection of objects
is created so that it can be directly employed by Builder. Resulting
collection can be accessed as DynIterator.
Method Summary |
void |
create(org.omg.CORBA.NVList nvList,
org.omg.CORBA.NamedValue result,
int options)
Create OpenTTCN-compatible model of structured data from input. |
private void |
introspect(org.omg.CORBA.NameValuePair pair)
|
private void |
introspectComponents(org.omg.CORBA.DynAny dynAny)
Introspect unnamed components of DynArray, DynSequence. |
private void |
introspectStruct(org.omg.CORBA.DynStruct dynStruct)
Introspect named components of DynStruct. |
DynIterator |
iterator()
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
vector
private java.util.Vector vector
orb
private org.omg.CORBA.ORB orb
isUnionEncapsulated
private boolean isUnionEncapsulated
dynUnion_
private org.omg.CORBA.DynUnion dynUnion_
OPTIONS_SERVER_REPLY
public static final int OPTIONS_SERVER_REPLY
- Perform adaptation for Server Reply PDU.
OPTIONS_CLIENT_CALL
public static final int OPTIONS_CLIENT_CALL
- Perform adaptation for Client Call PDU.
BuilderAdapter
public BuilderAdapter()
iterator
public DynIterator iterator()
- Overrides:
- iterator in class CorbaTtcnAdapter
introspectComponents
private void introspectComponents(org.omg.CORBA.DynAny dynAny)
- Introspect unnamed components of DynArray, DynSequence.
introspectStruct
private void introspectStruct(org.omg.CORBA.DynStruct dynStruct)
- Introspect named components of DynStruct.
introspect
private void introspect(org.omg.CORBA.NameValuePair pair)
create
public void create(org.omg.CORBA.NVList nvList,
org.omg.CORBA.NamedValue result,
int options)
- Create OpenTTCN-compatible model of structured data from input.
Parameter "result" shall be set to "null" in case "options" are set
to value different from OPTIONS_SERVER_REPLY, otherwise it shall
point to the result of the operation.
- Overrides:
- create in class CorbaTtcnAdapter