|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.AbstractStructure
com.prosysopc.ua.typedictionary.DynamicStructure
public class DynamicStructure
A Structure implementation that handles multiple structure types. Note that a given
instance of this class is always a certain Structure type determined at construction time.
| Constructor Summary | |
|---|---|
DynamicStructure(StructureSpecification specification)
Create a new Structure based on the specification given. |
|
| Method Summary | |
|---|---|
void |
clear()
After calling this all fields have null value (Optional Fields are not present and Union is Null). |
DynamicStructure |
clone()
|
boolean |
equals(Object obj)
|
Object |
get(FieldSpecification field)
Get the value of the given field. |
Object |
get(String fieldName)
Get the value of the given field. |
org.opcfoundation.ua.builtintypes.ExpandedNodeId |
getBinaryEncodeId()
|
List<String> |
getFieldNames()
Returns the field names of the Structure as unmodifiable list. |
List<FieldSpecification> |
getFields()
Returns the fields of the Structure as unmodifiable list. |
StructureSpecification |
getSpecification()
Returns the specification of this structure. |
org.opcfoundation.ua.builtintypes.ExpandedNodeId |
getTypeId()
|
org.opcfoundation.ua.builtintypes.ExpandedNodeId |
getXmlEncodeId()
|
int |
hashCode()
|
void |
set(FieldSpecification field,
Object value)
Sets a new value for a field. |
void |
set(String fieldName,
Object value)
Sets a new value for a field. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicStructure(StructureSpecification specification)
TypeDictionary.decode(org.opcfoundation.ua.builtintypes.ExtensionObject) instead.
specification - the specification, cannot be null| Method Detail |
|---|
public void clear()
public DynamicStructure clone()
clone in interface org.opcfoundation.ua.builtintypes.Structureclone in class org.opcfoundation.ua.utils.AbstractStructurepublic boolean equals(Object obj)
equals in class Objectpublic Object get(FieldSpecification field)
field - the field
IllegalArgumentException - if the given field is not one of getFields()public Object get(String fieldName)
getFields() names.
fieldName - name of the field
IllegalArgumentException - if the given field does not exist.public org.opcfoundation.ua.builtintypes.ExpandedNodeId getBinaryEncodeId()
public List<String> getFieldNames()
getFields() if you need type information.
public List<FieldSpecification> getFields()
public StructureSpecification getSpecification()
public org.opcfoundation.ua.builtintypes.ExpandedNodeId getTypeId()
public org.opcfoundation.ua.builtintypes.ExpandedNodeId getXmlEncodeId()
public int hashCode()
hashCode in class Object
public void set(FieldSpecification field,
Object value)
getFields(). Setting an Optional Field to null will make it not present for encoding.
Setting a Field in an Union will unset other fields.
field - the field, must be one of the getFields().value - new value for the given field, can be null.
IllegalArgumentException - if the given field is not one of getFields()
public void set(String fieldName,
Object value)
getFields() names. Setting an Optional Field to null will make it not present for
encoding. Setting a Field in an Union will unset other fields.
fieldName - the field, must be one of the getFields().value - new value for the given field, can be null.
IllegalArgumentException - if the given field is not one of getFields()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||