Class PropertyMetadata

  • All Implemented Interfaces:
    java.io.Serializable

    public class PropertyMetadata
    extends java.lang.Object
    implements java.io.Serializable
    Simple container class used for storing "additional" metadata about properties. Carved out to reduce number of distinct properties that actual property implementations and place holders need to store; since instances are immutable, they can be freely shared.
    Since:
    2.3
    See Also:
    Serialized Form
    • Method Detail

      • construct

        public static PropertyMetadata construct​(java.lang.Boolean req,
                                                 java.lang.String desc,
                                                 java.lang.Integer index,
                                                 java.lang.String defaultValue)
        Since:
        2.8.8
      • construct

        @Deprecated
        public static PropertyMetadata construct​(boolean req,
                                                 java.lang.String desc,
                                                 java.lang.Integer index,
                                                 java.lang.String defaultValue)
        Deprecated.
      • withDescription

        public PropertyMetadata withDescription​(java.lang.String desc)
      • withDefaultValue

        public PropertyMetadata withDefaultValue​(java.lang.String def)
      • getDescription

        public java.lang.String getDescription()
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Since:
        2.5
      • hasDefaultValue

        public boolean hasDefaultValue()
        Accessor for determining whether property has declared "default value", which may be used by extension modules.
        Since:
        2.6
      • isRequired

        public boolean isRequired()
      • getRequired

        public java.lang.Boolean getRequired()
      • getIndex

        public java.lang.Integer getIndex()
        Since:
        2.4
      • hasIndex

        public boolean hasIndex()
        Since:
        2.4
      • getValueNulls

        public Nulls getValueNulls()
        Since:
        2.9
      • getContentNulls

        public Nulls getContentNulls()
        Since:
        2.9