Package org.alfresco.repo.forms
Class PropertyFieldDefinition.FieldConstraint
- java.lang.Object
-
- org.alfresco.repo.forms.PropertyFieldDefinition.FieldConstraint
-
- Enclosing class:
- PropertyFieldDefinition
public static class PropertyFieldDefinition.FieldConstraint extends java.lang.ObjectRepresents a constraint on a property field
-
-
Constructor Summary
Constructors Constructor Description FieldConstraint(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> params)Constructs a FieldConstraint
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getParameters()Returns the parameters for the constraintorg.json.JSONObjectgetParametersAsJSON()Returns the paramters for the constraint as a JSONObjectjava.lang.StringgetType()Returns the type of the constraint
-
-
-
Method Detail
-
getType
public java.lang.String getType()
Returns the type of the constraint- Returns:
- The constraint type
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> 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
-
-