public class SimpleTypeSpecification extends Object implements UaDataTypeSpecification
UaDataTypeSpecification for simple and built-in types, that are not covered by any
other UaDataTypeSpecification.| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleTypeSpecification.Builder
Builder for
SimpleTypeSpecification. |
UaNamespaceTranslateable.Context| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isAbstract |
protected Class<?> |
javaClass |
protected String |
name |
protected UaNodeId |
typeId |
| Modifier and Type | Method and Description |
|---|---|
static SimpleTypeSpecification.Builder |
builder() |
boolean |
equals(Object obj) |
UaNodeId |
getBaseTypeId() |
Class<?> |
getJavaClass()
Returns the java Class that maps to this type.
|
String |
getName()
Returns the name of the type.
|
UaNodeId |
getTypeId()
Returns the DataType NodeId modeling the type.
|
String |
getXmlName()
Internal.
|
int |
hashCode() |
boolean |
isAbstract()
Returns true if the type is known to be abstract, false otherwise.
|
DataTypeDefinition |
toDataTypeDefinition(NamespaceTable namespaceTable)
Returns data of this
UaDataTypeSpecification as a DataTypeDefinition. |
String |
toString() |
SimpleTypeSpecification |
withTranslatedNamespaces(UaNamespaceTranslateable.Context context)
Returns a deep copy of itself where all where every namespace index and uri plus server index
and uri (see
ExpandedNodeId, UaExpandedNodeId) has been swapped based on the
given UaNamespaceTranslateable.Context. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetJavaClass, getName, getTypeId, isAbstractprotected final UaNodeId typeId
protected final String name
protected final Class<?> javaClass
protected final boolean isAbstract
public static SimpleTypeSpecification.Builder builder()
public UaNodeId getBaseTypeId()
public String getXmlName()
UaDataTypeSpecificationUaDataTypeSpecification.getName() if more context is available, such as symbolic names in NodeSet documents.
Returns same as UaDataTypeSpecification.getName() if there no such context.getXmlName in interface UaDataTypeSpecificationpublic DataTypeDefinition toDataTypeDefinition(NamespaceTable namespaceTable)
UaDataTypeSpecificationUaDataTypeSpecification as a DataTypeDefinition. This
method is mostly intended for SDK's internal use for the DataTypeDefinition Attribute's value
for UaDataType nodes, but may be useful in some complicated aggregation servers.
Note that not all UaDataTypeSpecifications can be converted to a
DataTypeDefinition (such as SimpleTypeSpecification), in which case this method
returns null. Enumeration and OptionSet-types (including 'OptionSet'-Structure subtypes, but
not the base 'OptionSet' Structure type) use EnumDefinition. Structures use
StructureDefinition.toDataTypeDefinition in interface UaDataTypeSpecificationnamespaceTable - a NamespaceTable.DataTypeDefinition based of the data of this StructureSpecification or
null in the case of SimpleTypeSpecification.public SimpleTypeSpecification withTranslatedNamespaces(UaNamespaceTranslateable.Context context)
UaNamespaceTranslateableExpandedNodeId, UaExpandedNodeId) has been swapped based on the
given UaNamespaceTranslateable.Context. Returning the same object is allowed if the type is immutable and the
result is equal to this. Note that for Structure types if the
UaDataTypeSpecification translation is active the returned type can be of different
java class.withTranslatedNamespaces in interface UaNamespaceTranslateable<UaDataTypeSpecification>public Class<?> getJavaClass()
UaDataTypeSpecificationgetJavaClass in interface UaDataTypeSpecificationpublic final String getName()
UaDataTypeSpecificationgetName in interface UaDataTypeSpecificationpublic final UaNodeId getTypeId()
UaDataTypeSpecificationgetTypeId in interface UaDataTypeSpecificationpublic boolean isAbstract()
UaDataTypeSpecificationUaDataTypeSpecification has been formed outside of client-server
communication or a NodeSet, it might not be possible to determine this information, in which
case this method returns false.isAbstract in interface UaDataTypeSpecificationCopyright © 2026. All rights reserved.