com.fasterxml.jackson.databind

Class PropertyMetadata

  • All Implemented Interfaces:
    Serializable


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

      • STD_REQUIRED_OR_OPTIONAL

        public static final PropertyMetadata STD_REQUIRED_OR_OPTIONAL
      • _required

        protected final Boolean _required
        Three states: required, not required and unknown; unknown represented as null.
      • _description

        protected final String _description
        Optional human-readable description associated with the property.
      • _index

        protected final Integer _index
        Optional index of the property within containing Object.
        Since:
        2.4
    • Method Detail

      • readResolve

        protected Object readResolve()
        Minor optimization: let's canonicalize back to placeholders in cases where there is no real data to consider
      • getDescription

        public String getDescription()
      • isRequired

        public boolean isRequired()
      • getRequired

        public Boolean getRequired()
      • getIndex

        public Integer getIndex()
        Since:
        2.4
      • hasIndex

        public boolean hasIndex()
        Since:
        2.4

Copyright © 2014 FasterXML. All Rights Reserved.