com.prosysopc.ua.server
Class FilterOperatorDefinition
java.lang.Object
com.prosysopc.ua.server.FilterOperatorDefinition
public class FilterOperatorDefinition
- extends Object
Parsed implementation of a single FilterOperator in a ContentFilterDefinition
|
Field Summary |
protected List<com.prosysopc.ua.server.FilterOperatorDefinition.OperandDefinition> |
operandList
|
|
Method Summary |
protected void |
applyNodeManager(NodeManagerRoot nodeManager)
|
protected Boolean |
asBoolean(org.opcfoundation.ua.builtintypes.Variant value)
Check if a Variant is null or contains a null (isEmpty) |
Object |
evaluate(EventData eventData,
Boolean ignoreNull)
|
protected Boolean |
eventTypeEquals(UaType filteredEventType,
org.opcfoundation.ua.builtintypes.NodeId filteredEventTypeId,
EventData eventData)
|
org.opcfoundation.ua.builtintypes.DiagnosticInfo |
getElementDiagnosticInfo()
|
org.opcfoundation.ua.core.ContentFilterElementResult |
getElementResult()
|
protected NodeManagerRoot |
getNodeManager()
|
protected boolean |
isNull(org.opcfoundation.ua.builtintypes.Variant value)
Check if a Variant is null or contains a null (isEmpty) |
static FilterOperatorDefinition |
newOperator(org.opcfoundation.ua.core.FilterOperator filterOperator,
org.opcfoundation.ua.builtintypes.ExtensionObject[] filterOperands,
NodeManagerRoot nodeManagerRoot,
FilterOperatorDefinition[] operatorList)
Create a new filter operator, based on the filterOperator type and operands. |
boolean |
parse(org.opcfoundation.ua.builtintypes.ExtensionObject[] filterOperands,
FilterOperatorDefinition[] operatorList,
NodeManagerRoot nodeManagerRoot)
|
protected static boolean |
setTypeOfEventData(EventData eventData,
NodeManagerUaNode nodeManager)
|
protected void |
validateOperand(com.prosysopc.ua.server.FilterOperatorDefinition.OperandDefinition operand,
int index)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operandList
protected List<com.prosysopc.ua.server.FilterOperatorDefinition.OperandDefinition> operandList
FilterOperatorDefinition
public FilterOperatorDefinition()
newOperator
public static FilterOperatorDefinition newOperator(org.opcfoundation.ua.core.FilterOperator filterOperator,
org.opcfoundation.ua.builtintypes.ExtensionObject[] filterOperands,
NodeManagerRoot nodeManagerRoot,
FilterOperatorDefinition[] operatorList)
- Create a new filter operator, based on the filterOperator type and operands.
Validates and parses the operands into the operator. If operands are invalid, respective status
codes are set.
- Parameters:
filterOperator - filterOperands - nodeManagerRoot - a node manager reference to use for mapping nodeIds to nodesoperatorList - list of operators that have been already parsed: these can be referred to
from ElementOperands
- Returns:
- the created FilterOperatorDefinition object
setTypeOfEventData
protected static boolean setTypeOfEventData(EventData eventData,
NodeManagerUaNode nodeManager)
- Parameters:
eventData -
- Returns:
-
- Throws:
StatusException
evaluate
public Object evaluate(EventData eventData,
Boolean ignoreNull)
- Parameters:
eventData - the eventData to evaluate the operator againstignoreNull - whether null values in eventData should be ignored, i.e. always return or use
null for them
- Returns:
getElementDiagnosticInfo
public org.opcfoundation.ua.builtintypes.DiagnosticInfo getElementDiagnosticInfo()
- Returns:
getElementResult
public org.opcfoundation.ua.core.ContentFilterElementResult getElementResult()
- Returns:
parse
public final boolean parse(org.opcfoundation.ua.builtintypes.ExtensionObject[] filterOperands,
FilterOperatorDefinition[] operatorList,
NodeManagerRoot nodeManagerRoot)
- Parameters:
filterOperator - the filter operatorfilterOperands - the encoded operands for the operatoroperatorList -
- Returns:
applyNodeManager
protected void applyNodeManager(NodeManagerRoot nodeManager)
throws StatusException
- Throws:
StatusException
asBoolean
protected Boolean asBoolean(org.opcfoundation.ua.builtintypes.Variant value)
- Check if a Variant is null or contains a null (isEmpty)
- Parameters:
value -
- Returns:
- true if (value == null) || value.isEmpty()
eventTypeEquals
protected Boolean eventTypeEquals(UaType filteredEventType,
org.opcfoundation.ua.builtintypes.NodeId filteredEventTypeId,
EventData eventData)
- Parameters:
filteredEventTypeId - filteredEventType - eventData -
getNodeManager
protected NodeManagerRoot getNodeManager()
- Returns:
- the nodeManager
isNull
protected boolean isNull(org.opcfoundation.ua.builtintypes.Variant value)
- Check if a Variant is null or contains a null (isEmpty)
- Parameters:
value -
- Returns:
- true if (value == null) || value.isEmpty()
validateOperand
protected void validateOperand(com.prosysopc.ua.server.FilterOperatorDefinition.OperandDefinition operand,
int index)
throws StatusException
- Parameters:
operand - index -
- Throws:
StatusException
Copyright © 2018. All rights reserved.