Class PropertyMetadata
java.lang.Object
edu.internet2.middleware.grouperClientExt.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
Modifier and TypeClassDescriptionstatic final class
Helper class used for containing information about expected merge information for this property, if merging is expected. -
Field Summary
Modifier and TypeFieldDescriptionprotected Nulls
Settings regarding handling of incoming `null`s, both for value itself and, for structured types, content values (array/Collection elements, Map values).protected final String
Optional default value, as String, for property; not used for any functionality by core databind, offered as metadata for extensions.protected final String
Optional human-readable description associated with the property.protected final Integer
Optional index of the property within containing Object.protected final PropertyMetadata.MergeInfo
Settings regarding merging, if property is determined to possibly be mergeable (possibly since global settings may be omitted for non-mergeable types).protected final Boolean
Three states: required, not required and unknown; unknown represented as null.protected Nulls
Settings regarding handling of incoming `null`s, both for value itself and, for structured types, content values (array/Collection elements, Map values).static final PropertyMetadata
static final PropertyMetadata
static final PropertyMetadata
-
Constructor Summary
ModifierConstructorDescriptionprotected
PropertyMetadata
(Boolean req, String desc, Integer index, String def, PropertyMetadata.MergeInfo mergeInfo, Nulls valueNulls, Nulls contentNulls) -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyMetadata
Deprecated.static PropertyMetadata
getIndex()
boolean
Accessor for determining whether property has declared "default value", which may be used by extension modules.boolean
hasIndex()
boolean
protected Object
Minor optimization: let's canonicalize back to placeholders in cases where there is no real data to considerwithDefaultValue
(String def) withDescription
(String desc) withMergeInfo
(PropertyMetadata.MergeInfo mergeInfo)
-
Field Details
-
STD_REQUIRED
-
STD_OPTIONAL
-
STD_REQUIRED_OR_OPTIONAL
-
_required
Three states: required, not required and unknown; unknown represented as null. -
_description
Optional human-readable description associated with the property. -
_index
Optional index of the property within containing Object.- Since:
- 2.4
-
_defaultValue
Optional default value, as String, for property; not used for any functionality by core databind, offered as metadata for extensions. -
_mergeInfo
Settings regarding merging, if property is determined to possibly be mergeable (possibly since global settings may be omitted for non-mergeable types).NOTE: transient since it is assumed that this information is only relevant during initial setup and not needed after full initialization. May be changed if this proves necessary.
- Since:
- 2.9
-
_valueNulls
Settings regarding handling of incoming `null`s, both for value itself and, for structured types, content values (array/Collection elements, Map values).- Since:
- 2.9
-
_contentNulls
Settings regarding handling of incoming `null`s, both for value itself and, for structured types, content values (array/Collection elements, Map values).- Since:
- 2.9
-
-
Constructor Details
-
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. -
readResolve
Minor optimization: let's canonicalize back to placeholders in cases where there is no real data to consider -
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
-