Class IRIIdentifierImpl<T>
java.lang.Object
cz.cvut.kbss.jopa.model.metamodel.IRIIdentifierImpl<T>
- All Implemented Interfaces:
Bindable
,FieldSpecification
,Identifier
,IRIIdentifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.cvut.kbss.jopa.model.metamodel.Bindable
Bindable.BindableType
-
Constructor Summary
ConstructorsConstructorDescriptionIRIIdentifierImpl
(ManagedType<T> declaringType, Field javaField, boolean generated) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Class<?>
Return the Java type of the represented object.Return the bindable type of the represented object.Return the managed type representing the type in which the attribute was declared.Whether the association is lazily loaded or must be eagerly fetched.Return the java.lang.reflect.Member for the represented attribute.Class<?>
Return the Java type of the represented attribute.getName()
Return the name of the attribute.boolean
If this field is inferred, can it contain explicit data as well?boolean
Is the attribute collection-valued (represents a Collection, Set, List, or Map).boolean
boolean
Whether this field can contain inferred data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
isMappedAttribute
-
Constructor Details
-
IRIIdentifierImpl
-
-
Method Details
-
getDeclaringType
Description copied from interface:FieldSpecification
Return the managed type representing the type in which the attribute was declared.- Specified by:
getDeclaringType
in interfaceFieldSpecification
- Returns:
- declaring type
-
getJavaType
Description copied from interface:FieldSpecification
Return the Java type of the represented attribute.- Specified by:
getJavaType
in interfaceFieldSpecification
- Returns:
- Java type
-
getJavaField
Description copied from interface:FieldSpecification
Return the java.lang.reflect.Member for the represented attribute.- Specified by:
getJavaField
in interfaceFieldSpecification
- Returns:
- corresponding java.lang.reflect.Member
-
getFetchType
Description copied from interface:FieldSpecification
Whether the association is lazily loaded or must be eagerly fetched.- Specified by:
getFetchType
in interfaceFieldSpecification
- Returns:
- Fetch type of the field specification
-
isInferred
public boolean isInferred()Description copied from interface:FieldSpecification
Whether this field can contain inferred data.- Specified by:
isInferred
in interfaceFieldSpecification
- Returns:
- Whether field is inferred
- See Also:
-
includeExplicit
public boolean includeExplicit()Description copied from interface:FieldSpecification
If this field is inferred, can it contain explicit data as well?- Specified by:
includeExplicit
in interfaceFieldSpecification
- Returns:
- Whether inferred field can contain explicit knowledge
- See Also:
-
getName
Description copied from interface:FieldSpecification
Return the name of the attribute.- Specified by:
getName
in interfaceFieldSpecification
- Returns:
- name
-
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
- Returns:
- boolean indicating whether the attribute is collection-valued
-
accept
- Specified by:
accept
in interfaceIdentifier
-
isGenerated
public boolean isGenerated()- Specified by:
isGenerated
in interfaceIdentifier
-
getBindableType
Description copied from interface:Bindable
Return the bindable type of the represented object.- Specified by:
getBindableType
in interfaceBindable<T>
- Returns:
- bindable type
-
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<T>
- Returns:
- Java type
-