public enum ValueExistencePolicy extends Enum<ValueExistencePolicy>
MetadataStandard.asValueMap(…)
shall contain
entries for null or empty values. By default the map does not provide
entries for null
metadata properties or
empty collections.
This enumeration allows control on this behavior.MetadataStandard.asValueMap(Object, KeyNamePolicy, ValueExistencePolicy)
Defined in the sis-metadata module
Enum Constant and Description |
---|
ALL
Includes all entries in the map, including those having a null value or an
empty collection.
|
NON_EMPTY
Includes only the properties that are non-null and non empty.
|
NON_NULL
Includes only the non-null properties.
|
Modifier and Type | Method and Description |
---|---|
static ValueExistencePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueExistencePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueExistencePolicy ALL
public static final ValueExistencePolicy NON_NULL
public static final ValueExistencePolicy NON_EMPTY
AbstractMetadata.asMap()
.public static ValueExistencePolicy[] values()
for (ValueExistencePolicy c : ValueExistencePolicy.values()) System.out.println(c);
public static ValueExistencePolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2013 The Apache Software Foundation. All rights reserved.