com.prosysopc.ua.types.opcua.server
Class FileTypeNodeBase
java.lang.Object
com.prosysopc.ua.nodes.AbstractUaNode
com.prosysopc.ua.server.nodes.ServerNode
com.prosysopc.ua.server.nodes.BaseNode
com.prosysopc.ua.server.nodes.UaInstanceNode
com.prosysopc.ua.server.nodes.UaObjectNode
com.prosysopc.ua.server.nodes.AbstractGeneratedObjectNode
com.prosysopc.ua.types.opcua.server.BaseObjectTypeNode
com.prosysopc.ua.types.opcua.server.FileTypeNodeBase
- All Implemented Interfaces:
- UaInstance, UaNode, UaObject, GeneratedNode, UaCallable, BaseInstanceType, BaseObjectType, FileType
- Direct Known Subclasses:
- FileTypeNode
public abstract class FileTypeNodeBase
- extends BaseObjectTypeNode
- implements FileType
An object that represents a file that can be accessed via the server.
Generated on 2018-05-09 10:46:24
| Fields inherited from interface com.prosysopc.ua.types.opcua.FileType |
CLOSE, GET_POSITION, MIME_TYPE, OPEN, OPEN_COUNT, READ, SET_POSITION, SIZE, USER_WRITABLE, WRITABLE, WRITE |
|
Constructor Summary |
protected |
FileTypeNodeBase(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
|
Method Summary |
void |
afterCreate()
This method is called after NodeBuilder has constructed the instance, it is called for every
sub-node that also implement this interface |
org.opcfoundation.ua.builtintypes.Variant[] |
callMethod(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId methodId,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
Fallback implementation when no subtype handles the method call. |
void |
close(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
|
static FileTypeCloseMethod |
getCloseMethodImplementation()
|
UaMethod |
getCloseNode()
|
static GeneratedNodeInitializer<FileTypeNode> |
getFileTypeNodeInitializer()
|
static FileTypeGetPositionMethod |
getGetPositionMethodImplementation()
|
UaMethod |
getGetPositionNode()
|
String |
getMimeType()
|
UaProperty |
getMimeTypeNode()
|
org.opcfoundation.ua.builtintypes.UnsignedShort |
getOpenCount()
|
UaProperty |
getOpenCountNode()
|
static FileTypeOpenMethod |
getOpenMethodImplementation()
|
UaMethod |
getOpenNode()
|
org.opcfoundation.ua.builtintypes.UnsignedLong |
getPosition(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
|
static FileTypeReadMethod |
getReadMethodImplementation()
|
UaMethod |
getReadNode()
|
static FileTypeSetPositionMethod |
getSetPositionMethodImplementation()
|
UaMethod |
getSetPositionNode()
|
org.opcfoundation.ua.builtintypes.UnsignedLong |
getSize()
|
UaProperty |
getSizeNode()
|
UaProperty |
getUserWritableNode()
|
UaProperty |
getWritableNode()
|
static FileTypeWriteMethod |
getWriteMethodImplementation()
|
UaMethod |
getWriteNode()
|
Boolean |
isUserWritable()
|
Boolean |
isWritable()
|
protected abstract void |
onClose(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
|
protected abstract org.opcfoundation.ua.builtintypes.UnsignedLong |
onGetPosition(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
|
protected abstract org.opcfoundation.ua.builtintypes.UnsignedInteger |
onOpen(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedByte mode)
|
protected abstract org.opcfoundation.ua.builtintypes.ByteString |
onRead(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
Integer length)
|
protected abstract void |
onSetPosition(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.UnsignedLong position)
|
protected abstract void |
onWrite(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.ByteString data)
|
org.opcfoundation.ua.builtintypes.UnsignedInteger |
open(org.opcfoundation.ua.builtintypes.UnsignedByte mode)
|
org.opcfoundation.ua.builtintypes.ByteString |
read(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
Integer length)
|
static void |
setCloseMethodImplementation(FileTypeCloseMethod closeMethodImplementationNewValue)
|
static void |
setFileTypeNodeInitializer(GeneratedNodeInitializer<FileTypeNode> fileTypeNodeInitializerNewValue)
|
static void |
setGetPositionMethodImplementation(FileTypeGetPositionMethod getPositionMethodImplementationNewValue)
|
void |
setMimeType(String value)
|
void |
setOpenCount(int value)
|
void |
setOpenCount(org.opcfoundation.ua.builtintypes.UnsignedShort value)
|
static void |
setOpenMethodImplementation(FileTypeOpenMethod openMethodImplementationNewValue)
|
void |
setPosition(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.UnsignedLong position)
|
static void |
setReadMethodImplementation(FileTypeReadMethod readMethodImplementationNewValue)
|
static void |
setSetPositionMethodImplementation(FileTypeSetPositionMethod setPositionMethodImplementationNewValue)
|
void |
setSize(long value)
|
void |
setSize(org.opcfoundation.ua.builtintypes.UnsignedLong value)
|
void |
setUserWritable(Boolean value)
|
void |
setWritable(Boolean value)
|
static void |
setWriteMethodImplementation(FileTypeWriteMethod writeMethodImplementationNewValue)
|
void |
write(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.ByteString data)
|
| Methods inherited from class com.prosysopc.ua.server.nodes.UaObjectNode |
addCallListener, callMethod, deleteIfNodeExists, getAttributes, getAttributes, getEventNotifier, getIcon, getNodeClass, initSupportedAttributes, readAttributeValue, removeCallListener, setAttributes, setEventNotifier, setIcon, toString, writeAttributeValue |
| Methods inherited from class com.prosysopc.ua.server.nodes.BaseNode |
addPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionValue, getProperties, getProperty, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersionValue, setPropertyValue, setUserWriteMask, setWriteMask, writeAttribute |
| Methods inherited from class com.prosysopc.ua.server.nodes.ServerNode |
addComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChain |
| Methods inherited from interface com.prosysopc.ua.nodes.UaNode |
addComponent, addProperty, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeClass, getNodeId, getNodeVersion, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute |
FileTypeNodeBase
protected FileTypeNodeBase(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
afterCreate
public void afterCreate()
- Description copied from interface:
GeneratedNode
- This method is called after NodeBuilder has constructed the instance, it is called for every
sub-node that also implement this interface
- Specified by:
afterCreate in interface GeneratedNode- Overrides:
afterCreate in class BaseObjectTypeNode
getFileTypeNodeInitializer
public static GeneratedNodeInitializer<FileTypeNode> getFileTypeNodeInitializer()
setFileTypeNodeInitializer
public static void setFileTypeNodeInitializer(GeneratedNodeInitializer<FileTypeNode> fileTypeNodeInitializerNewValue)
getSizeNode
public UaProperty getSizeNode()
- Specified by:
getSizeNode in interface FileType
getSize
public org.opcfoundation.ua.builtintypes.UnsignedLong getSize()
- Specified by:
getSize in interface FileType
setSize
public void setSize(org.opcfoundation.ua.builtintypes.UnsignedLong value)
- Specified by:
setSize in interface FileType
setSize
public void setSize(long value)
getWritableNode
public UaProperty getWritableNode()
- Specified by:
getWritableNode in interface FileType
isWritable
public Boolean isWritable()
- Specified by:
isWritable in interface FileType
setWritable
public void setWritable(Boolean value)
- Specified by:
setWritable in interface FileType
getUserWritableNode
public UaProperty getUserWritableNode()
- Specified by:
getUserWritableNode in interface FileType
isUserWritable
public Boolean isUserWritable()
- Specified by:
isUserWritable in interface FileType
setUserWritable
public void setUserWritable(Boolean value)
- Specified by:
setUserWritable in interface FileType
getOpenCountNode
public UaProperty getOpenCountNode()
- Specified by:
getOpenCountNode in interface FileType
getOpenCount
public org.opcfoundation.ua.builtintypes.UnsignedShort getOpenCount()
- Specified by:
getOpenCount in interface FileType
setOpenCount
public void setOpenCount(org.opcfoundation.ua.builtintypes.UnsignedShort value)
- Specified by:
setOpenCount in interface FileType
setOpenCount
public void setOpenCount(int value)
getMimeTypeNode
public UaProperty getMimeTypeNode()
- Specified by:
getMimeTypeNode in interface FileType
getMimeType
public String getMimeType()
- Specified by:
getMimeType in interface FileType
setMimeType
public void setMimeType(String value)
- Specified by:
setMimeType in interface FileType
callMethod
public org.opcfoundation.ua.builtintypes.Variant[] callMethod(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.NodeId methodId,
org.opcfoundation.ua.builtintypes.Variant[] inputArguments,
org.opcfoundation.ua.builtintypes.StatusCode[] inputArgumentResults,
org.opcfoundation.ua.builtintypes.DiagnosticInfo[] inputArgumentDiagnosticInfos)
throws StatusException
- Description copied from class:
UaObjectNode
- Fallback implementation when no subtype handles the method call.
- Specified by:
callMethod in interface UaCallable- Overrides:
callMethod in class UaObjectNode
- Returns:
-
- Throws:
StatusException
getOpenNode
public UaMethod getOpenNode()
- Specified by:
getOpenNode in interface FileType
onOpen
protected abstract org.opcfoundation.ua.builtintypes.UnsignedInteger onOpen(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedByte mode)
throws StatusException
- Throws:
StatusException
open
public org.opcfoundation.ua.builtintypes.UnsignedInteger open(org.opcfoundation.ua.builtintypes.UnsignedByte mode)
throws StatusException
- Specified by:
open in interface FileType
- Throws:
StatusException
getOpenMethodImplementation
public static FileTypeOpenMethod getOpenMethodImplementation()
setOpenMethodImplementation
public static void setOpenMethodImplementation(FileTypeOpenMethod openMethodImplementationNewValue)
getCloseNode
public UaMethod getCloseNode()
- Specified by:
getCloseNode in interface FileType
onClose
protected abstract void onClose(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
throws StatusException
- Throws:
StatusException
close
public void close(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
throws StatusException
- Specified by:
close in interface FileType
- Throws:
StatusException
getCloseMethodImplementation
public static FileTypeCloseMethod getCloseMethodImplementation()
setCloseMethodImplementation
public static void setCloseMethodImplementation(FileTypeCloseMethod closeMethodImplementationNewValue)
getReadNode
public UaMethod getReadNode()
- Specified by:
getReadNode in interface FileType
onRead
protected abstract org.opcfoundation.ua.builtintypes.ByteString onRead(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
Integer length)
throws StatusException
- Throws:
StatusException
read
public org.opcfoundation.ua.builtintypes.ByteString read(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
Integer length)
throws StatusException
- Specified by:
read in interface FileType
- Throws:
StatusException
getReadMethodImplementation
public static FileTypeReadMethod getReadMethodImplementation()
setReadMethodImplementation
public static void setReadMethodImplementation(FileTypeReadMethod readMethodImplementationNewValue)
getWriteNode
public UaMethod getWriteNode()
- Specified by:
getWriteNode in interface FileType
onWrite
protected abstract void onWrite(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.ByteString data)
throws StatusException
- Throws:
StatusException
write
public void write(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.ByteString data)
throws StatusException
- Specified by:
write in interface FileType
- Throws:
StatusException
getWriteMethodImplementation
public static FileTypeWriteMethod getWriteMethodImplementation()
setWriteMethodImplementation
public static void setWriteMethodImplementation(FileTypeWriteMethod writeMethodImplementationNewValue)
getGetPositionNode
public UaMethod getGetPositionNode()
- Specified by:
getGetPositionNode in interface FileType
onGetPosition
protected abstract org.opcfoundation.ua.builtintypes.UnsignedLong onGetPosition(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
throws StatusException
- Throws:
StatusException
getPosition
public org.opcfoundation.ua.builtintypes.UnsignedLong getPosition(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle)
throws StatusException
- Specified by:
getPosition in interface FileType
- Throws:
StatusException
getGetPositionMethodImplementation
public static FileTypeGetPositionMethod getGetPositionMethodImplementation()
setGetPositionMethodImplementation
public static void setGetPositionMethodImplementation(FileTypeGetPositionMethod getPositionMethodImplementationNewValue)
getSetPositionNode
public UaMethod getSetPositionNode()
- Specified by:
getSetPositionNode in interface FileType
onSetPosition
protected abstract void onSetPosition(ServiceContext serviceContext,
org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.UnsignedLong position)
throws StatusException
- Throws:
StatusException
setPosition
public void setPosition(org.opcfoundation.ua.builtintypes.UnsignedInteger fileHandle,
org.opcfoundation.ua.builtintypes.UnsignedLong position)
throws StatusException
- Specified by:
setPosition in interface FileType
- Throws:
StatusException
getSetPositionMethodImplementation
public static FileTypeSetPositionMethod getSetPositionMethodImplementation()
setSetPositionMethodImplementation
public static void setSetPositionMethodImplementation(FileTypeSetPositionMethod setPositionMethodImplementationNewValue)
Copyright © 2018. All rights reserved.