com.monad.homerun.model.date
Class DateRelation
java.lang.Object
com.monad.homerun.model.Relation
com.monad.homerun.model.date.DateRelation
- All Implemented Interfaces:
- java.io.Serializable
public class DateRelation
- extends Relation
DateRelation extends Relation to describe a date value
- See Also:
- Serialized Form
Constructor Summary |
DateRelation()
|
DateRelation(DateRelation rel)
|
DateRelation(java.lang.String domain,
java.lang.String modelName,
int operator,
int mode,
int valueType,
long dateValue)
|
DateRelation(java.lang.String domain,
java.lang.String modelName,
int operator,
int mode,
int valueType,
java.lang.String comparator)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DATE_MODE
public static final int DATE_MODE
- See Also:
- Constant Field Values
NOW_MODE
public static final int NOW_MODE
- See Also:
- Constant Field Values
MODEL_MODE
public static final int MODEL_MODE
- See Also:
- Constant Field Values
FUNCTION_MODE
public static final int FUNCTION_MODE
- See Also:
- Constant Field Values
DateRelation
public DateRelation()
DateRelation
public DateRelation(java.lang.String domain,
java.lang.String modelName,
int operator,
int mode,
int valueType,
long dateValue)
DateRelation
public DateRelation(java.lang.String domain,
java.lang.String modelName,
int operator,
int mode,
int valueType,
java.lang.String comparator)
DateRelation
public DateRelation(DateRelation rel)
copy
public Relation copy()
- Specified by:
copy
in class Relation
getDateValue
public long getDateValue()
setValueType
public void setValueType(int valueType)
toString
public java.lang.String toString()
- Description copied from class:
Relation
- Returns a string representation of the relation
- Overrides:
toString
in class Relation
- Returns:
- relation as a string
getValueType
public int getValueType()
isObservable
public boolean isObservable()
validate
public boolean validate(Relator relator,
Trace trace)
- Description copied from class:
Relation
- Validates the terms of the relation with optional tracing
- Specified by:
validate
in class Relation
- Parameters:
relator
- - the entity performing the relation comparisontrace
- - optional trace object
- Returns:
- true if relation is valid, otherwise false
holds
public boolean holds(java.lang.String objectName,
java.lang.String compObjName,
Relator relator,
Trace trace)
throws NoResourceException
- Specified by:
holds
in class Relation
- Throws:
NoResourceException
getValue
public java.lang.String getValue()
- Specified by:
getValue
in class Relation
getComparator
public java.lang.String getComparator()
getMode
public int getMode()
Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.