Style Intelligence v12.0

inetsoft.uql.asset
Class SNamedGroupInfo

java.lang.Object
  extended by inetsoft.uql.asset.SNamedGroupInfo
All Implemented Interfaces:
inetsoft.uql.util.XNamedGroupInfo, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class SNamedGroupInfo
extends Object
implements inetsoft.uql.util.XNamedGroupInfo, inetsoft.util.XMLSerializable

Simple named group info. It stores a value list for every group.

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
SNamedGroupInfo()
          Construct a simple named group info.
 
Method Summary
 void addGroupName(String name)
          Add a group name.
 void clear()
          Reset the named group info.
 Object clone()
          Clone it.
 boolean contains(String group)
          Check if contains a named group.
 boolean equals(Object obj)
          Check if equals another object in content.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 DataRef getDataRef()
          Getter of data ref.
 ConditionList getGroupCondition(String name)
          Get the condition list of a group.
 String[] getGroups()
          Get all the group names.
 List getGroupValue(String name)
          Get the value of a group.
 int getType()
          Get type of the named group info.
 boolean isEmpty()
          Check if the named group info is empty.
 void parseXML(Element tag)
          Parse the xml segment.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void removeGroup(String name)
          Remove a group name.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void setDataRef(DataRef ref)
          Setter of data ref.
 void setGroupValue(String name, List value)
          Set the value of a group.
 void writeXML(PrintWriter writer)
          Write to XML.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SNamedGroupInfo

public SNamedGroupInfo()
Construct a simple named group info.

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

clear

public void clear()
Reset the named group info.

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

getGroupCondition

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

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

setGroupValue

public void setGroupValue(String name,
                          List value)
Set the value of a group.

Parameters:
name - the specified group name
value - the specified value

getGroupValue

public List getGroupValue(String name)
Get the value of a group.

Parameters:
name - the specified group name
Returns:
group value list

getGroups

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

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

addGroupName

public void addGroupName(String name)
Add a group name.

Parameters:
name - the group name

removeGroup

public void removeGroup(String name)
Remove a group name.

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

contains

public boolean contains(String group)
Check if contains a named group.

Parameters:
group - the specified group name.
Returns:
true if contains, false otherwise.

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.

setDataRef

public void setDataRef(DataRef ref)
Setter of data ref.


getDataRef

public DataRef getDataRef()
Getter of data ref.


clone

public Object clone()
Clone it.

Specified by:
clone in interface inetsoft.uql.util.XNamedGroupInfo
Overrides:
clone in class Object

writeXML

public void writeXML(PrintWriter writer)
Write to XML.

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

parseXML

public void parseXML(Element tag)
              throws Exception
Parse the xml segment.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Throws:
Exception

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.

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 in content.

Overrides:
equals in class Object
Parameters:
obj - the specified object.
Returns:
true if equals the object in content, false otherwise.

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