|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.model.Model com.bea.p13n.model.XmlObjectModel com.bea.p13n.rules.model.ClauseModel com.bea.p13n.rules.model.DateTimeBetweenModel
public class DateTimeBetweenModel
A clause model to represent one of three clauses for check if the current date/time is between 2 date/times. This supports the following clause types:
wlp:time-between
for checking if the
current time is between 2 times.
wlp:date-between
for checking if the
current date is between 2 dates.
wlp:datetime-between
for checking
if the current datetime is between 2 datetimes.
Nested Class Summary | |
---|---|
static class |
DateTimeBetweenModel.Recognizer
|
Nested classes/interfaces inherited from class com.bea.p13n.model.Model |
---|
Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug |
Field Summary | |
---|---|
static String |
DATE_BETWEEN_CLAUSE_TYPE
|
static String |
DATETIME_BETWEEN_CLAUSE_TYPE
|
static String |
TIME_BETWEEN_CLAUSE_TYPE
|
Fields inherited from class com.bea.p13n.rules.model.ClauseModel |
---|
clauseType |
Fields inherited from class com.bea.p13n.model.XmlObjectModel |
---|
copyRootXmlObject, instanceUri, isComplete |
Fields inherited from class com.bea.p13n.model.Model |
---|
childrenModels, docModel, parentModel, roChildrenModels |
Constructor Summary | |
---|---|
DateTimeBetweenModel()
|
Method Summary | |
---|---|
void |
clearCachedData()
Subclasses need to override this to clear out any cached data. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject(String clauseType)
Create a new, empty root object for the specified clauseType. |
protected boolean |
determineIsComplete()
This is complete if top and bottom calendars are set. |
Calendar |
getBottom()
Get the bottom time/date/time-instant of the range. |
protected Calendar |
getCalendar(int index)
|
Calendar |
getTop()
Get the top time/date/time-instant of the range. |
void |
setBottom(Calendar cal)
Set the bottom value of the range. |
protected boolean |
setCalendar(int index,
Calendar cal)
|
void |
setTop(Calendar cal)
Set the top value of the range. |
void |
setXmlObject(String clauseType,
org.apache.xmlbeans.XmlObject clause)
Initialize this clause model with a type and a root object. |
Methods inherited from class com.bea.p13n.rules.model.ClauseModel |
---|
addBranch, addLiteral, addMethod, addMethodOrOperator, addOperator, addVariable, addVariableBinding, copy, getClauseType, getContainingRuleModel, getCopyXmlObject, initializeNew, isInActions, isInConditions, isValidTypeAlias, isValidVariableName, makeSafeCopy, toString |
Methods inherited from class com.bea.p13n.model.XmlObjectModel |
---|
checkElement, childAdded, childRemoved, fixQName, getApplicationInstanceUri, getChild, getDocument, getLocalName, getParent, getQName, getRootXmlObject, isComplete, isNil, preRemove, propertyChanged, removeAllChildren, removeChild, setApplicationInstanceUri, setIsComplete, setIsComplete, setParent, setRootXmlObject |
Methods inherited from class com.bea.p13n.model.Model |
---|
addChangeListener, addChild, addChild, clone, doubleEquals, equals, getChildren, getDebug, getDebug, getDocument, getParent, longEquals, removeChangeListener, removeChild, removeChild, removeEmpties, setDocument |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TIME_BETWEEN_CLAUSE_TYPE
public static final String DATE_BETWEEN_CLAUSE_TYPE
public static final String DATETIME_BETWEEN_CLAUSE_TYPE
Constructor Detail |
---|
public DateTimeBetweenModel()
Method Detail |
---|
public void setXmlObject(String clauseType, org.apache.xmlbeans.XmlObject clause) throws IllegalArgumentException
ClauseModel
This will fire ChangeEvents
for clauseType and rootXmlObject.
Subclasses should override to call super.setXmlObject() and do any type checking and verification.
It is not expected that ClauseModels are valid after a call to this method which throws an exception, although the caller could recall this method with valid data.
setXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.clause
- the root xml object of the clause.
IllegalArgumentException
- thrown if the clause is not valid for
the ClauseModel or clauseType.public org.apache.xmlbeans.XmlObject createNewXmlObject(String clauseType) throws IllegalArgumentException
ClauseModel
Subclasses need to implement this to create an appropriately typed
and filled root XmlObject which represents the ClauseModel. The return
value from this needs to be accepted from ClauseModel.setXmlObject(java.lang.String, org.apache.xmlbeans.XmlObject)
for the
specified clauseType.
createNewXmlObject
in class ClauseModel
clauseType
- the clause type of the clause.
IllegalArgumentException
- thrown on an unsupproted clauseType.public void clearCachedData()
XmlObjectModel
changes
.
clearCachedData
in class XmlObjectModel
public Calendar getBottom()
public Calendar getTop()
protected Calendar getCalendar(int index)
public void setBottom(Calendar cal)
public void setTop(Calendar cal)
protected boolean setCalendar(int index, Calendar cal)
protected boolean determineIsComplete()
determineIsComplete
in class XmlObjectModel
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |