Class ObjectType
- java.lang.Object
-
- de.iip_ecosphere.platform.configuration.opcua.data.BaseType
-
- de.iip_ecosphere.platform.configuration.opcua.data.ObjectType
-
- Direct Known Subclasses:
RootMethodType,RootObjectType
public class ObjectType extends BaseType
Represents an OPC UA object type (declaration).- Author:
- Jan-Hendrik Cepok, SSE
-
-
Constructor Summary
Constructors Constructor Description ObjectType(java.lang.String nodeId, java.lang.String browseName, java.lang.String displayName, java.lang.String description, boolean optional, java.lang.String type, java.util.ArrayList<FieldType> fields)Creates an OPC UA object type representation/declaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<FieldType>getFields()Returns the fields making up the type.java.lang.StringgetType()Returns the type of the object.voidsetFields(java.util.ArrayList<FieldType> fields)Changes the fields making up the type.java.lang.StringtoString()Formats the respective OPC UA type in IVML.-
Methods inherited from class de.iip_ecosphere.platform.configuration.opcua.data.BaseType
formatNodeId, getBrowseName, getDescription, getDisplayname, getNodeId, getVarName, isOptional, setVarName, validateVarName
-
-
-
-
Field Detail
-
type
private java.lang.String type
-
fields
private java.util.ArrayList<FieldType> fields
-
-
Constructor Detail
-
ObjectType
public ObjectType(java.lang.String nodeId, java.lang.String browseName, java.lang.String displayName, java.lang.String description, boolean optional, java.lang.String type, java.util.ArrayList<FieldType> fields)Creates an OPC UA object type representation/declaration.- Parameters:
nodeId- the node idbrowseName- the browse namedisplayName- the display namedescription- the descriptionoptional- whether the type is optionaltype- the type of the objectfields- the fields the object is constituted from
-
-
Method Detail
-
getType
public java.lang.String getType()
Returns the type of the object.- Returns:
- the type
-
getFields
public java.util.ArrayList<FieldType> getFields()
Returns the fields making up the type.- Returns:
- the fields
-
setFields
public void setFields(java.util.ArrayList<FieldType> fields)
Changes the fields making up the type.- Parameters:
fields- the new fields
-
-