|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.service.calendar.TemporalExpression
org.ofbiz.service.calendar.TemporalExpressions.DayInMonth
public static class TemporalExpressions.DayInMonth
A temporal expression that represents a day in the month.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.ofbiz.service.calendar.TemporalExpression |
|---|
TemporalExpression.ExpressionContext |
| Field Summary | |
|---|---|
protected int |
dayOfWeek
|
protected int |
occurrence
|
| Fields inherited from class org.ofbiz.service.calendar.TemporalExpression |
|---|
id, sequence |
| Constructor Summary | |
|---|---|
TemporalExpressions.DayInMonth(int dayOfWeek,
int occurrence)
|
|
| Method Summary | |
|---|---|
void |
accept(TemporalExpressionVisitor visitor)
Handles a TemporalExpressionVisitor visit. |
protected com.ibm.icu.util.Calendar |
alignDayOfWeek(com.ibm.icu.util.Calendar cal)
|
boolean |
equals(java.lang.Object obj)
|
com.ibm.icu.util.Calendar |
first(com.ibm.icu.util.Calendar cal)
Returns a date representing the first occurrence of this expression on or after a specified date. |
int |
getDayOfWeek()
Returns the day of week in this expression. |
int |
getOccurrence()
Returns the occurrence in this expression. |
boolean |
includesDate(com.ibm.icu.util.Calendar cal)
Returns true if this expression includes the specified date. |
boolean |
isSubstitutionCandidate(com.ibm.icu.util.Calendar cal,
TemporalExpression expressionToTest)
Returns true if this expression is a candidate for substitution using the expression expressionToTest for the date
cal. |
com.ibm.icu.util.Calendar |
next(com.ibm.icu.util.Calendar cal,
TemporalExpression.ExpressionContext context)
|
java.lang.String |
toString()
|
| Methods inherited from class org.ofbiz.service.calendar.TemporalExpression |
|---|
compareTo, containsExpression, getId, getRange, next, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final int dayOfWeek
protected final int occurrence
| Constructor Detail |
|---|
public TemporalExpressions.DayInMonth(int dayOfWeek,
int occurrence)
dayOfWeek - An integer in the range of Calendar.SUNDAY
to Calendar.SATURDAYoccurrence - An integer in the range of -5 to 5, excluding zero| Method Detail |
|---|
public void accept(TemporalExpressionVisitor visitor)
TemporalExpressionTemporalExpressionVisitor visit.
accept in class TemporalExpressionprotected com.ibm.icu.util.Calendar alignDayOfWeek(com.ibm.icu.util.Calendar cal)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic com.ibm.icu.util.Calendar first(com.ibm.icu.util.Calendar cal)
TemporalExpressionnull if there
is no matching date.
first in class TemporalExpressioncal - A date to evaluate
null if no matching date is foundpublic int getDayOfWeek()
public int getOccurrence()
public boolean includesDate(com.ibm.icu.util.Calendar cal)
TemporalExpression
includesDate in class TemporalExpressioncal - A date to evaluate
cal
public boolean isSubstitutionCandidate(com.ibm.icu.util.Calendar cal,
TemporalExpression expressionToTest)
TemporalExpressionexpressionToTest for the date
cal. A Substitution object will call this
method when it needs to know if this expression could have produced
the date cal based on the expression
expressionToTest.
isSubstitutionCandidate in class TemporalExpressioncal - A date to evaluateexpressionToTest - An expression to evaluate
cal using the expression expressionToTest
public com.ibm.icu.util.Calendar next(com.ibm.icu.util.Calendar cal,
TemporalExpression.ExpressionContext context)
next in class TemporalExpressionpublic java.lang.String toString()
toString in class TemporalExpression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||