Style Intelligence v12.0

inetsoft.uql.asset
Class NamedGroupInfo

java.lang.Object
  extended by inetsoft.uql.asset.NamedGroupInfo
All Implemented Interfaces:
AssetObject, inetsoft.uql.util.XNamedGroupInfo, inetsoft.util.XMLSerializable, Serializable, Cloneable
Direct Known Subclasses:
RangeGroupInfo

public class NamedGroupInfo
extends Object
implements inetsoft.uql.util.XNamedGroupInfo, AssetObject

NamedGroupInfo stores named group information.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface inetsoft.uql.util.XNamedGroupInfo
ASSET_NAMEDGROUP_INFO, ASSET_NAMEDGROUP_INFO_REF, EXPERT_NAMEDGROUP_INFO, SIMPLE_NAMEDGROUP_INFO
 
Constructor Summary
NamedGroupInfo()
          Constructor.
 
Method Summary
 void clear()
          Reset the named group info.
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equals another object.
 void exchange(int idx1, int idx2)
          Exchange the positions of two specified condition lists.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 void getDependeds(Worksheet ws, Set set)
          Get the assemblies depended on.
 ConditionList getGroupCondition(String group)
          Get the condition list.
 String[] getGroups()
          Get all the group names.
 int getOthers()
          Get other groups option.
 int getType()
          Get type of the named group info.
 boolean isEmpty()
          Check if the named group info is empty.
protected  void parseContents(Element elem)
          Method to parse an xml segment.
 void parseXML(Element elem)
          Method to parse an xml segment.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void removeGroup(String group)
          Remove the condition list.
 void renameDepended(String oname, String nname, Worksheet ws)
          Rename the assemblies depended on.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void setGroupCondition(int idx, String group, ConditionList conditions)
          Set the condition list.
 void setGroupCondition(String group, ConditionList conditions)
          Set the condition list.
 void setOthers(int others)
          Set other groups option.
 String toString()
          Get the string representation.
 boolean update(Worksheet ws)
          Update the assembly.
protected  void writeContents(PrintWriter writer)
          Write the xml segment to print writer.
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedGroupInfo

public NamedGroupInfo()
Constructor.

Method Detail

getType

public int getType()
Get type of the named group info.

Specified by:
getType in interface inetsoft.uql.util.XNamedGroupInfo
Returns:
the type of the named group info.

getGroups

public String[] getGroups()
Get all the group names.

Specified by:
getGroups in interface inetsoft.uql.util.XNamedGroupInfo
Returns:
all the group names.

getGroupCondition

public ConditionList getGroupCondition(String group)
Get the condition list.

Specified by:
getGroupCondition in interface inetsoft.uql.util.XNamedGroupInfo
Parameters:
group - the specified group name.
Returns:
the associated condition list.

setGroupCondition

public void setGroupCondition(String group,
                              ConditionList conditions)
Set the condition list.

Parameters:
group - the specified group name.
conditions - the secified condition list.

setGroupCondition

public void setGroupCondition(int idx,
                              String group,
                              ConditionList conditions)
Set the condition list.

Parameters:
idx - the index of the key.
group - the specified group name.
conditions - the secified condition list.

setOthers

public void setOthers(int others)
Set other groups option.

Parameters:
others - other group option.

getOthers

public int getOthers()
Get other groups option.

Returns:
other group option.

exchange

public void exchange(int idx1,
                     int idx2)
Exchange the positions of two specified condition lists.

Parameters:
idx1 - the first index.
idx2 - the second index.

removeGroup

public void removeGroup(String group)
Remove the condition list.

Specified by:
removeGroup in interface inetsoft.uql.util.XNamedGroupInfo
Parameters:
group - the specified group name.

clear

public void clear()
Reset the named group info.

Specified by:
clear in interface inetsoft.uql.util.XNamedGroupInfo

replaceVariables

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

Specified by:
replaceVariables in interface inetsoft.uql.util.XNamedGroupInfo
Parameters:
vars - the specified variable table.

getAllVariables

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

Specified by:
getAllVariables in interface inetsoft.uql.util.XNamedGroupInfo
Returns:
the variable list.

getDependeds

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

Parameters:
ws - the specified worksheet.
set - the set stores the assemblies depended on.

renameDepended

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

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

isEmpty

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

Specified by:
isEmpty in interface inetsoft.uql.util.XNamedGroupInfo
Returns:
true if empty, false otherwise.

update

public boolean update(Worksheet ws)
Update the assembly.

Returns:
true if successful, false otherwise.

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.

writeContents

protected void writeContents(PrintWriter writer)
Write the xml segment to print writer.

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

parseContents

protected void parseContents(Element elem)
                      throws Exception
Method to parse an xml segment.

Parameters:
elem - the specified xml element.
Throws:
Exception

clone

public Object clone()
Clone the object.

Specified by:
clone in interface AssetObject
Specified by:
clone in interface inetsoft.uql.util.XNamedGroupInfo
Overrides:
clone in class Object
Returns:
the cloned object.

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.uql.util.XNamedGroupInfo
Throws:
Exception

equals

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

Overrides:
equals in class Object
Returns:
true if equals, false otherwise.

toString

public String toString()
Get the string representation.

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

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