public class PropertyMetadata extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
_description
Optional human-readable description associated with the property.
|
protected Boolean |
_required
Three states: required, not required and unknown; unknown represented
as null.
|
static PropertyMetadata |
STD_OPTIONAL |
static PropertyMetadata |
STD_REQUIRED |
static PropertyMetadata |
STD_REQUIRED_OR_OPTIONAL |
Modifier | Constructor and Description |
---|---|
protected |
PropertyMetadata(Boolean req,
String desc) |
Modifier and Type | Method and Description |
---|---|
static PropertyMetadata |
construct(boolean req,
String desc) |
String |
getDescription() |
Boolean |
getRequired() |
boolean |
isRequired() |
protected Object |
readResolve()
Minor optimization: let's canonicalize back to placeholders in cases
where there is no real data to consider
|
PropertyMetadata |
withDescription(String desc) |
PropertyMetadata |
withRequired(Boolean b) |
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
public static PropertyMetadata construct(boolean req, String desc)
protected Object readResolve()
public PropertyMetadata withDescription(String desc)
public PropertyMetadata withRequired(Boolean b)
public String getDescription()
public boolean isRequired()
public Boolean getRequired()
Copyright © 2012-2015 FasterXML. All Rights Reserved.