Style Intelligence v12.0

inetsoft.uql.asset
Class RankingCondition

java.lang.Object
  extended by inetsoft.uql.AbstractCondition
      extended by inetsoft.uql.asset.RankingCondition
All Implemented Interfaces:
AssetObject, XCondition, inetsoft.util.ContentObject, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class RankingCondition
extends AbstractCondition
implements AssetObject

Ranking condition, stores ranking information.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.AbstractCondition
equal, negated, op, type
 
Fields inherited from interface inetsoft.uql.XCondition
BETWEEN, BOTTOM_N, CONTAINS, CORRELATED, DATE_IN, EQUAL_TO, GREATER_THAN, LESS_THAN, LIKE, NONE, NULL, ONE_OF, PSEUDO, STARTING_WITH, TOP_N
 
Constructor Summary
RankingCondition()
          Constructor.
 
Method Summary
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equqls another object.
 boolean evaluate(Object value)
          Evaluate this condition against the specified value object.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 DataRef getDataRef()
          Get the data ref.
 Object getN()
          Get the n option.
 boolean isEqualChangeable()
          Check if equal is changeable.
 boolean isGroupOthers()
          Check whether to group or discard other values.
 boolean isNegatedChangeable()
          Check if negated is changeable.
 boolean isOperationChangeable()
          Check if operation is changeable.
 boolean isTypeChangeable()
          Check if type is changeable.
 boolean isValid()
          Check if the condition is a valid condition.
 boolean isValid(ColumnSelection columns)
          Check if the condition is a valid condition.
 void parseContents(Element elem)
          Parse the contents.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void replaceVariable(VariableTable vars)
          Replace all embeded user variables.
 void setDataRef(DataRef ref)
          Set the data ref.
 void setGroupOthers(boolean others)
          Set whether to group or discard other values.
 boolean setN(Object n)
          Set the n option.
 void setOperation(int op)
          Set the comparison operation of this condition.
 String toString()
          Get a textual representation of this object.
 void writeContents(PrintWriter writer)
          Write the contents.
 
Methods inherited from class inetsoft.uql.AbstractCondition
checkValueString, createDefaultValue, createXCondition, equalsContent, getBoolean, getDate, getDateObject, getObject, getObject, getOperation, getType, getValueSQLString, getValueString, getValueString, getValueString, isEqual, isNegated, parseAttributes, parseXML, setEqual, setNegated, setType, writeAttributes, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 

Constructor Detail

RankingCondition

public RankingCondition()
Constructor.

Method Detail

isTypeChangeable

public boolean isTypeChangeable()
Check if type is changeable.

Specified by:
isTypeChangeable in interface XCondition
Returns:
true if changeable, false otherwise.

setOperation

public void setOperation(int op)
Set the comparison operation of this condition.

Specified by:
setOperation in interface XCondition
Overrides:
setOperation in class AbstractCondition
Parameters:
op - one of the operation constants defined in this class.

isOperationChangeable

public boolean isOperationChangeable()
Check if operation is changeable.

Specified by:
isOperationChangeable in interface XCondition
Returns:
true if changeable, false otherwise.

isEqualChangeable

public boolean isEqualChangeable()
Check if equal is changeable.

Specified by:
isEqualChangeable in interface XCondition
Returns:
true if changeable, false otherwise.

isNegatedChangeable

public boolean isNegatedChangeable()
Check if negated is changeable.

Specified by:
isNegatedChangeable in interface XCondition
Returns:
true if changeable, false otherwise.

getN

public Object getN()
Get the n option.

Returns:
the n option.

setN

public boolean setN(Object n)
Set the n option.

Parameters:
n - the specied n.

isGroupOthers

public boolean isGroupOthers()
Check whether to group or discard other values.


setGroupOthers

public void setGroupOthers(boolean others)
Set whether to group or discard other values.


replaceVariable

public void replaceVariable(VariableTable vars)
Replace all embeded user variables.

Specified by:
replaceVariable in interface XCondition
Parameters:
vars - the specified variable table.

getAllVariables

public UserVariable[] getAllVariables()
Get all variables in the condition value list.

Specified by:
getAllVariables in interface XCondition
Returns:
the variable list.

evaluate

public boolean evaluate(Object value)
Evaluate this condition against the specified value object.

Specified by:
evaluate in interface XCondition
Parameters:
value - the value object this condition should be compared with.
Returns:
true if the value object meets this condition.

isValid

public boolean isValid()
Check if the condition is a valid condition.

Specified by:
isValid in interface XCondition
Returns:
true if is valid, false otherwise.

isValid

public boolean isValid(ColumnSelection columns)
Check if the condition is a valid condition.

Returns:
true if is valid, false otherwise.

getDataRef

public DataRef getDataRef()
Get the data ref.

Returns:
the data ref.

setDataRef

public void setDataRef(DataRef ref)
Set the data ref.

Parameters:
ref - the specified data ref.

writeContents

public void writeContents(PrintWriter writer)
Write the contents.

Specified by:
writeContents in interface XCondition
Parameters:
writer - the specified print writer.

parseContents

public void parseContents(Element elem)
                   throws Exception
Parse the contents.

Specified by:
parseContents in interface XCondition
Parameters:
elem - the specified xml element.
Throws:
Exception

printKey

public boolean printKey(PrintWriter writer)
                 throws Exception
Print the key to identify this content object. If the keys of two content objects are equal, the content objects are equal too.

Specified by:
printKey in interface inetsoft.util.ContentObject
Overrides:
printKey in class AbstractCondition
Throws:
Exception

equals

public boolean equals(Object obj)
Check if equqls another object.

Overrides:
equals in class AbstractCondition

toString

public String toString()
Get a textual representation of this object.

Overrides:
toString in class Object
Returns:
a String containing a textual representation of this object.

clone

public Object clone()
Clone the object.

Specified by:
clone in interface AssetObject
Specified by:
clone in interface XCondition
Overrides:
clone in class AbstractCondition
Returns:
the cloned object.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.