Package com.fasterxml.jackson.databind
Class PropertyMetadata
java.lang.Object
com.fasterxml.jackson.databind.PropertyMetadata
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class used for containing information about expected merge information for this property, if merging is expected. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyMetadatastatic final PropertyMetadatastatic final PropertyMetadata -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyMetadataDeprecated.static PropertyMetadatagetIndex()booleanAccessor for determining whether property has declared "default value", which may be used by extension modules.booleanhasIndex()booleanwithDefaultValue(String def) withDescription(String desc) withMergeInfo(PropertyMetadata.MergeInfo mergeInfo)
-
Field Details
-
STD_REQUIRED
-
STD_OPTIONAL
-
STD_REQUIRED_OR_OPTIONAL
-
-
Method Details
-
construct
public static PropertyMetadata construct(Boolean req, String desc, Integer index, String defaultValue) - Since:
- 2.8.8
-
construct
@Deprecated public static PropertyMetadata construct(boolean req, String desc, Integer index, String defaultValue) Deprecated. -
withDescription
-
withMergeInfo
- Since:
- 2.9
-
withNulls
- Since:
- 2.9
-
withDefaultValue
-
withIndex
-
withRequired
-
getDescription
-
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
-
getIndex
- Since:
- 2.4
-
hasIndex
public boolean hasIndex()- Since:
- 2.4
-
getMergeInfo
- Since:
- 2.9
-
getValueNulls
- Since:
- 2.9
-
getContentNulls
- Since:
- 2.9
-