public interface FieldSpecification extends UaNamespaceTranslateable<FieldSpecification>
builder() to create a
FieldSpecification.Builder.| Modifier and Type | Interface and Description |
|---|---|
static interface |
FieldSpecification.Builder
Builder for
FieldSpecification. |
UaNamespaceTranslateable.Context| Modifier and Type | Method and Description |
|---|---|
static FieldSpecification.Builder |
builder()
Creates new
FieldSpecification.Builder. |
UaArrayDimensions |
getArrayDimensions()
Returns ArrayDimensions of the field (or null if not known).
|
default Class<?> |
getCompositeClass()
Returns the "non-array" version of type (the
Class) of the field. |
UaNodeId |
getDataTypeId()
Returns the DataType node's NodeId of the UA type of this field.
|
String |
getDescription()
Returns Description of the field.
|
default UaNodeId |
getEncodeTypeId()
Mostly for internal use.
|
int |
getFieldIndex()
Returns a "field index" position of this field.
|
Class<?> |
getJavaClass()
Returns the java Class of the field.
|
int |
getJavaClassDimensions()
Returns the dimensions this field has.
|
int |
getMaxStringLength()
Maximum length of a String this field can have (or 0 if not known or the field is not a String
type).
|
String |
getName()
Returns the name of the field.
|
int |
getValueRank()
Returns the ValueRank defining the number of dimensions of the field.
|
default String |
getXmlName()
Internal.
|
boolean |
isAllowSubTypes()
Returns true if the field allows sub types to be set.
|
boolean |
isArray()
Returns true if this field is an (potentially multidimensional) array.
|
boolean |
isOptional()
Returns true if the field is optional.
|
default FieldSpecification.Builder |
toBuilder()
Return a new
FieldSpecification.Builder with the data of this
FieldSpecification preset. |
default FieldSpecification |
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. |
static FieldSpecification.Builder builder()
FieldSpecification.Builder.UaArrayDimensions getArrayDimensions()
default Class<?> getCompositeClass()
Class) of the field. For scalar values
this is the same as getJavaClass(), for array fields this is the element type of the
array.UaNodeId getDataTypeId()
String getDescription()
default UaNodeId getEncodeTypeId()
isAllowSubTypes() returns the same as
getDataTypeId(). For AllowSubTypes fields returns UaDataTypeIds.Structure for
Structure fields and UaDataTypeIds.BaseDataType for others (AllowSubTypes fields are
binary-encoded as ExtensionObject or Variant, depending on the type).int getFieldIndex()
Class<?> getJavaClass()
int getJavaClassDimensions()
getValueRank(), for scalar this returns 0.int getMaxStringLength()
String getName()
int getValueRank()
default String getXmlName()
boolean isAllowSubTypes()
boolean isArray()
boolean isOptional()
default FieldSpecification.Builder toBuilder()
FieldSpecification.Builder with the data of this
FieldSpecification preset.default FieldSpecification 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<FieldSpecification>Copyright © 2026. All rights reserved.