public enum RdfCollectionFormat extends Enum<RdfCollectionFormat>
@Rdf.collectionFormat()
annotation to fine-tune how
classes, beans, and bean properties are serialized, particularly collections.Enum Constant and Description |
---|
BAG
Causes collections and arrays to be rendered as RDF bags.
|
DEFAULT
Default formatting (default).
|
LIST
Causes collections and arrays to be rendered as RDF lists.
|
MULTI_VALUED
Causes collections and arrays to be rendered as multi-valued RDF properties instead of sequences.
|
SEQ
Causes collections and arrays to be rendered as RDF sequences.
|
Modifier and Type | Method and Description |
---|---|
static RdfCollectionFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RdfCollectionFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RdfCollectionFormat DEFAULT
Inherit formatting from parent class or parent package.
If no formatting specified at any level, default is SEQ
.
public static final RdfCollectionFormat SEQ
public static final RdfCollectionFormat BAG
public static final RdfCollectionFormat LIST
public static final RdfCollectionFormat MULTI_VALUED
Note that enabling this setting will cause order of elements in the collection to be lost.
public static RdfCollectionFormat[] values()
for (RdfCollectionFormat c : RdfCollectionFormat.values()) System.out.println(c);
public static RdfCollectionFormat 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 © 2018 Apache. All rights reserved.