Class PropertyFieldDefinition.FieldConstraint

  • Enclosing class:
    PropertyFieldDefinition

    public static class PropertyFieldDefinition.FieldConstraint
    extends java.lang.Object
    Represents a constraint on a property field
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.Object> params  
      protected java.lang.String type  
    • 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 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<java.lang.String,​java.lang.Object> params
    • Constructor Detail

      • FieldConstraint

        public FieldConstraint​(java.lang.String type,
                               java.util.Map<java.lang.String,​java.lang.Object> 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<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