Style Intelligence v12.0

inetsoft.uql.asset
Class AggregateInfo

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

public class AggregateInfo
extends Object
implements AssetObject, inetsoft.util.ContentObject

Aggregate info contains the grouping and aggregation information of a TableAssembly.

See Also:
Serialized Form

Constructor Summary
AggregateInfo()
          Constructor.
 
Method Summary
 boolean addAggregate(AggregateRef ref)
          Add one aggregate.
 boolean addAggregate(AggregateRef ref, Boolean delSame)
          Add one aggregate.
 boolean addGroup(GroupRef ref)
          Add one group.
 boolean addGroup(GroupRef ref, Boolean delSame)
          Add one group.
 void addGroups(GroupRef[] gref)
          Add all the groups.
 int addr()
          Get the address.
 void addSecondaryAggregate(AggregateRef ref)
          Add one secondary aggregate.
 void clear()
          Clear the group info.
 void clearPercentage()
          Clear the percentage option of all aggregates.
 Object clone()
          Clone the object.
 boolean containsAggregate(DataRef ref)
          Check if contains the aggregate.
 boolean containsAliasAggregate(DataRef ref)
          Check if contains the alias aggregate.
 boolean containsGroup(DataRef ref)
          Check if contains the group.
 boolean containsNamedGroup()
          Check if contains named group.
 boolean containsPercentage()
          Check if the aggregate info contains percentage aggregate.
 boolean equalsContent(Object obj)
          Check if equals another object in content.
 AggregateRef getAggregate(DataRef ref)
          Get the aggregate.
 AggregateRef getAggregate(int index)
          Get the aggregate.
 int getAggregateCount()
          Get the aggregate count.
 AggregateRef[] getAggregates()
          Get all the aggregates.
 AggregateRef[] getAggregates(DataRef ref)
          Get the aggregates.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 void getDependeds(Set set)
          Get the assemblies depended on.
 GroupRef getGroup(DataRef ref)
          Get the group.
 GroupRef getGroup(int index)
          Get the group.
 int getGroupCount()
          Get the group count.
 GroupRef[] getGroups()
          Get all the groups.
 int getPercentGroupLevel()
          Get percent group level.
 AggregateRef[] getSecondaryAggregates()
          Get all the secondary aggregates.
 int hashCode()
          Get the hash code value.
 boolean isAggregated()
          Test if the aggregate info is aggregated.
 boolean isCalcMergeable()
          Check if the aggregate info contains mergeable aggregate calc field.
 boolean isCrosstab()
          Check if is a crosstab.
 boolean isEmpty()
          Check if the group info is empty.
 boolean isRealAggregated()
          Test if the aggregate info is really aggregated.
 void parseXML(Element elem)
          Method to parse an xml segment.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 boolean removeAggregate(DataRef ref)
          Remove the aggregate.
 boolean removeAggregate(int index)
          Remove the aggregate.
 void removeAggregates()
          Remove all the aggregates.
 boolean removeGroup(DataRef ref)
          Remove the group.
 boolean removeGroup(int index)
          Remove the group.
 void removeGroups()
          Remove all the group.
 void removeSecondaryAggregates()
          Remove all the secondary aggregates.
 void renameDepended(String oname, String nname)
          Rename the assemblies depended on.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void setAggregate(int idx, AggregateRef ref)
          Set the aggregate reference at the specified position.
 void setAggregates(AggregateRef[] aref)
          Set all the aggregates.
 void setCrosstab(boolean crosstab)
          Set the crosstab option.
 void setGroup(int idx, GroupRef ref)
          Set the group reference at the specified position.
 void setGroups(GroupRef[] gref)
          Set all the groups.
 void setPercentGroupLevel(int pglevel)
          Set percent group level.
 boolean supportsAOA()
          Check if the aggregate info supports aggregate on aggregate.
 String toString()
          Get the string representation.
 boolean update(Worksheet ws)
          Update the group ref.
 void validate(ColumnSelection columns)
          Validate the group info.
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregateInfo

public AggregateInfo()
Constructor.

Method Detail

getGroup

public GroupRef getGroup(DataRef ref)
Get the group.

Parameters:
ref - the specified attribute.
Returns:
the group of the attribute.

getGroup

public GroupRef getGroup(int index)
Get the group.

Parameters:
index - the specified index.
Returns:
the group of the attribute.

getGroups

public GroupRef[] getGroups()
Get all the groups.

Returns:
all the groups.

setGroups

public void setGroups(GroupRef[] gref)
Set all the groups.


addGroups

public void addGroups(GroupRef[] gref)
Add all the groups.


getGroupCount

public int getGroupCount()
Get the group count.

Returns:
the group count.

containsGroup

public boolean containsGroup(DataRef ref)
Check if contains the group.

Parameters:
ref - the specified attribute.
Returns:
true if contains, false otherwise.

addGroup

public boolean addGroup(GroupRef ref)
Add one group.

Parameters:
ref - the specified group.
Returns:
true if successful, false otherwise.

addGroup

public boolean addGroup(GroupRef ref,
                        Boolean delSame)
Add one group.

Parameters:
ref - the specified group.
delSame - if remove same column.
Returns:
true if successful, false otherwise.

setGroup

public void setGroup(int idx,
                     GroupRef ref)
Set the group reference at the specified position.


removeGroup

public boolean removeGroup(DataRef ref)
Remove the group.

Parameters:
ref - the specified group.
Returns:
true if successful, false otherwise.

removeGroup

public boolean removeGroup(int index)
Remove the group.

