Style Intelligence v12.0

inetsoft.uql.asset
Class DefaultVariableAssembly

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

public class DefaultVariableAssembly
extends AbstractWSAssembly
implements VariableAssembly

Default variable 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
DefaultVariableAssembly()
          Constructor.
DefaultVariableAssembly(Worksheet ws, String name)
          Constructor.
 
Method Summary
 void checkValidity()
          Check if the assembly is valid.
 Object clone()
          Clone the object.
 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.
 void getDependeds(Set set)
          Get the assemblies depended on.
 Dimension getMinimumSize()
          Get the minimum size.
 AssetVariable getVariable()
          Get the asset variable.
 void isAttachedValid()
          Check if the attached assembly is valid.
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 setName(String name)
          Set the name.
 void setName(String name, boolean both)
          Set the name.
 void setVariable(AssetVariable var)
          Set the asset variable.
 boolean update()
          Update the assembly.
protected  void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.uql.asset.AbstractWSAssembly
checkDependency, copyAssembly, createInfo, createWSAssembly, getClassName, getDescription, getInfo, getName, getPosition, getSheet, getSize, getWorksheet, getWSAssemblyInfo, isComposed, isCondition, isDateCondition, isIconized, isNamedGroup, isOuter, isTable, isVariable, reset, setDescription, setIconized, setOuter, setPosition, setSize, setVisible, setWorksheet
 
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, setWorksheet
 
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

DefaultVariableAssembly

public DefaultVariableAssembly()
Constructor.


DefaultVariableAssembly

public DefaultVariableAssembly(Worksheet ws,
                               String name)
Constructor.

Method Detail

setName

public void setName(String name)
Set the name.

Overrides:
setName in class AbstractWSAssembly
Parameters:
name - the specified name.
both - true to rename both assembly name and variable name, false to rename assembly name only.

setName

public void setName(String name,
                    boolean both)
Set the name.

Specified by:
setName in interface VariableAssembly
Parameters:
name - the specified name.
both - true to rename both assembly name and variable name, false to rename assembly name only.

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

getVariable

public AssetVariable getVariable()
Get the asset variable.

Specified by:
getVariable in interface VariableAssembly
Returns:
the asset variable of the variable assembly.

setVariable

public void setVariable(AssetVariable var)
Set the asset variable.

Specified by:
setVariable in interface VariableAssembly
Parameters:
var - the specified asset variable.

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
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
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
Overrides:
clone in class AbstractWSAssembly
Returns:
the cloned object.

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