public class DatatypeFeatures
extends java.lang.Object
implements java.io.Serializable
DatatypeFeature enumerations.| Modifier and Type | Method and Description |
|---|---|
static DatatypeFeatures |
defaultFeatures() |
java.lang.Boolean |
getExplicitState(DatatypeFeature f)
Accessor for getting explicit state of given feature in this set
iff explicitly set, or
null if not explicitly set (default value) |
boolean |
isEnabled(DatatypeFeature f)
Accessor for getting value of specified feature in this set, regardless of
whether explicit defined or not (if not explicitly enabled/disabled returns
default value,
JacksonFeature.enabledByDefault(). |
boolean |
isExplicitlyDisabled(DatatypeFeature f)
Convenience method equivalent to:
|
boolean |
isExplicitlyEnabled(DatatypeFeature f)
Convenience method equivalent to:
|
boolean |
isExplicitlySet(DatatypeFeature f)
Accessor for checking whether given feature has been explicitly enabled or
disabled in this set or not: if not it has the default value.
|
DatatypeFeatures |
with(DatatypeFeature f)
Mutant factory method that returns an instance with given Feature
explicitly enabled.
|
DatatypeFeatures |
withFeatures(DatatypeFeature... features)
"Bulk" variant of
with(DatatypeFeature) which allows explicit enabling
of multiple features |
DatatypeFeatures |
without(DatatypeFeature f)
Mutant factory method that returns an instance with given Feature
explicitly disabled.
|
DatatypeFeatures |
withoutFeatures(DatatypeFeature... features)
"Bulk" variant of
without(DatatypeFeature) which allows explicit disabling
of multiple features |
public static DatatypeFeatures defaultFeatures()
public DatatypeFeatures with(DatatypeFeature f)
f - DatatypeFeature to explicitly enable in this setpublic DatatypeFeatures withFeatures(DatatypeFeature... features)
with(DatatypeFeature) which allows explicit enabling
of multiple featuresfeatures - DatatypeFeatures to explicitly enable in this setpublic DatatypeFeatures without(DatatypeFeature f)
f - DatatypeFeature to explicitly disable in this setpublic DatatypeFeatures withoutFeatures(DatatypeFeature... features)
without(DatatypeFeature) which allows explicit disabling
of multiple featuresfeatures - DatatypeFeatures to explicitly disable in this setpublic boolean isEnabled(DatatypeFeature f)
JacksonFeature.enabledByDefault().f - Feature to checkpublic boolean isExplicitlySet(DatatypeFeature f)
f - Feature to checkpublic boolean isExplicitlyEnabled(DatatypeFeature f)
isExplicitlySet(f) && isEnabled(f)
f - Feature to checkpublic boolean isExplicitlyDisabled(DatatypeFeature f)
isExplicitlySet(f) && isDisabled(f)
f - Feature to checkpublic java.lang.Boolean getExplicitState(DatatypeFeature f)
null if not explicitly set (default value)f - Feature to checkBoolean.TRUE if Feature has been explicitly enabled in this set;
Boolean.FALSE if Feature has been explicitly disabled in this set; or
null if Feature still has its default value.Copyright © 2010 - 2024 Adobe. All Rights Reserved