Class BaseType
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.opcua.data.BaseType
- Direct Known Subclasses:
DataType,EnumType,FieldType,MethodType,ObjectType,ObjectTypeType,RootVariableType,VariableTypeType
Representation of an OPC UA type.
- Author:
- Jan-Hendrik Cepok, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatNodeId(String nodeId) Formats a node id in IVML.Returns the OPC UA browse name.Returns the OPC UA node description.Returns the OPC UA display name.Returns the OPC UA node id.Returns the (IVML) variable name.booleanReturns the OPC UA optional status.voidsetVarName(String varName) Defines the (IVML) variable name.toString()Formats the respective OPC UA type in IVML.static StringvalidateVarName(String varName) Validates and fixes a variable name.
-
Field Details
-
varName
-
nodeId
-
browseName
-
displayName
-
description
-
optional
private boolean optional
-
-
Constructor Details
-
BaseType
public BaseType(String nodeId, String browseName, String displayname, String description, boolean optional) Creates an OPC UA type representation.- Parameters:
nodeId- the node idbrowseName- the browse namedisplayname- the display namedescription- the descriptionoptional- whether the type is optional
-
-
Method Details
-
getVarName
Returns the (IVML) variable name.- Returns:
- the variable name
-
setVarName
Defines the (IVML) variable name.- Parameters:
varName- the variable name
-
getNodeId
Returns the OPC UA node id.- Returns:
- the node id
-
getBrowseName
Returns the OPC UA browse name.- Returns:
- the browse name
-
getDisplayname
Returns the OPC UA display name.- Returns:
- the display name
-
getDescription
Returns the OPC UA node description.- Returns:
- the node description
-
isOptional
public boolean isOptional()Returns the OPC UA optional status.- Returns:
- the optional status
-
toString
Formats the respective OPC UA type in IVML. -
formatNodeId
Formats a node id in IVML.- Parameters:
nodeId- the node id- Returns:
- the IVML representation of a node id
-
validateVarName
Validates and fixes a variable name.- Parameters:
varName- the variable name- Returns:
- the (potentially modified) variable name
-