Interface RDFContainerAttribute<X,C,E>
- Type Parameters:
X
- The type the represented collection belongs toC
- Type of the collectionE
- 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
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Attribute
Attribute.PersistentAttributeType
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Bindable
Bindable.BindableType
-
Method Summary
Modifier and TypeMethodDescriptionType of the RDF container represented by this attribute.default boolean
Checks whether this attribute represents an RDF container.Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.Attribute
getCascadeTypes, getConstraints, getDatatype, getIRI, getJavaMember, getLanguage, getPersistentAttributeType, hasLanguage, isAssociation, isLexicalForm, isMappedAttribute, isNonEmpty, isSimpleLiteral
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.Bindable
getBindableJavaType, getBindableType
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
getDeclaringType, getFetchType, getJavaField, getJavaType, getName, includeExplicit, isCollection, isInferred
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.PluralAttribute
getCollectionType, getElementType
-
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 interfacePluralAttribute<X,
C, E> - Returns:
true
if this plural attribute is an RDF container,false
otherwise
-