Style Intelligence v12.0

inetsoft.uql
Class HierarchyList

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

public abstract class HierarchyList
extends Object
implements ConditionListWrapper

A HierarchyList stores a list of HierarchyItem to be applied to the resulting data.

Since:
5.1
See Also:
Serialized Form

Field Summary
protected  Vector list
           
 
Constructor Summary
HierarchyList()
           
 
Method Summary
 void append(HierarchyItem item)
          Append a HierarchyItem.
abstract  Object clone()
          Clone the object.
 int getConditionSize()
          Get the size.
 HierarchyItem getItem(int index)
          Get the HierarchyItem at the specified index.
protected  int getMaxLevel()
          Get max level.
protected  int getMinLevel()
          Get minimum level.
 int getSize()
          Get the size.
 void indent(int incr)
          Get the HierarchyItem's level at the specified index.
 void insert(int index, HierarchyItem item)
          Insert a HierarchyItem at the specified index.
 boolean isConditionItem(int index)
          Check if the item at the specified index is a ConditionItem.
 boolean isEmpty()
          Check if this list is empty.
 boolean isJunctionOperator(int index)
          Check if the item at the specified index is a JunctionOperator.
 boolean isValid()
          Check if is in a valid order.
 void remove(int index)
          Remove a HierarchyItem at the specified index.
 void removeAllItems()
          Remove all items in the list.
 void setItem(int index, HierarchyItem item)
          Set the HierarchyItem at the specified index.
 void setLevel(int index, int level)
          Replace the HierarchyItem's level at the specified index.
 void trim()
          Trim the ConditionList to make it valid.
 void validate()
          Validate the ConditionList.
 void validate(boolean rmignore)
          Validate the ConditionList.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface inetsoft.uql.ConditionListWrapper
getAllVariables, getConditionItem, getConditionList, getJunctionOperator, replaceVariables
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 

Field Detail

list

protected Vector list
Constructor Detail

HierarchyList

public HierarchyList()
Method Detail

getSize

public int getSize()
Get the size.

Returns:
size of the ConditionList.

getConditionSize

public int getConditionSize()
Get the size.

Specified by:
getConditionSize in interface ConditionListWrapper
Returns:
size of the ConditionList.

setItem

public void setItem(int index,
                    HierarchyItem item)
Set the HierarchyItem at the specified index.

Parameters:
index - the specified index.
item - the HierarchyItem at the specified index.

getItem

public HierarchyItem getItem(int index)
Get the HierarchyItem at the specified index.

Specified by:
getItem in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
the HierarchyItem at the specified index.

isConditionItem

public boolean isConditionItem(int index)
Check if the item at the specified index is a ConditionItem.

Specified by:
isConditionItem in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
true if is a ConditionItem.

isJunctionOperator

public boolean isJunctionOperator(int index)
Check if the item at the specified index is a JunctionOperator.

Specified by:
isJunctionOperator in interface ConditionListWrapper
Parameters:
index - the specified index.
Returns:
true if is a JunctionOperator.

append

public void append(HierarchyItem item)
Append a HierarchyItem.

Parameters:
item - the HierarchyItem to append.

insert

public void insert(int index,
                   HierarchyItem item)
Insert a HierarchyItem at the specified index.

Parameters:
index - the specified index.
item - the HierarchyItem to insert.

remove

public void remove(int index)
Remove a HierarchyItem at the specified index.

Parameters:
index - the specified index.

removeAllItems

public void removeAllItems()
Remove all items in the list.


setLevel

public void setLevel(int index,
                     int level)
Replace the HierarchyItem's level at the specified index.

Parameters:
index - the specified index.
level - the new level.

indent

public void indent(int incr)
Get the HierarchyItem's level at the specified index.

Parameters:
incr - the increment (or decrement) of the level on each item.

isValid

public boolean isValid()
Check if is in a valid order.

Returns:
true if in a valid order.

trim

public void trim()
Trim the ConditionList to make it valid.


validate

public void validate()
Validate the ConditionList.

Parameters:
rmignore - remove the ignored condition items

validate

public void validate(boolean rmignore)
Validate the ConditionList.

Parameters:
rmignore - remove the ignored condition items

getMaxLevel

protected int getMaxLevel()
Get max level.

Returns:
the minimum level.

getMinLevel

protected int getMinLevel()
Get minimum level.

Returns:
the minimum level.

isEmpty

public boolean isEmpty()
Check if this list is empty.

Specified by:
isEmpty in interface ConditionListWrapper
Returns:
true if empty, false otherwise.

clone

public abstract Object clone()
Clone the object.

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

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