com.prosysopc.ua
Class ContentFilterBuilder

java.lang.Object
  extended by com.prosysopc.ua.ContentFilterBuilder

public class ContentFilterBuilder
extends Object

An utility class for building ContentFilter instances for MonitoredItem filters.

See the OPCUA Specification Part 4 v1.01 Section 7.4 for a detailed description of the content filter.


Constructor Summary
ContentFilterBuilder()
          Create a new builder.
ContentFilterBuilder(org.opcfoundation.ua.encoding.EncoderContext encoderContext)
          Deprecated. 
 
Method Summary
 void add(org.opcfoundation.ua.core.FilterOperator filterOperator, org.opcfoundation.ua.core.FilterOperand... operands)
          Add a new filterOperator to the contentFilter.
static void checkOperandCount(org.opcfoundation.ua.core.FilterOperator filterOperator, int operandCount)
           
 org.opcfoundation.ua.core.ContentFilter getContentFilter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentFilterBuilder

public ContentFilterBuilder()
Create a new builder.


ContentFilterBuilder

@Deprecated
public ContentFilterBuilder(org.opcfoundation.ua.encoding.EncoderContext encoderContext)
Deprecated. 

Use the no-args constructor instead. This class uses ExtensionObject lazy encodings and EncoderContext is no longer needed.

Method Detail

checkOperandCount

public static void checkOperandCount(org.opcfoundation.ua.core.FilterOperator filterOperator,
                                     int operandCount)
Parameters:
filterOperator -
operandCount -

add

public void add(org.opcfoundation.ua.core.FilterOperator filterOperator,
                org.opcfoundation.ua.core.FilterOperand... operands)
Add a new filterOperator to the contentFilter.

Parameters:
filterOperator - the operator to add
operands - the operands for the operator. The number and use of the operands depends on the operator, according to the Table 110 in the OPC UA Specification Part 4 v1.01.

getContentFilter

public org.opcfoundation.ua.core.ContentFilter getContentFilter()
Returns:


Copyright © 2018. All rights reserved.