|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.nodes.AbstractUaNode
com.prosysopc.ua.client.nodes.UaNodeImpl
com.prosysopc.ua.client.nodes.UaTypeImpl
public abstract class UaTypeImpl
Generic type node. This is a base node type for all type nodes.
Note that the OPC UA Specification does not define or represent such a common "base class" for all type nodes. However, all type nodes support IsAbstract attribute, and the nodes exist in the Types section of the address space only.
| Field Summary | |
|---|---|
protected Class<?> |
javaClass
|
| Fields inherited from class com.prosysopc.ua.client.nodes.UaNodeImpl |
|---|
addressSpace, logger, references, supportedAttributesMap |
| Constructor Summary | |
|---|---|
protected |
UaTypeImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
protected |
UaTypeImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.LocalizedText description,
EnumSet<WriteAccess> writeMask,
EnumSet<WriteAccess> userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
Boolean isAbstract)
|
|
UaTypeImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
Create a new node with name to be used for browseName and displayName. |
| Method Summary | |
|---|---|
void |
addSubType(UaType node)
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. |
protected void |
initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
|
protected void |
readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
Read the value of an attribute. |
void |
setIsAbstract(Boolean isAbstract)
|
void |
setJavaClass(Class<?> javaClass)
|
void |
setSuperType(UaType parent)
Set the ModelParent reference. |
String |
toString()
|
protected void |
writeAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
Object value,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DateTime sourceTime,
org.opcfoundation.ua.builtintypes.UnsignedShort sourcePicoseconds)
|
| Methods inherited from class com.prosysopc.ua.nodes.AbstractUaNode |
|---|
getForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, referenceTypeInherits |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Class<?> javaClass
| Constructor Detail |
|---|
public UaTypeImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
nodeId - name - locale -
protected UaTypeImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
protected UaTypeImpl(AddressSpace addressSpace,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.LocalizedText description,
EnumSet<WriteAccess> writeMask,
EnumSet<WriteAccess> userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
Boolean isAbstract)
| Method Detail |
|---|
public void addSubType(UaType node)
UaTypeAdds a new reference of type HasSubType to the node with target set to type.
addSubType in interface UaTypenode - the node to add.public Boolean getIsAbstract()
UaTypetrue
| 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. |
getIsAbstract in interface UaTypepublic Class<?> getJavaClass()
UaTypeFor example, the node for UA DataType Int32 typically defines java.lang.Integer as the Java class.
getJavaClass in interface UaTypepublic UaType getSuperType()
getSuperType in interface UaTypeUaType.hasSuperType()public boolean hasSuperType()
hasSuperType in interface UaTypeUaType.getSuperType() returns
null.public boolean inheritsFrom(org.opcfoundation.ua.builtintypes.NodeId typeId)
UaType
inheritsFrom in interface UaTypetypeId - The NodeId of the type to check
UaType.getSuperType()public boolean inheritsFrom(UaType type)
UaType
inheritsFrom in interface UaTypetype - The NodeId of the type to check
UaType.getSuperType()public void setIsAbstract(Boolean isAbstract)
setIsAbstract in interface UaTypeisAbstract - the value to set for IsAbstractUaType.getIsAbstract()public void setJavaClass(Class<?> javaClass)
setJavaClass in interface UaTypejavaClass - the Java class to use for the type.UaType.getJavaClass()public void setSuperType(UaType parent)
UaType
setSuperType in interface UaTypeparent - the super type to set.public String toString()
toString in class UaNodeImplprotected void initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
initSupportedAttributes in class UaNodeImpl
protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
UaNodeImpl
readAttributeValue in class UaNodeImplattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.
StatusException
protected void writeAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
Object value,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DateTime sourceTime,
org.opcfoundation.ua.builtintypes.UnsignedShort sourcePicoseconds)
throws StatusException
writeAttributeValue in class UaNodeImplStatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||