Class Field

    • Method Detail

      • getName

        public String getName()
        Gets the name of this field.
        Returns:
        the field's name - never null
      • getDisplayName

        public String getDisplayName()
        Gets the display name for this field.
        Returns:
        the field's display name or null if unset
      • getDescription

        public String getDescription()
        Gets the description for this field.
        Returns:
        the field's description or null if unset
      • isId

        public boolean isId()
        Gets whether or not this is an ID field.
        Returns:
        true if this field is an ID field
      • isRequired

        public boolean isRequired()
        Gets whether or not this field is required.
        Returns:
        true if this field is required
      • isReadable

        public boolean isReadable()
        Gets whether or not this field is readable.
        Returns:
        true if this field is readable
      • isWritable

        public boolean isWritable()
        Gets whether or not this field is writable.
        Returns:
        true if this field is writable
      • hasAttribute

        public boolean hasAttribute​(String name)
        Gets whether or not this field has the specified attribute.
        Parameters:
        name - the name of the attribute to check
        Returns:
        true if this field has the specified attribute
      • getAttribute

        public String getAttribute​(String name)
        Gets the specified attribute for this field.
        Parameters:
        name - the name of the attribute to get
        Returns:
        the value of the specified attribute - may be null
      • isNullable

        public boolean isNullable()

        Gets whether or not this field is nullable.

        To be nullable a field must meet all of the following conditions:

        • not required
        • not an ID field
        • not a primitive type

        Returns:
        true if this field is nullable
      • displayName

        public String displayName()
        Gets the name to display for this field.
        Returns:
        the displayName if set, otherwise the name