Enum Class RdfCollectionFormat

java.lang.Object
java.lang.Enum<RdfCollectionFormat>
org.apache.juneau.marshall.jena.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:
  • Enum Constant Details

    • DEFAULT

      public static final RdfCollectionFormat DEFAULT
      Default formatting (default).

      Inherit formatting from parent class or parent package. If no formatting specified at any level, default is SEQ.

    • SEQ

      public static final RdfCollectionFormat SEQ
      Causes collections and arrays to be rendered as RDF sequences.
    • BAG

      public static final RdfCollectionFormat BAG
      Causes collections and arrays to be rendered as RDF bags.
    • LIST

      public static final RdfCollectionFormat LIST
      Causes collections and arrays to be rendered as RDF lists.
    • MULTI_VALUED

      public static final RdfCollectionFormat 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

      public static RdfCollectionFormat[] 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

      public static RdfCollectionFormat valueOf(String name)
      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 name
      NullPointerException - if the argument is null