Class ConstraintAsset

    • Constructor Detail

      • ConstraintAsset

        public ConstraintAsset()
      • ConstraintAsset

        public ConstraintAsset​(java.lang.String name,
                               java.lang.String description,
                               PropertyType type)
    • Method Detail

      • getMinimum

        public java.lang.Double getMinimum()
        Gets the minimum of this numeric property.
        Specified by:
        getMinimum in interface IConstraintAsset
        Returns:
        the minimum of this numeric property
      • getMaximum

        public java.lang.Double getMaximum()
        Gets the maximum of this numeric property.
        Specified by:
        getMaximum in interface IConstraintAsset
        Returns:
        the maximum of this numeric property
      • getExclusiveMinimum

        public java.lang.Boolean getExclusiveMinimum()
        Gets the exclusive minimum of this numeric property.
        Specified by:
        getExclusiveMinimum in interface IConstraintAsset
        Returns:
        the exclusive minimum of this numeric property
      • getExclusiveMaximum

        public java.lang.Boolean getExclusiveMaximum()
        Gets the exclusive maximum of this numeric property.
        Specified by:
        getExclusiveMaximum in interface IConstraintAsset
        Returns:
        the exclusive maximum of this numeric property
      • getMinLength

        public java.lang.Integer getMinLength()
        Gets the min length of this string property.
        Specified by:
        getMinLength in interface IConstraintAsset
        Returns:
        the min length of this string property
      • getMaxLength

        public java.lang.Integer getMaxLength()
        Gets the max length of this string property.
        Specified by:
        getMaxLength in interface IConstraintAsset
        Returns:
        the max length of this string property
      • getPattern

        public java.lang.String getPattern()
        Gets the pattern of this string property.
        Specified by:
        getPattern in interface IConstraintAsset
        Returns:
        the pattern of this string property
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Gets the default of this string property.
        Specified by:
        getDefaultValue in interface IConstraintAsset
        Returns:
        the default of this string property
      • getMinItems

        public java.lang.Integer getMinItems()
        Gets the min items of this array property.
        Specified by:
        getMinItems in interface IConstraintAsset
        Returns:
        the min items of this array property
      • getMaxItems

        public java.lang.Integer getMaxItems()
        Gets the max items of this array property.
        Specified by:
        getMaxItems in interface IConstraintAsset
        Returns:
        the max items of this array property
      • getUniqueItems

        public java.lang.Boolean getUniqueItems()
        Gets the unique items of this array property.
        Specified by:
        getUniqueItems in interface IConstraintAsset
        Returns:
        the unique items of this array property
      • getProtect

        public boolean getProtect()
        Returns whether this property is protected or not
        Specified by:
        getProtect in interface IConstraintAsset
        Returns:
      • isReadOnly

        public boolean isReadOnly()
        Returns whether this property is read only or not
        Specified by:
        isReadOnly in interface IConstraintAsset
        Returns:
      • setMinimum

        public void setMinimum​(java.lang.Double minimum)
      • setMaximum

        public void setMaximum​(java.lang.Double maximum)
      • setExclusiveMinimum

        public void setExclusiveMinimum​(java.lang.Boolean exclusiveMinimum)
      • setExclusiveMaximum

        public void setExclusiveMaximum​(java.lang.Boolean exclusiveMaximum)
      • setMinLength

        public void setMinLength​(java.lang.Integer minLength)
      • setMaxLength

        public void setMaxLength​(java.lang.Integer maxLength)
      • setPattern

        public void setPattern​(java.lang.String pattern)
      • setDefaultValue

        public void setDefaultValue​(java.lang.String defaultValue)
      • setMinItems

        public void setMinItems​(java.lang.Integer minItems)
      • setMaxItems

        public void setMaxItems​(java.lang.Integer maxItems)
      • setUniqueItems

        public void setUniqueItems​(java.lang.Boolean uniqueItems)
      • setProtect

        public void setProtect​(boolean protect)
      • setReadOnly

        public void setReadOnly​(boolean isReadOnly)