com.prosysopc.ua
Interface RegisteredClasses

All Known Implementing Classes:
RegisteredClassesImpl

public interface RegisteredClasses

Storage for generated classes. Classes can be retrieved with the ExpandedNodeId of the type node.


Method Summary
 boolean containsClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId id)
           
 Class<? extends UaInstance> getClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId id)
          Get a previously registered class.
 void registerClass(Class<? extends UaInstance> clazz)
          Register a class to the store.
 void registerClass(Class<? extends UaInstance> clazz, org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
          Register a class to the store.
 void registerClasses(Collection<Class<? extends UaInstance>> classes)
          Register all classes in the collection.
 

Method Detail

containsClass

boolean containsClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId id)
Parameters:
id - the TypeDefinitionId to check.
Returns:
true if a class with the id is registered in the store.

getClass

Class<? extends UaInstance> getClass(org.opcfoundation.ua.builtintypes.ExpandedNodeId id)
Get a previously registered class.

Parameters:
id - The TypeDefinitionId of the type to look for. The NodeId must be defined with a namespace URI (instead of namespace index)
Returns:
the class that is registered with the id

registerClass

void registerClass(Class<? extends UaInstance> clazz)
                   throws AnnotationException
Register a class to the store.

Parameters:
clazz - the class representing the type. The Class must have the TypeDefinitionId annotation.
Throws:
AnnotationException

registerClass

void registerClass(Class<? extends UaInstance> clazz,
                   org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
Register a class to the store.

Parameters:
clazz - the class representing the type
typeDefinitionId - the TypeDefinitionId of the type. The NodeId must be defined with a namespace URI (instead of namespace index)

registerClasses

void registerClasses(Collection<Class<? extends UaInstance>> classes)
Register all classes in the collection. Classes must have TypeDefinitionId annotation.

Parameters:
classes - that are registered


Copyright © 2018. All rights reserved.