Package org.alfresco.repo.forms
Class PropertyFieldDefinition.FieldConstraint
java.lang.Object
org.alfresco.repo.forms.PropertyFieldDefinition.FieldConstraint
- Enclosing class:
- PropertyFieldDefinition
Represents a constraint on a property field
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldConstraint(String type, Map<String, Object> params) Constructs a FieldConstraint -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameters for the constraintorg.json.JSONObjectReturns the paramters for the constraint as a JSONObjectgetType()Returns the type of the constraint
-
Field Details
-
type
-
params
-
-
Constructor Details
-
FieldConstraint
Constructs a FieldConstraint- Parameters:
type- The type of the constraintparams- Map of parameters for the constraint
-
-
Method Details
-
getType
Returns the type of the constraint- Returns:
- The constraint type
-
getParameters
Returns the parameters for the constraint- Returns:
- Map of parameters for the constraint or null if there are no parameters
-
getParametersAsJSON
public org.json.JSONObject getParametersAsJSON()Returns the paramters for the constraint as a JSONObject- Returns:
- JSONObject representation of the parameters
-