Class PeriodDataTypeParameters
- java.lang.Object
-
- org.alfresco.repo.forms.processor.node.PeriodDataTypeParameters
-
- All Implemented Interfaces:
Serializable,DataTypeParameters
public class PeriodDataTypeParameters extends Object implements DataTypeParameters, Serializable
Represents the parameters for the period data type.- Author:
- Gavin Cornwell
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<PeriodProvider>providers
-
Constructor Summary
Constructors Constructor Description PeriodDataTypeParameters()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPeriodProvider(PeriodProvider pp)Adds a PeriodProviderObjectgetAsJSON()Returns the valid period options as a JSONArray of JSONObject's.ObjectgetAsObject()Retrieves a List of PeriodProvider objects representing the valid period options for the property
-
-
-
Field Detail
-
providers
protected List<PeriodProvider> providers
-
-
Method Detail
-
addPeriodProvider
public void addPeriodProvider(PeriodProvider pp)
Adds a PeriodProvider- Parameters:
pp- The PeriodProvider to add
-
getAsObject
public Object getAsObject()
Retrieves a List of PeriodProvider objects representing the valid period options for the property- Specified by:
getAsObjectin interfaceDataTypeParameters- Returns:
- List of PeriodProvider objects
- See Also:
DataTypeParameters.getAsObject()
-
getAsJSON
public Object getAsJSON()
Returns the valid period options as a JSONArray of JSONObject's.- Specified by:
getAsJSONin interfaceDataTypeParameters- Returns:
- A JSONArray object holding JSONObject's representing the period definitions
- See Also:
DataTypeParameters.getAsJSON()
-
-