org.alfresco.repo.forms
Class PropertyFieldDefinition.FieldConstraint

java.lang.Object
  extended by org.alfresco.repo.forms.PropertyFieldDefinition.FieldConstraint
Enclosing class:
PropertyFieldDefinition

public static class PropertyFieldDefinition.FieldConstraint
extends java.lang.Object

Represents a constraint on a property field


Field Summary
protected  java.util.Map params
           
protected  java.lang.String type
           
 
Constructor Summary
PropertyFieldDefinition.FieldConstraint(java.lang.String type, java.util.Map params)
          Constructs a FieldConstraint
 
Method Summary
 java.util.Map getParameters()
          Returns the parameters for the constraint
 org.json.JSONObject getParametersAsJSON()
          Returns the paramters for the constraint as a JSONObject
 java.lang.String getType()
          Returns the type of the constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected java.lang.String type

params

protected java.util.Map params
Constructor Detail

PropertyFieldDefinition.FieldConstraint

public PropertyFieldDefinition.FieldConstraint(java.lang.String type,
                                               java.util.Map params)
Constructs a FieldConstraint

Parameters:
type - The type of the constraint
params - Map of parameters for 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 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.