Parameters:
index - the specified index.
Returns:
true if successful, false otherwise.

removeGroups

public void removeGroups()
Remove all the group.


getAggregate

public AggregateRef getAggregate(DataRef ref)
Get the aggregate.

Parameters:
ref - the specified attribute.
Returns:
the aggregate of the attribute.

getAggregates

public AggregateRef[] getAggregates(DataRef ref)
Get the aggregates.

Parameters:
ref - the specified attribute.
Returns:
the aggregates of the attribute.

getAggregate

public AggregateRef getAggregate(int index)
Get the aggregate.

Parameters:
index - the specified index.
Returns:
the aggregate of the attribute.

getAggregates

public AggregateRef[] getAggregates()
Get all the aggregates.

Returns:
all the aggregates.

getAggregateCount

public int getAggregateCount()
Get the aggregate count.

Returns:
the aggregate count.

isRealAggregated

public boolean isRealAggregated()
Test if the aggregate info is really aggregated.

Returns:
true if the aggregate info is aggregated, false otherwise.

isCalcMergeable

public boolean isCalcMergeable()
Check if the aggregate info contains mergeable aggregate calc field.

Returns:
true if mergeable, false otherwise.

isAggregated

public boolean isAggregated()
Test if the aggregate info is aggregated.

Returns:
true if the aggregate info is aggregated, false otherwise.

supportsAOA

public boolean supportsAOA()
Check if the aggregate info supports aggregate on aggregate.

Returns:
true if supports aggregate on aggregate, false otherwise.

containsNamedGroup

public boolean containsNamedGroup()
Check if contains named group.


containsPercentage

public boolean containsPercentage()
Check if the aggregate info contains percentage aggregate.

Returns:
true if the aggregate info contains percentage aggregate, false otherwise.

clearPercentage

public void clearPercentage()
Clear the percentage option of all aggregates.


containsAggregate

public boolean containsAggregate(DataRef ref)
Check if contains the aggregate.

Parameters:
ref - the specified attribute.
Returns:
true if contains, false otherwise.

containsAliasAggregate

public boolean containsAliasAggregate(DataRef ref)
Check if contains the alias aggregate.

Parameters:
ref - the specified attribute.
Returns:
true if contains, false otherwise.

addAggregate

public boolean addAggregate(AggregateRef ref)
Add one aggregate.

Parameters:
ref - the specified aggregate.
Returns:
true if successful, false otherwise.

addAggregate

public boolean addAggregate(AggregateRef ref,
                            Boolean delSame)
Add one aggregate.

Parameters:
ref - the specified aggregate.
delSame - if remove same column.
Returns:
true if successful, false otherwise.

setAggregate

public void setAggregate(int idx,
                         AggregateRef ref)
Set the aggregate reference at the specified position.


setAggregates

public void setAggregates(AggregateRef[] aref)
Set all the aggregates.


removeAggregate

public boolean removeAggregate(DataRef ref)
Remove the aggregate.

Parameters:
ref - the specified group.
Returns:
true if successful, false otherwise.

removeAggregate

public boolean removeAggregate(int index)
Remove the aggregate.

Parameters:
index - the specified index.
Returns:
true if successful, false otherwise.

removeAggregates

public void removeAggregates()
Remove all the aggregates.


removeSecondaryAggregates

public void removeSecondaryAggregates()
Remove all the secondary aggregates.


isCrosstab

public boolean isCrosstab()
Check if is a crosstab.

Returns:
true if yes, false otherwise.

setCrosstab

public void setCrosstab(boolean crosstab)
Set the crosstab option.

Parameters:
crosstab - true if a crosstab.

update

public boolean update(Worksheet ws)
Update the group ref.

Parameters:
ws - the associated worksheet.
Returns:
true if successful, false otherwise.

replaceVariables

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

Parameters:
vars - the specified variable table.

getAllVariables

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

Returns:
the variable list.

getDependeds

public void getDependeds(Set set)
Get the assemblies depended on.


renameDepended

public void renameDepended(String oname,
                           String nname)
Rename the assemblies depended on.

Parameters:
oname - the specified old name.
nname - the specified new name.

getSecondaryAggregates

public AggregateRef[] getSecondaryAggregates()
Get all the secondary aggregates.

Returns:
all the secondary aggregates.

addSecondaryAggregate

public void addSecondaryAggregate(AggregateRef ref)
Add one secondary aggregate.

Parameters:
ref - the specified aggregate.

isEmpty

public boolean isEmpty()
Check if the group info is empty.

Returns:
true if empty, false> otherwise.

clear

public void clear()
Clear the group info.


validate

public void validate(ColumnSelection columns)
Validate the group info.

Parameters:
columns - the specified column selection.

writeXML

public void writeXML(PrintWriter writer)
Write the xml segment to print writer.

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

parseXML

public void parseXML(Element elem)
              throws Exception
Method to parse an xml segment.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element.
Throws:
Exception

clone

public Object clone()
Clone the object.

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

toString

public String toString()
Get the string representation.

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

hashCode

public int hashCode()
Get the hash code value.

Overrides:
hashCode in class Object
Returns:
the hash code value.

addr

public int addr()
Get the address.


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
Throws:
Exception

equalsContent

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

Specified by:
equalsContent in interface inetsoft.util.ContentObject
Parameters:
obj - the specified object.
Returns:
true if equals the object in content, false otherwise.

getPercentGroupLevel

public int getPercentGroupLevel()
Get percent group level.


setPercentGroupLevel

public void setPercentGroupLevel(int pglevel)
Set percent group level.


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