Style Intelligence v12.0

inetsoft.uql
Class ConditionList

java.lang.Object
  extended by inetsoft.uql.HierarchyList
      extended by inetsoft.uql.ConditionList
All Implemented Interfaces:
ConditionListWrapper, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class ConditionList
extends HierarchyList
implements Cloneable, Serializable

A ConditionList stores a list of conditions/junctions to be applied to the resulting data.

Since:
5.0
See Also:
Serialized Form

Field Summary
static int ROOT_LEVEL
           
 
Fields inherited from class inetsoft.uql.HierarchyList
list
 
Constructor Summary
ConditionList()
          Constructor.
 
Method Summary
 Object clone()
          Clone it.
 boolean equals(Object obj)
          Check if equals another object.
 UserVariable[] getAllVariables()
          Get all varibles of the list.
 DataRef getAttribute(int index)
          Get the DataRef at the specified index.
 Condition getCondition(int index)
          Deprecated. replaced by getXCondition.
 ConditionItem getConditionItem(DataRef ref)
          Get the ConditionItem for the specified ref.
 ConditionItem getConditionItem(int index)
          Get the ConditionItem at the specified index.
 ConditionList getConditionList()
          Get the contained ConditionList.
 int getJunction(int index)
          Get the junction at the specified index.
 JunctionOperator getJunctionOperator(int index)
          Get the JunctionOperator at the specified index.
 XCondition getXCondition(int index)
          Get the XCondition at the specified index.
 void negate()
          Negate the condition list by changing all operators and negating each condition.
 void parseXML(Element tag)
          Read in the XML representation of this object in 5.0.
 void replaceVariables(VariableTable vart)
          Replace all variables in named group if any.
 void setConditionItem(int index, DataRef attribute, XCondition condition)
          Replace the ConditionItem at the specified index.
 void setJunctionOperator(int index, int junction)
          Replace the JunctionOperator at the specified index.
 String toString()
          To string.
 void validate(ColumnSelection columns)
          Validate the condition list.
 void writeXML(PrintWriter writer)
          Write to the XML.
 
Methods inherited from class inetsoft.uql.HierarchyList
append, getConditionSize, getItem, getMaxLevel, getMinLevel, getSize, indent, insert, isConditionItem, isEmpty, isJunctionOperator, isValid, remove, removeAllItems, setItem, setLevel, trim, validate, validate
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROOT_LEVEL

public static final int ROOT_LEVEL
See Also:
Constant Field Values
Constructor Detail

ConditionList

public ConditionList()
Constructor.

Method Detail

getConditionItem

public ConditionItem getConditionItem(int index)
Get the ConditionItem at the specified index.

Specified by:
getConditionItem in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
the ConditionItem at the specified index.

getConditionItem

public ConditionItem getConditionItem(DataRef ref)
Get the ConditionItem for the specified ref.

Parameters:
ref - data ref.
Returns:
the ConditionItem for the specified ref.

getJunctionOperator

public JunctionOperator getJunctionOperator(int index)
Get the JunctionOperator at the specified index.

Specified by:
getJunctionOperator in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
the JunctionOperator at the specified index.

getCondition

public Condition getCondition(int index)
Deprecated. replaced by getXCondition.

Get the Condition at the specified index.

Parameters:
index - the specified index.
Returns:
the Condition at the specified index.

getXCondition

public XCondition getXCondition(int index)
Get the XCondition at the specified index.

Parameters:
index - the specified index.
Returns:
the Condition at the specified index.

getAttribute

public DataRef getAttribute(int index)
Get the DataRef at the specified index.

Parameters:
index - the specified index.
Returns:
the DataRef at the specified index.

getJunction

public int getJunction(int index)
Get the junction at the specified index.

Parameters:
index - the specified index
Returns:
the junction at the specified index

setConditionItem

public void setConditionItem(int index,
                             DataRef attribute,
                             XCondition condition)
Replace the ConditionItem at the specified index.

Parameters:
index - the index of the ConditionItem.
attribute - the new DataRef.
condition - the new Condition.

setJunctionOperator

public void setJunctionOperator(int index,
                                int junction)
Replace the JunctionOperator at the specified index.

Parameters:
index - the index of the JunctionOperator.
junction - the new junction.

getConditionList

public ConditionList getConditionList()
Get the contained ConditionList.

Specified by:
getConditionList in interface ConditionListWrapper
Returns:
the contained CondtiionList.

getAllVariables

public UserVariable[] getAllVariables()
Get all varibles of the list.

Specified by:
getAllVariables in interface ConditionListWrapper
Returns:
the UserVarible array.

replaceVariables

public void replaceVariables(VariableTable vart)
Replace all variables in named group if any.

Specified by:
replaceVariables in interface ConditionListWrapper
Parameters:
vart - the VariableTable.

writeXML

public void writeXML(PrintWriter writer)
Write to the XML.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the PrintWriter.

parseXML

public void parseXML(Element tag)
              throws Exception
Read in the XML representation of this object in 5.0.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
tag - the XML element representing this object.
Throws:
Exception

toString

public String toString()
To string.

Overrides:
toString in class Object
Returns:
the string value.

equals

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

Overrides:
equals in class Object

clone

public Object clone()
Clone it.

Specified by:
clone in interface ConditionListWrapper
Specified by:
clone in class HierarchyList
Returns:
the cloned object.

validate

public void validate(ColumnSelection columns)
Validate the condition list.

Parameters:
columns - the specified column selection.

negate

public void negate()
Negate the condition list by changing all operators and negating each condition.


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