Interface PluralAttribute<X,C,E>
- Type Parameters:
X- The type the represented collection belongs toC- The type of the represented collectionE- The element type of the represented collection
- All Superinterfaces:
Attribute<X,,C> Bindable<E>,FieldSpecification<X,C>
- All Known Subinterfaces:
CollectionAttribute<X,,E> ListAttribute<X,,E> MapAttribute<X,,K, V> RDFContainerAttribute<X,,C, E> SetAttribute<X,E>
- All Known Implementing Classes:
AbstractPluralAttribute,CollectionAttributeImpl,ListAttributeImpl,RDFCollectionAttribute,RdfContainerAttributeImpl,SetAttributeImpl
Instances of the type PluralAttribute represent persistent collection-valued attributes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Attribute
Attribute.PersistentAttributeTypeNested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Bindable
Bindable.BindableType -
Method Summary
Modifier and TypeMethodDescriptionReturn the collection type.Return the type representing the element type of the collection.default booleanWhether this list represents a RDF collection.default booleanChecks 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, isSimpleLiteralMethods inherited from interface cz.cvut.kbss.jopa.model.metamodel.Bindable
getBindableJavaType, getBindableTypeMethods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
getDeclaringType, getFetchType, getJavaField, getJavaType, getName, includeExplicit, isCollection, isInferred
-
Method Details
-
getCollectionType
CollectionType getCollectionType()Return the collection type.- Returns:
- collection type
-
getElementType
Return the type representing the element type of the collection.- Returns:
- element type
-
isRdfContainer
default boolean isRdfContainer()Checks whether this attribute represents an RDF container.- Returns:
trueif this plural attribute is an RDF container,falseotherwise
-
isRDFCollection
default boolean isRDFCollection()Whether this list represents a RDF collection.- Returns:
truewhen this list attribute is an RDF collection,falseotherwise- See Also:
-