com.sas.iquery.metadata.expr.relational
Class SimpleConditionalExpression_Contains
com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Contains
All Implemented Interfaces: Base , BusinessModelResourceReferencer , CascadableFilter , ModelItem , UsabilityInterface , ExpressionInterface , PropertyChangeListenee , java.beans.PropertyChangeListener , java.lang.Cloneable , java.util.EventListener
public class SimpleConditionalExpression_Contains implements BusinessModelResourceReferencer
Models the CONTAINS simple conditional expression, which has the following abstract form:
<WhatToCompare> CONTAINS <WhatToContain>
EVENT_WHAT_TO_COMPARE_CHANGED
public static final java.lang.String EVENT_WHAT_TO_COMPARE_CHANGED
See Also: Constant Field Values
EVENT_WHAT_TO_CONTAIN_CHANGED
public static final java.lang.String EVENT_WHAT_TO_CONTAIN_CHANGED
See Also: Constant Field Values
SimpleConditionalExpression_Contains
public SimpleConditionalExpression_Contains ()
SimpleConditionalExpression_Contains
public SimpleConditionalExpression_Contains (BusinessModel businessModel)
throws MetadataException
Creates a Contains conditional expression while testing to make sure that CONTAINS
is supported on the server that the BusinessModel is connected to.
Parameters: businessModel
- the business model that is used to retrieve the operator contains.
Throws:
MetadataException
- - if an error while getting information about the server
java.lang.UnsupportedOperationException
- - if the function is not supported.
setWhatToCompare
public void setWhatToCompare (ExpressionInterface expr)
Sets the left expression portion of the conditional expression.
Property change events signalled:
EVENT_WHAT_TO_COMPARE_CHANGED
Parameters: expr
- left side of conditional expression
getWhatToCompare
public ExpressionInterface getWhatToCompare ()
Gets the left expression for this conditional expression.
Returns: the left side expression.
setWhatToContain
public void setWhatToContain (ExpressionInterface expr)
Sets the right expression portion of the conditional expression.
Property change events signalled:
EVENT_WHAT_TO_CONTAIN_CHANGED
Parameters: expr
- right side of conditional expression
getWhatToContain
public ExpressionInterface getWhatToContain ()
Gets the right expression for this conditional expression.
Returns: the right side expression.
Copyright © 2009 SAS Institute Inc. All Rights Reserved.