Package org.apache.juneau.marshall.jena
Enum Class RdfCollectionFormat
- All Implemented Interfaces:
Serializable,Comparable<RdfCollectionFormat>,Constable
Used in conjunction with the
@Rdf(collectionFormat) annotation to fine-tune how
classes, beans, and bean properties are serialized, particularly collections.
See Also:
- {doc jmr.RdfDetails}
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCauses collections and arrays to be rendered as RDF bags.Default formatting (default).Causes collections and arrays to be rendered as RDF lists.Causes collections and arrays to be rendered as multi-valued RDF properties instead of sequences.Causes collections and arrays to be rendered as RDF sequences. -
Method Summary
Modifier and TypeMethodDescriptionstatic RdfCollectionFormatReturns the enum constant of this class with the specified name.static RdfCollectionFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default formatting (default).Inherit formatting from parent class or parent package. If no formatting specified at any level, default is
SEQ. -
SEQ
Causes collections and arrays to be rendered as RDF sequences. -
BAG
Causes collections and arrays to be rendered as RDF bags. -
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.Note that enabling this setting will cause order of elements in the collection to be lost.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-