|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.asset.AbstractAssembly
inetsoft.uql.asset.AbstractWSAssembly
inetsoft.uql.asset.DefaultDateRangeAssembly
public class DefaultDateRangeAssembly
Default Date range assembly implements DateRangeAssembly contains a predefined DateRange.
| Field Summary |
|---|
| Fields inherited from class inetsoft.uql.asset.AbstractWSAssembly |
|---|
info, ws |
| Fields inherited from interface inetsoft.uql.asset.Assembly |
|---|
CUBE_VS, DETAIL, EMBEDDED, FIELD, SELECTION, TABLE_VS |
| Fields inherited from interface inetsoft.uql.XCondition |
|---|
BETWEEN, BOTTOM_N, CONTAINS, CORRELATED, DATE_IN, EQUAL_TO, GREATER_THAN, LESS_THAN, LIKE, NONE, NULL, ONE_OF, PSEUDO, STARTING_WITH, TOP_N |
| Constructor Summary | |
|---|---|
DefaultDateRangeAssembly()
Constructor. |
|
DefaultDateRangeAssembly(Worksheet ws,
String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
checkValidity()
Check if the range is a valid range. |
Object |
clone()
Clone the object. |
boolean |
equals(Object obj)
Check if equals another object. |
boolean |
equalsContent(Object obj)
Check if equals another object in content. |
boolean |
evaluate(Object value)
Evaluate this range against the specified value object. |
UserVariable[] |
getAllVariables()
Get all variables in the range value list. |
int |
getAssemblyType()
Get the type. |
DateCondition |
getDateRange()
Get the date range. |
void |
getDependeds(Set set)
Get the assemblies depended on. |
Dimension |
getMinimumSize()
Get the minimum size. |
int |
getOperation()
Get the comparison operation of this range. |
String |
getType()
Get the condition value data type. |
boolean |
isEqual()
Determine whether equivalence will be tested in addition to the defined comparison operation. |
boolean |
isEqualChangeable()
Check if equal is changeable. |
boolean |
isNegated()
Set whether this range result should be negated. |
boolean |
isNegatedChangeable()
Check if negated is changeable. |
boolean |
isOperationChangeable()
Check if operation is changeable. |
boolean |
isTypeChangeable()
Check if type is changeable. |
boolean |
isValid()
Check if the condition is a valid condition. |
void |
parseAttributes(Element elem)
Parse contents. |
void |
parseContents(Element elem)
Parse contents. |
boolean |
printKey(PrintWriter writer)
Print the key to identify this content object. |
void |
renameDepended(String oname,
String nname)
Rename the assemblies depended on. |
void |
replaceVariable(VariableTable vars)
Replace all embeded user variables. |
void |
replaceVariables(VariableTable vars)
Replace all embeded user variables. |
void |
setDateRange(DateCondition range)
Set the date range. |
void |
setEqual(boolean equal)
Set the equal to option when the comparison operation is LESS_THAN or GREATER_THAN, i.e. |
void |
setNegated(boolean negated)
Determine whether this range result should be negated. |
void |
setOperation(int op)
Set the comparison operation of this range. |
void |
setType(String type)
Set the range value data type. |
String |
toString()
Get the string representation. |
boolean |
update()
Update the assembly. |
void |
writeAttributes(PrintWriter writer)
Write attributes. |
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, setName, setOuter, setPosition, setSize, setVisible, setWorksheet |
| Methods inherited from class inetsoft.uql.asset.AbstractAssembly |
|---|
addr, getAbsoluteName, getAssemblyEntry, getBounds, hashCode, isEditable, isVisible, parseXML, setBounds, 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 |
|---|
public DefaultDateRangeAssembly()
public DefaultDateRangeAssembly(Worksheet ws,
String name)
| Method Detail |
|---|
public int getAssemblyType()
getAssemblyType in interface Assemblypublic Dimension getMinimumSize()
getMinimumSize in interface Assemblypublic DateCondition getDateRange()
getDateRange in interface DateRangeAssemblypublic void setDateRange(DateCondition range)
setDateRange in interface DateRangeAssemblyrange - the specified date range.public boolean isTypeChangeable()
isTypeChangeable in interface XConditionpublic String getType()
XCondition
getType in interface XConditionXSchema.public void setType(String type)
setType in interface XConditiontype - the data type of the range. Must be one of the data type
constants defined in XSchema.public boolean isOperationChangeable()
isOperationChangeable in interface XConditionpublic int getOperation()
getOperation in interface XConditionXCondition.EQUAL_TO,
XCondition.ONE_OF,
XCondition.LESS_THAN,
XCondition.GREATER_THAN,
XCondition.BETWEEN,
XCondition.STARTING_WITH,
XCondition.LIKE,
XCondition.CONTAINS,
XCondition.NULL,
XCondition.TOP_N,
XCondition.DATE_INpublic void setOperation(int op)
setOperation in interface XConditionop - one of the operation constants defined in this class.public boolean isEqualChangeable()
isEqualChangeable in interface XConditionpublic boolean isEqual()
isEqual in interface XConditiontrue if equivalence will be testedpublic void setEqual(boolean equal)
LESS_THAN or GREATER_THAN, i.e.
a >= b.
setEqual in interface XConditionequal - true if equivalence should be testedpublic boolean isNegatedChangeable()
isNegatedChangeable in interface XConditionpublic boolean isNegated()
true if the if its range definition(s)
are not met.
isNegated in interface XConditiontrue if this range is negated.public void setNegated(boolean negated)
true if the if its range
definition(s) are not met.
setNegated in interface XConditionnegated - true if this range is negated.public boolean update()
update in interface WSAssemblyupdate in class AbstractWSAssemblypublic void replaceVariable(VariableTable vars)
replaceVariable in interface XConditionvars - the specified variable table.public void replaceVariables(VariableTable vars)
replaceVariables in interface WSAssemblyvars - the specified variable table.public UserVariable[] getAllVariables()
getAllVariables in interface inetsoft.uql.asset.internal.VariableProvidergetAllVariables in interface XConditionpublic boolean evaluate(Object value)
evaluate in interface XConditionvalue - the value object this range should be compared with.
true if the value object meets this range.
public void checkValidity()
throws Exception
checkValidity in interface WSAssemblycheckValidity in class AbstractWSAssemblyExceptionpublic boolean isValid()
isValid in interface XConditionpublic void getDependeds(Set set)
getDependeds in interface Assemblyset - the set stores the assemblies depended on.
public void renameDepended(String oname,
String nname)
renameDepended in interface Assemblyoname - the specified old name.nname - the specified new name.public void writeAttributes(PrintWriter writer)
writeAttributes in interface XConditionwriteAttributes in class AbstractAssemblywriter - the specified writer.public void parseAttributes(Element elem)
parseAttributes in interface XConditionparseAttributes in class AbstractAssemblyelem - the specified xml element.public void writeContents(PrintWriter writer)
writeContents in interface XConditionwriteContents in class AbstractAssemblywriter - the specified writer.
public void parseContents(Element elem)
throws Exception
parseContents in interface XConditionparseContents in class AbstractAssemblyelem - the specified xml element.
Exceptionpublic String toString()
toString in class AbstractAssemblypublic boolean equalsContent(Object obj)
equalsContent in interface inetsoft.util.ContentObject
public boolean printKey(PrintWriter writer)
throws Exception
printKey in interface inetsoft.util.ContentObjectExceptionpublic boolean equals(Object obj)
equals in class AbstractAssemblyobj - the specified object.
public Object clone()
clone in interface Assemblyclone in interface AssetObjectclone in interface XConditionclone in class AbstractWSAssembly
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||