|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UaType
Common interface for all UA Types.
Note that the specification does not define any generic behavior for types and there is no specific node class, called type.
This interface is defined solely to make it possible to classify the UA types from the instances.
UaDataType,
UaObjectType,
UaReferenceType,
UaVariableType| Method Summary | |
|---|---|
void |
addSubType(UaType type)
Add a new sub type for the type. |
Boolean |
getIsAbstract()
A boolean Attribute with the following values: true
it is an abstract Type, i.e. no instances of this type shall exist, only of its subtypes. |
Class<?> |
getJavaClass()
Defines a Java class which is used to keep data of the specified UA type. |
UaType |
getSuperType()
|
boolean |
hasSuperType()
|
boolean |
inheritsFrom(org.opcfoundation.ua.builtintypes.NodeId typeId)
Check if the type inherits from the specified type. |
boolean |
inheritsFrom(UaType type)
Check if the type inherits from the specified type. |
void |
setIsAbstract(Boolean isAbstract)
|
void |
setJavaClass(Class<?> javaClass)
|
void |
setSuperType(UaType parent)
Set the ModelParent reference. |
| Method Detail |
|---|
void addSubType(UaType type)
Adds a new reference of type HasSubType to the node with target set to type.
type - the node to add.Boolean getIsAbstract()
true
| it is an abstract Type, i.e. no instances of this type shall exist, only of its subtypes. |
false
| it is not an abstract Type, i.e. instances of this type can exist. |
Class<?> getJavaClass()
For example, the node for UA DataType Int32 typically defines java.lang.Integer as the Java class.
UaType getSuperType()
hasSuperType()boolean hasSuperType()
getSuperType() returns
null.boolean inheritsFrom(org.opcfoundation.ua.builtintypes.NodeId typeId)
typeId - The NodeId of the type to check
getSuperType()boolean inheritsFrom(UaType type)
type - The NodeId of the type to check
getSuperType()void setIsAbstract(Boolean isAbstract)
isAbstract - the value to set for IsAbstractgetIsAbstract()void setJavaClass(Class<?> javaClass)
javaClass - the Java class to use for the type.getJavaClass()void setSuperType(UaType parent)
parent - the super type to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||