Style Intelligence v12.0

inetsoft.uql.asset
Class DateCondition.DaysCondition

java.lang.Object
  extended by inetsoft.uql.AbstractCondition
      extended by inetsoft.uql.asset.DateCondition
          extended by inetsoft.uql.asset.DateCondition.DaysCondition
All Implemented Interfaces:
AssetObject, XCondition, inetsoft.util.ContentObject, inetsoft.util.XMLSerializable, Serializable, Cloneable
Enclosing class:
DateCondition

public static class DateCondition.DaysCondition
extends DateCondition

Days condition.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.uql.asset.DateCondition
DateCondition.DayCondition, DateCondition.DaysCondition, DateCondition.MonthCondition, DateCondition.MonthsCondition, DateCondition.NthHalfYearCondition, DateCondition.NthMonthCondition, DateCondition.NthQuarterCondition, DateCondition.QuarterCondition, DateCondition.REFERENCE, DateCondition.ToDateCondition, DateCondition.WeekCondition, DateCondition.WeeksCondition, DateCondition.YearCondition
 
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
DateCondition.DaysCondition()
          Constructor.
DateCondition.DaysCondition(int from, int to)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 boolean evaluate(Object value)
          Evaluate this condition against the specified value object.
 int getFrom()
          Get the day from.
 int getTo()
          Get the day to.
 boolean isValid()
          Check if the condition is a valid condition.
 void parseAttributes(Element elem)
          Parse the attributes.
 boolean printKey(PrintWriter writer)
          Print the key to identify this content object.
 void setFrom(int from)
          Set the day from.
 void setTo(int to)
          Set the day to.
 Condition toSqlCondition()
          Convert this condition to sql mergeable condition.
 void writeAttributes(PrintWriter writer)
          Writer the attributes.
 
Methods inherited from class inetsoft.uql.asset.DateCondition
clone, createSqlCondition, getAllVariables, getBuiltinDateConditions, getDate, getDays, getHalfYear, getLabel, getMonth, getMonths, getName, getQuarter, getWeeks, getYear, isEqualChangeable, isNegatedChangeable, isOperationChangeable, isTypeChangeable, parseContents, replaceVariable, setBuiltinDateConditions, setLabel, setName, toSqlCondition, toString, writeContents
 
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

DateCondition.DaysCondition

public DateCondition.DaysCondition()
Constructor.


DateCondition.DaysCondition

public DateCondition.DaysCondition(int from,
                                   int to)
Constructor.

Method Detail

getFrom

public int getFrom()
Get the day from.


setFrom

public void setFrom(int from)
Set the day from.


getTo

public int getTo()
Get the day to.


setTo

public void setTo(int to)
Set the day to.


printKey

public boolean printKey(PrintWriter writer)
                 throws Exception
Print the key to identify this content object. If the keys of two content objects are equal, the content objects are equal too.

Specified by:
printKey in interface inetsoft.util.ContentObject
Overrides:
printKey in class AbstractCondition
Throws:
Exception

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class AbstractCondition
Returns:
trueif yes, false otherwise.

evaluate

public boolean evaluate(Object value)
Evaluate this condition against the specified value object.

Parameters:
value - the value object this condition should be compared with.
Returns:
true if the value object meets this condition.

toSqlCondition

public Condition toSqlCondition()
Convert this condition to sql mergeable condition.

Specified by:
toSqlCondition in class DateCondition

isValid

public boolean isValid()
Check if the condition is a valid condition.

Returns:
true if is valid, false otherwise.

writeAttributes

public void writeAttributes(PrintWriter writer)
Writer the attributes.

Specified by:
writeAttributes in interface XCondition
Overrides:
writeAttributes in class AbstractCondition
Parameters:
writer - the specified print writer.

parseAttributes

public void parseAttributes(Element elem)
                     throws Exception
Parse the attributes.

Specified by:
parseAttributes in interface XCondition
Overrides:
parseAttributes in class AbstractCondition
Parameters:
elem - the specified xml element.
Throws:
Exception

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