|
||||||||||
| 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.server.nodes.ServerNode
com.prosysopc.ua.server.nodes.BaseNode
com.prosysopc.ua.server.nodes.UaTypeNode
public abstract class UaTypeNode
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.server.nodes.BaseNode |
|---|
NODE_VERSION_PROPERTY_NAME |
| Fields inherited from class com.prosysopc.ua.server.nodes.ServerNode |
|---|
eventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap |
| Constructor Summary | |
|---|---|
protected |
UaTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
protected |
UaTypeNode(NodeManagerUaNode nodeManager,
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. |
protected void |
afterAddReference(UaReference reference)
|
protected boolean |
beforeAddReference(UaReference reference)
|
UaNode |
getComponent(org.opcfoundation.ua.builtintypes.QualifiedName componentName)
Get the component, which has the specified name. |
UaTypeInstanceDeclarationHierarchy |
getInstanceDeclarationHierarchy()
|
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 |
resetInstanceDeclarationHierarchy()
|
void |
setIsAbstract(Boolean isAbstract)
|
void |
setJavaClass(Class<?> javaClass)
|
void |
setSuperType(UaType superType)
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, referenceTypeInherits |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Class<?> javaClass
| Constructor Detail |
|---|
protected UaTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
protected UaTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
nodeId - name - locale - | 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 UaNode getComponent(org.opcfoundation.ua.builtintypes.QualifiedName componentName)
UaNode
getComponent in interface UaNodegetComponent in class BaseNodecomponentName - the BrowseName of the component to get
public UaTypeInstanceDeclarationHierarchy getInstanceDeclarationHierarchy()
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 resetInstanceDeclarationHierarchy()
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 superType)
UaType
setSuperType in interface UaTypesuperType - the super type to set.public String toString()
toString in class BaseNodeprotected void afterAddReference(UaReference reference)
afterAddReference in class ServerNodeprotected boolean beforeAddReference(UaReference reference)
beforeAddReference in class ServerNodeprotected void initSupportedAttributes(List<org.opcfoundation.ua.builtintypes.UnsignedInteger> l)
initSupportedAttributes in class ServerNode
protected void readAttributeValue(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId,
org.opcfoundation.ua.builtintypes.DataValue dataValue)
throws StatusException
BaseNode
readAttributeValue in class BaseNodeattributeId - 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 BaseNodeStatusException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||