Style Intelligence v12.0

inetsoft.uql.asset
Class DefaultConditionAssembly

java.lang.Object
  extended by inetsoft.uql.asset.AbstractAssembly
      extended by inetsoft.uql.asset.AbstractWSAssembly
          extended by inetsoft.uql.asset.DefaultConditionAssembly
All Implemented Interfaces:
Assembly, AssetObject, AttachedAssembly, ConditionAssembly, inetsoft.uql.asset.internal.VariableProvider, WSAssembly, ConditionListWrapper, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class DefaultConditionAssembly
extends AbstractWSAssembly
implements ConditionAssembly

Default condition assembly.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.asset.AbstractWSAssembly
info, ws
 
Fields inherited from interface inetsoft.uql.asset.AttachedAssembly
COLUMN_ATTACHED, DATA_TYPE_ATTACHED, NONE_ATTACHED, SOURCE_ATTACHED
 
Fields inherited from interface inetsoft.uql.asset.Assembly
CUBE_VS, DETAIL, EMBEDDED, FIELD, SELECTION, TABLE_VS
 
Constructor Summary
DefaultConditionAssembly()
          Constructor.
DefaultConditionAssembly(Worksheet ws, String name)
          Constructor.
 
Method Summary
 void checkValidity()
          Check if the assembly is valid.
 Object clone()
          Clone the object.
protected  inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
          Create assembly info.
 UserVariable[] getAllVariables()
          Get all variables in the condition value list.
 int getAssemblyType()
          Get the type.
 DataRef getAttachedAttribute()
          Get the attached attribute.
 String getAttachedDataType()
          Get the attached data type.
 SourceInfo getAttachedSource()
          Get the attached source.
 int getAttachedType()
          Get the attached type.
 ConditionItem getConditionItem(int index)
          Get the ConditionItem at the specified index.
 ConditionList getConditionList()
          Get the condition.
 int getConditionSize()
          Get the size.
 void getDependeds(Set set)
          Get the assemblies depended on.
 HierarchyItem getItem(int index)
          Get the HierarchyItem at the specified index.
 JunctionOperator getJunctionOperator(int index)
          Get the JunctionOperator at the specified index.
 Dimension getMinimumSize()
          Get the minimum size.
 void isAttachedValid()
          Check if the attached assembly is valid.
 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.
protected  void parseContents(Element elem)
          Parse contents.
 void renameDepended(String oname, String nname)
          Rename the assemblies depended on.
 void replaceVariables(VariableTable vars)
          Replace all embeded user variables.
 void setAttachedAttribute(DataRef ref)
          Set the attached attribute.
 void setAttachedDataType(String dtype)
          Set the attached data type.
 void setAttachedSource(SourceInfo info)
          Set the attached source.
 void setAttachedType(int type)
          Set the attached type.
 void setConditionList(ConditionList conditions)
          Set the condition list.
 void setWorksheet(Worksheet ws)
          Set the worksheet.
 boolean update()
          Update the assembly.
protected  void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.uql.asset.AbstractWSAssembly
checkDependency, copyAssembly, createWSAssembly, getClassName, getDescription, getInfo, getName, getPosition, getSheet, getSize, getWorksheet, getWSAssemblyInfo, isComposed, isCondition, isDateCondition, isIconized, isNamedGroup, isOuter, isTable, isVariable, reset, setDescription, setIconized, setName, setOuter, setPosition, setSize, setVisible
 
Methods inherited from class inetsoft.uql.asset.AbstractAssembly
addr, equals, getAbsoluteName, getAssemblyEntry, getBounds, hashCode, isEditable, isVisible, parseAttributes, parseXML, setBounds, toString, writeAttributes, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface inetsoft.uql.asset.WSAssembly
copyAssembly, getDescription, getWorksheet, getWSAssemblyInfo, isComposed, isCondition, isDateCondition, isIconized, isNamedGroup, isOuter, isTable, isVariable, reset, setDescription, setIconized, setOuter, setVisible
 
Methods inherited from interface inetsoft.uql.asset.Assembly
addr, checkDependency, getAbsoluteName, getAssemblyEntry, getBounds, getInfo, getName, getPosition, getSheet, getSize, isEditable, isVisible, setBounds, setPosition, setSize
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 

Constructor Detail

DefaultConditionAssembly

public DefaultConditionAssembly()
Constructor.


DefaultConditionAssembly

public DefaultConditionAssembly(Worksheet ws,
                                String name)
Constructor.

Method Detail

createInfo

