|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.AbstractCondition
inetsoft.uql.asset.DateCondition
inetsoft.uql.asset.DateRange
public class DateRange
Date range contains one or more DateConditions.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class inetsoft.uql.asset.DateCondition |
|---|
CALENDAR, ONE_DAY, ZONE |
| Fields inherited from class inetsoft.uql.AbstractCondition |
|---|
equal, negated, op, type |
| 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 | |
|---|---|
DateRange()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
addDateCondition(XCondition condition)
Add one date condition. |
void |
clear()
Clear the date range. |
Object |
clone()
Clone the object. |
boolean |
equals(Object obj)
Check if equals another object. |
boolean |
evaluate(Object value)
Evaluate this condition against the specified value object. |
UserVariable[] |
getAllVariables()
Get all variables in the condition value list. |
XCondition[] |
getDateConditions()
Get all the date conditions. |
String |
getLabel()
Get the label. |
boolean |
isValid()
Check if the condition is a valid condition. |
void |
parseContents(Element elem)
Parse the contents. |
boolean |
printKey(PrintWriter writer)
Print the key to identify this content object. |
boolean |
removeDateCondition(XCondition condition)
Remove one date condition. |
void |
replaceVariable(VariableTable vars)
Replace all embeded user variables. |
Condition |
toSqlCondition()
Convert this condition to sql mergeable condition. |
void |
writeContents(PrintWriter writer)
Write the contents. |
| Methods inherited from class inetsoft.uql.asset.DateCondition |
|---|
createSqlCondition, getBuiltinDateConditions, getDate, getDays, getHalfYear, getMonth, getMonths, getName, getQuarter, getWeeks, getYear, isEqualChangeable, isNegatedChangeable, isOperationChangeable, isTypeChangeable, setBuiltinDateConditions, setLabel, setName, toSqlCondition, toString |
| Methods inherited from class inetsoft.uql.AbstractCondition |
|---|
checkValueString, createDefaultValue, createXCondition, equalsContent, getBoolean, getDate, getDateObject, getObject, getObject, getOperation, getType, getValueSQLString, getValueString, getValueString, getValueString, isEqual, isNegated, parseAttributes, parseXML, setEqual, setNegated, setOperation, setType, writeAttributes, writeXML |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface inetsoft.util.XMLSerializable |
|---|
parseXML, writeXML |
| Constructor Detail |
|---|
public DateRange()
| Method Detail |
|---|
public boolean addDateCondition(XCondition condition)
condition - the specified date condition.
public boolean removeDateCondition(XCondition condition)
condition - the specified date condition.
public XCondition[] getDateConditions()
public void clear()
public boolean isValid()
public boolean evaluate(Object value)
value - the value object this condition should be compared with.
true if the value object meets this condition.public Condition toSqlCondition()
toSqlCondition in class DateConditionpublic void replaceVariable(VariableTable vars)
replaceVariable in interface XConditionreplaceVariable in class DateConditionvars - the specified variable table.public UserVariable[] getAllVariables()
getAllVariables in interface XConditiongetAllVariables in class DateConditionpublic void writeContents(PrintWriter writer)
writeContents in interface XConditionwriteContents in class DateConditionwriter - the specified print writer.
public void parseContents(Element elem)
throws Exception
parseContents in interface XConditionparseContents in class DateConditionelem - the specified xml element.
Exception
public boolean printKey(PrintWriter writer)
throws Exception
printKey in interface inetsoft.util.ContentObjectprintKey in class AbstractConditionExceptionpublic boolean equals(Object obj)
equals in class AbstractConditionpublic Object clone()
clone in interface AssetObjectclone in interface XConditionclone in class DateConditionpublic String getLabel()
getLabel in class DateCondition
|
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 | ||||||||