Class BaseType
- java.lang.Object
-
- de.iip_ecosphere.platform.configuration.opcua.data.BaseType
-
- Direct Known Subclasses:
DataType,EnumType,FieldType,MethodType,ObjectType,ObjectTypeType,RootVariableType,VariableTypeType
public abstract class BaseType extends java.lang.ObjectRepresentation of an OPC UA type.- Author:
- Jan-Hendrik Cepok, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringbrowseNameprivate java.lang.Stringdescriptionprivate java.lang.StringdisplayNameprivate java.lang.StringnodeIdprivate booleanoptionalprivate java.lang.StringvarName
-
Constructor Summary
Constructors Constructor Description BaseType(java.lang.String nodeId, java.lang.String browseName, java.lang.String displayname, java.lang.String description, boolean optional)Creates an OPC UA type representation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatNodeId(java.lang.String nodeId)Formats a node id in IVML.java.lang.StringgetBrowseName()Returns the OPC UA browse name.java.lang.StringgetDescription()Returns the OPC UA node description.java.lang.StringgetDisplayname()Returns the OPC UA display name.java.lang.StringgetNodeId()Returns the OPC UA node id.java.lang.StringgetVarName()Returns the (IVML) variable name.booleanisOptional()Returns the OPC UA optional status.voidsetVarName(java.lang.String varName)Defines the (IVML) variable name.java.lang.StringtoString()Formats the respective OPC UA type in IVML.static java.lang.StringvalidateVarName(java.lang.String varName)Validates and fixes a variable name.
-
-
-
Constructor Detail
-
BaseType
public BaseType(java.lang.String nodeId, java.lang.String browseName, java.lang.String displayname, java.lang.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 Detail
-
getVarName
public java.lang.String getVarName()
Returns the (IVML) variable name.- Returns:
- the variable name
-
setVarName
public void setVarName(java.lang.String varName)
Defines the (IVML) variable name.- Parameters:
varName- the variable name
-
getNodeId
public java.lang.String getNodeId()
Returns the OPC UA node id.- Returns:
- the node id
-
getBrowseName
public java.lang.String getBrowseName()
Returns the OPC UA browse name.- Returns:
- the browse name
-
getDisplayname
public java.lang.String getDisplayname()
Returns the OPC UA display name.- Returns:
- the display name
-
getDescription
public java.lang.String 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
public java.lang.String toString()
Formats the respective OPC UA type in IVML.- Overrides:
toStringin classjava.lang.Object- Returns:
- the IVML representation of the OPC UA type
-
formatNodeId
public static java.lang.String formatNodeId(java.lang.String nodeId)
Formats a node id in IVML.- Parameters:
nodeId- the node id- Returns:
- the IVML representation of a node id
-
validateVarName
public static java.lang.String validateVarName(java.lang.String varName)
Validates and fixes a variable name.- Parameters:
varName- the variable name- Returns:
- the (potentially modified) variable name
-
-