Class AbstractPluralAttribute<X,C,E>
java.lang.Object
cz.cvut.kbss.jopa.model.metamodel.AbstractAttribute<X,C>
cz.cvut.kbss.jopa.model.metamodel.AbstractPluralAttribute<X,C,E>
- All Implemented Interfaces:
Attribute<X,
,C> Bindable<E>
,FieldSpecification<X,
,C> PluralAttribute<X,
C, E>
- Direct Known Subclasses:
CollectionAttributeImpl
,ListAttributeImpl
,RdfContainerAttributeImpl
,SetAttributeImpl
public abstract class AbstractPluralAttribute<X,C,E>
extends AbstractAttribute<X,C>
implements PluralAttribute<X,C,E>
-
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 TypeMethodDescriptionReturn the Java type of the represented object.Return the bindable type of the represented object.Return the collection type.Return the type representing the element type of the collection.Return the Java type of the represented attribute.boolean
Is the attribute collection-valued (represents a Collection, Set, List, or Map).Methods inherited from class cz.cvut.kbss.jopa.model.metamodel.AbstractAttribute
getCascadeTypes, getConstraints, getConverter, getDatatype, getDeclaringType, getFetchType, getIRI, getJavaField, getJavaMember, getLanguage, getName, getPersistentAttributeType, hasLanguage, includeExplicit, isInferred, isLexicalForm, isNonEmpty, isSimpleLiteral, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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.FieldSpecification
getDeclaringType, getFetchType, getJavaField, getName, includeExplicit, isInferred
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.PluralAttribute
isRdfContainer
-
Method Details
-
isCollection
public boolean isCollection()Description copied from interface:FieldSpecification
Is the attribute collection-valued (represents a Collection, Set, List, or Map).- Specified by:
isCollection
in interfaceFieldSpecification<X,
C> - Returns:
- boolean indicating whether the attribute is collection-valued
-
getBindableJavaType
Description copied from interface:Bindable
Return the Java type of the represented object. If the bindable type of the object isBindable.BindableType.PLURAL_ATTRIBUTE
, the Java element type is returned. If the bindable type isBindable.BindableType.SINGULAR_ATTRIBUTE
orBindable.BindableType.ENTITY_TYPE
, the Java type of the represented entity or attribute is returned.- Specified by:
getBindableJavaType
in interfaceBindable<X>
- Returns:
- Java type
-
getBindableType
Description copied from interface:Bindable
Return the bindable type of the represented object.- Specified by:
getBindableType
in interfaceBindable<X>
- Returns:
- bindable type
-
getCollectionType
Description copied from interface:PluralAttribute
Return the collection type.- Specified by:
getCollectionType
in interfacePluralAttribute<X,
C, E> - Returns:
- collection type
-
getElementType
Description copied from interface:PluralAttribute
Return the type representing the element type of the collection.- Specified by:
getElementType
in interfacePluralAttribute<X,
C, E> - Returns:
- element type
-
getJavaType
Description copied from interface:FieldSpecification
Return the Java type of the represented attribute.- Specified by:
getJavaType
in interfaceFieldSpecification<X,
C> - Returns:
- Java type
-