com.prosysopc.ua.server
Class ContentFilterDefinition
java.lang.Object
com.prosysopc.ua.server.ContentFilterDefinition
public class ContentFilterDefinition
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentFilterDefinition
public ContentFilterDefinition()
parseEventFilter
public static void parseEventFilter(NodeManagerRoot nodeManagerRoot,
org.opcfoundation.ua.core.EventFilter eventFilter,
List<List<org.opcfoundation.ua.builtintypes.QualifiedName>> fieldPaths,
ContentFilterDefinition filterDefinition,
org.opcfoundation.ua.core.EventFilterResult eventFilterResult)
- Parse an EventFilter to fieldPaths and filterDefinition.
- Parameters:
nodeManagerRoot - Node Manager used to find necessary nodes for the filtereventFilter - the filter definition received from the client applicationfieldPaths - the fieldPaths to fill infilterDefinition - the content filter definition to fill ineventFilterResult - the results of the filter evaluation
evaluate
public Boolean evaluate(EventData eventData,
Boolean defaultResult)
- Evaluates the filter against an EventData.
- Parameters:
eventData - The event data structure that is being checked. Only the fields that are
defined in the EventData are checked.defaultResult - the result in case the filter evaluates to null, due to missing fields or
fields that have value null.
- Returns:
- true if the event passes the filter, i.e. it would be sent to the client of this
monitored item.
getElementDiagnosticInfos
public org.opcfoundation.ua.builtintypes.DiagnosticInfo[] getElementDiagnosticInfos()
- Returns:
- the elementDiagnosticInfos
getElementResults
public org.opcfoundation.ua.core.ContentFilterElementResult[] getElementResults()
- Returns:
- the elementResults
parse
public void parse(org.opcfoundation.ua.core.ContentFilter contentFilter,
NodeManagerRoot nodeManagerRoot)
- Parameters:
contentFilter - nodeManagerRoot - a node manager reference to use for nodeId->node searches
Copyright © 2018. All rights reserved.