public class PropertyMetadata extends Object implements Serializable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | PropertyMetadata.MergeInfoHelper class used for containing information about expected merge
 information for this property, if merging is expected. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected Nulls | _contentNullsSettings regarding handling of incoming `null`s, both for value itself
 and, for structured types, content values (array/Collection elements,
 Map values). | 
| protected String | _defaultValueOptional default value, as String, for property; not used for
 any functionality by core databind, offered as metadata for
 extensions. | 
| protected String | _descriptionOptional human-readable description associated with the property. | 
| protected Integer | _indexOptional index of the property within containing Object. | 
| protected PropertyMetadata.MergeInfo | _mergeInfoSettings regarding merging, if property is determined to possibly
 be mergeable (possibly since global settings may be omitted for
 non-mergeable types). | 
| protected Boolean | _requiredThree states: required, not required and unknown; unknown represented
 as null. | 
| protected Nulls | _valueNullsSettings regarding handling of incoming `null`s, both for value itself
 and, for structured types, content values (array/Collection elements,
 Map values). | 
| static PropertyMetadata | STD_OPTIONAL | 
| static PropertyMetadata | STD_REQUIRED | 
| static PropertyMetadata | STD_REQUIRED_OR_OPTIONAL | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | PropertyMetadata(Boolean req,
                String desc,
                Integer index,
                String def,
                PropertyMetadata.MergeInfo mergeInfo,
                Nulls valueNulls,
                Nulls contentNulls) | 
public static final PropertyMetadata STD_REQUIRED
public static final PropertyMetadata STD_OPTIONAL
public static final PropertyMetadata STD_REQUIRED_OR_OPTIONAL
protected final Boolean _required
protected final String _description
protected final Integer _index
protected final String _defaultValue
protected final transient PropertyMetadata.MergeInfo _mergeInfo
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.
protected Nulls _valueNulls
protected Nulls _contentNulls
public static PropertyMetadata construct(Boolean req, String desc, Integer index, String defaultValue)
@Deprecated public static PropertyMetadata construct(boolean req, String desc, Integer index, String defaultValue)
protected Object readResolve()
public PropertyMetadata withDescription(String desc)
public PropertyMetadata withMergeInfo(PropertyMetadata.MergeInfo mergeInfo)
public PropertyMetadata withNulls(Nulls valueNulls, Nulls contentNulls)
public PropertyMetadata withDefaultValue(String def)
public PropertyMetadata withIndex(Integer index)
public PropertyMetadata withRequired(Boolean b)
public String getDescription()
public String getDefaultValue()
public boolean hasDefaultValue()
public boolean isRequired()
public Boolean getRequired()
public Integer getIndex()
public boolean hasIndex()
public PropertyMetadata.MergeInfo getMergeInfo()
public Nulls getValueNulls()
public Nulls getContentNulls()
Copyright © 2008–2020 FasterXML. All rights reserved.