Interface PeriodProvider
public interface PeriodProvider
Provider API for period implementations
- Author:
- andyh
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Period expression multiplicity -
Method Summary
Modifier and TypeMethodDescriptionGet the default expression - this could be nullGets the display label for the period.Return the Alfresco data type QName to which the string value of the expression will be converted.Is the expression required etc ...getNextDate
(Date date, String expression) Get the next date - the provided date + periodGet the name for the period.
-
Method Details
-
getPeriodType
String getPeriodType()Get the name for the period.- Returns:
- - period name
-
getDisplayLabel
String getDisplayLabel()Gets the display label for the period.- Returns:
- display label
-
getNextDate
Get the next date - the provided date + period- Parameters:
date
- Dateexpression
- String- Returns:
- the next date in the period
-
getExpressionMutiplicity
PeriodProvider.ExpressionMutiplicity getExpressionMutiplicity()Is the expression required etc ...- Returns:
- the multiplicity
-
getDefaultExpression
String getDefaultExpression()Get the default expression - this could be null- Returns:
- - the default expression.
-
getExpressionDataType
QName getExpressionDataType()Return the Alfresco data type QName to which the string value of the expression will be converted.- Returns:
- the alfresco data type or null if an expression is not allowed.
-