|
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.PeriodCondition
public class PeriodCondition
Period condition as a DateCondition evaluates Date objects in a period.
| 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 | |
|---|---|
PeriodCondition()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Check if equals another object. |
boolean |
evaluate(Object value)
Evaluate this condition against the specified value object. |
Date |
getFrom()
Get the date from. |
String |
getLabel()
Get the label. |
Date |
getTo()
Get the date to. |
boolean |
isValid()
Check if the condition is a valid condition. |
void |
parseAttributes(Element elem)
Parse the attributes. |
void |
parseContents(Element elem)
Parse the contents. |
boolean |
printKey(PrintWriter writer)
Print the key to identify this content object. |
void |
setFrom(Date from)
Set the date from. |
void |
setTo(Date to)
Set the date to. |
Condition |
toSqlCondition()
Convert this condition to sql mergeable condition. |
void |
writeAttributes(PrintWriter writer)
Writer the attributes. |
void |
writeContents(PrintWriter writer)
Write the contents. |
| Methods inherited from class inetsoft.uql.asset.DateCondition |
|---|
clone, createSqlCondition, getAllVariables, getBuiltinDateConditions, getDate, getDays, getHalfYear, getMonth, getMonths, getName, getQuarter, getWeeks, getYear, isEqualChangeable, isNegatedChangeable, isOperationChangeable, isTypeChangeable, replaceVariable, 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, parseXML, setEqual, setNegated, setOperation, setType, 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 PeriodCondition()
| Method Detail |
|---|
public Date getFrom()
public void setFrom(Date from)
from - the specified date from.public Date getTo()
public void setTo(Date to)
to - the specified date to.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 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.
Exceptionpublic void writeAttributes(PrintWriter writer)
writeAttributes in interface XConditionwriteAttributes in class AbstractConditionwriter - the specified print writer.
public void parseAttributes(Element elem)
throws Exception
parseAttributes in interface XConditionparseAttributes in class AbstractConditionelem - the specified xml element.
Exceptionpublic boolean equals(Object obj)
equals in class AbstractConditionpublic String getLabel()
getLabel in class DateCondition
public boolean printKey(PrintWriter writer)
throws Exception
printKey in interface inetsoft.util.ContentObjectprintKey in class AbstractConditionException
|
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 | ||||||||