Class CMAField


  • public class CMAField
    extends java.lang.Object
    CMAField.
    • Field Detail

      • defaultValue

        protected java.util.Map<java.lang.String,​java.lang.Object> defaultValue
    • Constructor Detail

      • CMAField

        public CMAField()
    • Method Detail

      • setDisabled

        public CMAField setDisabled​(boolean disabled)
        Sets the disabled attribute value.
        Parameters:
        disabled - boolean indicating whether or not this field is disabled Returns this CMAField instance
        Returns:
        this CMAField instance
      • setOmitted

        public CMAField setOmitted​(boolean omitted)
        Sets the omitted attribute value.
        Parameters:
        omitted - boolean indicating whether or not this field is complete omitted Returns this CMAField instance
        Returns:
        this CMAField instance
      • getId

        public java.lang.String getId()
        Returns:
        the id attribute of this field.
      • setId

        public CMAField setId​(java.lang.String id)
        Sets the ID for this field.
        Parameters:
        id - the id to be set
        Returns:
        this CMAField instance
      • getDefaultValue

        public java.util.Map<java.lang.String,​java.lang.Object> getDefaultValue()
        Returns:
        the defaultValue attribute value as a Map.
      • setDefaultValue

        public CMAField setDefaultValue​(java.util.Map<java.lang.String,​java.lang.Object> defaultValue)
        Sets the default value.
        Parameters:
        defaultValue - the defaultValue to be set
        Returns:
        this CMAField instance
      • getName

        public java.lang.String getName()
        Returns:
        the name attribute of this field.
      • setName

        public CMAField setName​(java.lang.String name)
        Sets the name for this field.
        Parameters:
        name - the name to be set
        Returns:
        this CMAField instance
      • setType

        public CMAField setType​(Constants.CMAFieldType type)
        Sets the type for this field.
        Parameters:
        type - the type to be set
        Returns:
        this CMAField instance
      • getLinkType

        public java.lang.String getLinkType()
        Returns:
        the linkType attribute of this field.
      • setLinkType

        public CMAField setLinkType​(java.lang.String linkType)
        Sets the link type for this field.
        Parameters:
        linkType - the type of link to be set
        Returns:
        this CMAField instance
      • getValidations

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getValidations()
        Returns:
        a List of validation rules for this field.
      • setValidations

        public CMAField setValidations​(java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> validations)
        Sets a List of validation rules for this field.
        Parameters:
        validations - validations list Returns this CMAField instance
        Returns:
        this CMAField instance
      • getAllowedResources

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getAllowedResources()
        Returns:
        a List of allowed resources.
      • setAllowedResources

        public CMAField setAllowedResources​(java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> allowedResources)
        Sets a List of allowed resources for this field.
        Parameters:
        allowedResources - allowed resources list Returns this CMAField instance
        Returns:
        this CMAField instance
      • getArrayItems

        public java.util.Map<java.lang.String,​java.lang.Object> getArrayItems()
        Returns:
        the items attribute value as a Map.
      • setArrayItems

        public CMAField setArrayItems​(java.util.Map<java.lang.String,​java.lang.Object> arrayItems)
        Sets the items attribute value.
        Parameters:
        arrayItems - Map instance
        Returns:
        this CMAField instance
      • isRequired

        public boolean isRequired()
        Returns:
        the required attribute of this field.
      • setRequired

        public CMAField setRequired​(boolean required)
        Sets the required attribute value.
        Parameters:
        required - boolean indicating whether or not this field is required Returns this CMAField instance
        Returns:
        this CMAField instance
      • isDisabled

        public java.lang.Boolean isDisabled()
        Returns:
        the disabled attribute of this field.
      • isOmitted

        public java.lang.Boolean isOmitted()
        Returns:
        the omitted attribute of this field.
      • isLocalized

        public boolean isLocalized()
        Returns:
        the localized attribute of this field.
      • setLocalized

        public CMAField setLocalized​(boolean localized)
        Sets the localized attribute value.
        Parameters:
        localized - boolean indicating whether or not this field is localized Returns this CMAField instance
        Returns:
        this CMAField instance
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a human readable string, representing the object.