Package org.alfresco.repo.forms
Interface DataTypeParameters
-
- All Known Implementing Classes:
PeriodDataTypeParameters
public interface DataTypeParametersInterface definition for an object used to represent any restrictions a data type may enforce.- Author:
- Gavin Cornwell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetAsJSON()Returns the parameters represented as JSON.java.lang.ObjectgetAsObject()Returns the parameters in a Java friendly manner i.e.
-
-
-
Method Detail
-
getAsObject
java.lang.Object getAsObject()
Returns the parameters in a Java friendly manner i.e. as an Object. The Object can be as complex as a multiple nested Map of Maps or as simple as a String.- Returns:
- An Object representing the data type parameters
-
getAsJSON
java.lang.Object getAsJSON()
Returns the parameters represented as JSON.Implementations can use whatever JSON libraries they desire, the only rule is that the object returned must toString() to either a JSON array or JSON object i.e. [...] or {...}
- Returns:
- JSON Object representing the parameters
-
-