Class FileNode
- java.lang.Object
-
- com.plccom.opc.ua.client.application.model.nodes.UaNode
-
- com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.BaseObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.FileNode
-
- Direct Known Subclasses:
AddressSpaceFileNode,TrustListNode
public class FileNode extends BaseObjectNode
PLCcom sdk FileNode Implementation for Opc Ua- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMimeType()Returns the attribute MIME_TYPE from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.UnsignedShortgetOpenCount()Returns the attribute OPEN_COUNT from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.UnsignedLonggetSize()Returns the attribute SIZE from cache or directly from connected ua serverBooleangetUserWritable()Returns the attribute USER_WRITABLE from cache or directly from connected ua serverBooleangetWritable()Returns the attribute WRITABLE from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.StatusCodesetMimeType(String value)Sets the attribute MIME_TYPE of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetOpenCount(com.plccom.opc.ua.builtintypes.UnsignedShort value)Sets the attribute OPEN_COUNT of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetSize(com.plccom.opc.ua.builtintypes.UnsignedLong value)Sets the attribute SIZE of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetUserWritable(Boolean value)Sets the attribute USER_WRITABLE of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetWritable(Boolean value)Sets the attribute WRITABLE of this node at connected ua server and refreshing the nodecache-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
browseObjectType, browseVariable, getEventNotifier, readEventNotifier, setEventNotifier, writeEventNotifier
-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaNode
getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, readBrowseName, readDescription, readDisplayName, readNodeClass, readNodeId, readUserWriteMask, readWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMask, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeUserWriteMask, writeWriteMask
-
-
-
-
Constructor Detail
-
FileNode
public FileNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)
default constructor for FileNode instances- Parameters:
client- the client instancenodeId- the based nodeid
-
-
Method Detail
-
getSize
public com.plccom.opc.ua.builtintypes.UnsignedLong getSize() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute SIZE from cache or directly from connected ua server- Returns:
- the SIZE attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setSize
public com.plccom.opc.ua.builtintypes.StatusCode setSize(com.plccom.opc.ua.builtintypes.UnsignedLong value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute SIZE of this node at connected ua server and refreshing the nodecache- Parameters:
value- the SIZE attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getWritable
public Boolean getWritable() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute WRITABLE from cache or directly from connected ua server- Returns:
- the WRITABLE attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setWritable
public com.plccom.opc.ua.builtintypes.StatusCode setWritable(Boolean value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute WRITABLE of this node at connected ua server and refreshing the nodecache- Parameters:
value- the WRITABLE attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getUserWritable
public Boolean getUserWritable() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute USER_WRITABLE from cache or directly from connected ua server- Returns:
- the USER_WRITABLE attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setUserWritable
public com.plccom.opc.ua.builtintypes.StatusCode setUserWritable(Boolean value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute USER_WRITABLE of this node at connected ua server and refreshing the nodecache- Parameters:
value- the USER_WRITABLE attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getOpenCount
public com.plccom.opc.ua.builtintypes.UnsignedShort getOpenCount() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute OPEN_COUNT from cache or directly from connected ua server- Returns:
- the OPEN_COUNT attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setOpenCount
public com.plccom.opc.ua.builtintypes.StatusCode setOpenCount(com.plccom.opc.ua.builtintypes.UnsignedShort value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute OPEN_COUNT of this node at connected ua server and refreshing the nodecache- Parameters:
value- the OPEN_COUNT attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getMimeType
public String getMimeType() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute MIME_TYPE from cache or directly from connected ua server- Returns:
- the MIME_TYPE attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setMimeType
public com.plccom.opc.ua.builtintypes.StatusCode setMimeType(String value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute MIME_TYPE of this node at connected ua server and refreshing the nodecache- Parameters:
value- the MIME_TYPE attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
-