Interface RDFContainerAttribute<X,C,E>

Type Parameters:
X - The type the represented collection belongs to
C - Type of the collection
E - The element type of the represented collection
All Superinterfaces:
Attribute<X,C>, Bindable<E>, FieldSpecification<X,C>, PluralAttribute<X,C,E>
All Known Implementing Classes:
RdfContainerAttributeImpl

public interface RDFContainerAttribute<X,C,E> extends PluralAttribute<X,C,E>
Instances of the type RDFContainerAttribute represent attributes mapped to RDF containers.

RDF containers may be represented by different collections, depending on the type of the container. While a rdf:Seq is likely to be represented by a List, as it allows duplicates but is ordered, a rdf:Alt represents a set of alternatives and will thus probably be represented by a Set, possibly an implementation preserving order. A rdf:Bag allows duplicates and is unordered, but will likely be represented also by a List.

  • Method Details

    • getContainerType

      RDFContainerType getContainerType()
      Type of the RDF container represented by this attribute.
      Returns:
      RDF container type
    • isRdfContainer

      default boolean isRdfContainer()
      Description copied from interface: PluralAttribute
      Checks whether this attribute represents an RDF container.
      Specified by:
      isRdfContainer in interface PluralAttribute<X,C,E>
      Returns:
      true if this plural attribute is an RDF container, false otherwise