protected inetsoft.uql.asset.internal.WSAssemblyInfo createInfo()
Create assembly info.

Overrides:
createInfo in class AbstractWSAssembly
Returns:
the associated assembly info.

getAssemblyType

public int getAssemblyType()
Get the type.

Specified by:
getAssemblyType in interface Assembly
Returns:
the type of the assembly.

getMinimumSize

public Dimension getMinimumSize()
Get the minimum size.

Specified by:
getMinimumSize in interface Assembly
Returns:
the minimum size of the assembly.

checkValidity

public void checkValidity()
                   throws Exception
Check if the assembly is valid.

Specified by:
checkValidity in interface WSAssembly
Overrides:
checkValidity in class AbstractWSAssembly
Throws:
Exception

getConditionList

public ConditionList getConditionList()
Get the condition.

Specified by:
getConditionList in interface ConditionAssembly
Specified by:
getConditionList in interface ConditionListWrapper
Returns:
the condition of the condition assembly.

setConditionList

public void setConditionList(ConditionList conditions)
Set the condition list.

Specified by:
setConditionList in interface ConditionAssembly
Parameters:
conditions - the specified condition list.

getConditionSize

public int getConditionSize()
Get the size.

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

isEmpty

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

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

setWorksheet

public void setWorksheet(Worksheet ws)
Set the worksheet.

Specified by:
setWorksheet in interface WSAssembly
Overrides:
setWorksheet in class AbstractWSAssembly
Parameters:
ws - the specified worksheet.

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.

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.

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.

update

public boolean update()
Update the assembly.

Specified by:
update in interface WSAssembly
Overrides:
update in class AbstractWSAssembly
Returns:
true if successful, false otherwise.

replaceVariables

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

Specified by:
replaceVariables in interface WSAssembly
Specified by:
replaceVariables in interface ConditionListWrapper
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.asset.internal.VariableProvider
Specified by:
getAllVariables in interface ConditionListWrapper
Returns:
the variable list.

getAttachedType

public int getAttachedType()
Get the attached type.

Specified by:
getAttachedType in interface AttachedAssembly
Returns:
the attached type.

setAttachedType

public void setAttachedType(int type)
Set the attached type.

Specified by:
setAttachedType in interface AttachedAssembly
Parameters:
type - the specified type.

getAttachedSource

public SourceInfo getAttachedSource()
Get the attached source.

Specified by:
getAttachedSource in interface AttachedAssembly
Returns:
the attached source.

setAttachedSource

public void setAttachedSource(SourceInfo info)
Set the attached source.

Specified by:
setAttachedSource in interface AttachedAssembly
Parameters:
the - specified source.

getAttachedAttribute

public DataRef getAttachedAttribute()
Get the attached attribute.

Specified by:
getAttachedAttribute in interface AttachedAssembly
Returns:
the attached attribute.

setAttachedAttribute

public void setAttachedAttribute(DataRef ref)
Set the attached attribute.

Specified by:
setAttachedAttribute in interface AttachedAssembly
Parameters:
ref - the specified attribute.

getAttachedDataType

public String getAttachedDataType()
Get the attached data type.

Specified by:
getAttachedDataType in interface AttachedAssembly
Returns:
the attached data type.

setAttachedDataType

public void setAttachedDataType(String dtype)
Set the attached data type.

Specified by:
setAttachedDataType in interface AttachedAssembly

isAttachedValid

public void isAttachedValid()
                     throws Exception
Check if the attached assembly is valid.

Specified by:
isAttachedValid in interface AttachedAssembly
Throws:
Exception

getDependeds

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

Specified by:
getDependeds in interface Assembly
Parameters:
set - the set stores the assemblies depended on.

renameDepended

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

Specified by:
renameDepended in interface Assembly
Parameters:
oname - the specified old name.
nname - the specified new name.

writeContents

protected void writeContents(PrintWriter writer)
Write contents.

Overrides:
writeContents in class AbstractAssembly
Parameters:
writer - the specified writer.

parseContents

protected void parseContents(Element elem)
                      throws Exception
Parse contents.

Overrides:
parseContents in class AbstractAssembly
Parameters:
elem - the specified xml element.
Throws:
Exception

clone

public Object clone()
Clone the object.

Specified by:
clone in interface Assembly
Specified by:
clone in interface AssetObject
Specified by:
clone in interface AttachedAssembly
Specified by:
clone in interface ConditionListWrapper
Overrides:
clone in class AbstractWSAssembly
Returns:
the cloned object.

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