Class MetaPropertyImpl
java.lang.Object
io.jmix.core.metamodel.model.impl.MetadataObjectImpl
io.jmix.core.metamodel.model.impl.MetaPropertyImpl
- All Implemented Interfaces:
MetadataObject,MetaProperty
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.core.metamodel.model.MetaProperty
MetaProperty.Type -
Field Summary
Fields inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
annotations, name -
Constructor Summary
ConstructorsConstructorDescriptionMetaPropertyImpl(MetaPropertyImpl prototype) MetaPropertyImpl(MetaClass domain, String name) -
Method Summary
Modifier and TypeMethodDescriptionMetadataObject annotations.Class<?>Class<?>getRange()getStore()getType()booleanbooleanvoidsetAnnotatedElement(AnnotatedElement annotatedElement) voidsetDeclaringClass(Class<?> declaringClass) voidvoidsetInverse(MetaProperty inverse) voidsetJavaType(Class<?> javaType) voidsetMandatory(boolean mandatory) voidvoidsetReadOnly(boolean readOnly) voidvoidsetType(MetaProperty.Type type) toString()protected voidwithClones(Consumer<MetaPropertyImpl> consumer) Methods inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.jmix.core.metamodel.model.MetadataObject
getName
-
Constructor Details
-
MetaPropertyImpl
-
MetaPropertyImpl
-
-
Method Details
-
getDomain
- Specified by:
getDomainin interfaceMetaProperty- Returns:
- MetaClass, containing this MetaProperty.
In case ofReplaceEntityreturns extended meta class.
-
setDomain
-
getInverse
- Specified by:
getInversein interfaceMetaProperty- Returns:
- a MetaProperty from the opposite side of relation, or null if this is not a reference property
-
setInverse
-
getSession
- Specified by:
getSessionin interfaceMetaProperty- Returns:
- containing MetaModel instance. Null signifies a temporary metaclass, not associated with an entity class.
-
getRange
- Specified by:
getRangein interfaceMetaProperty- Returns:
- Range of this property.
-
setRange
-
getAnnotatedElement
- Specified by:
getAnnotatedElementin interfaceMetaProperty- Returns:
- corresponding Java field or method as AnnotatedElement object
-
setAnnotatedElement
-
getJavaType
- Specified by:
getJavaTypein interfaceMetaProperty- Returns:
- Java class of the corresponding field or method's return type
-
setJavaType
-
getDeclaringClass
- Specified by:
getDeclaringClassin interfaceMetaProperty- Returns:
- Java class which declares the corresponding field or method
-
getStore
- Specified by:
getStorein interfaceMetaProperty
-
setStore
-
setDeclaringClass
-
getType
- Specified by:
getTypein interfaceMetaProperty- Returns:
- property type (DATATYPE, ENUM, ASSOCIATION, COMPOSITION, EMBEDDED)
-
setType
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceMetaProperty- Returns:
- true if the corresponding entity attribute must contain a value
-
setMandatory
public void setMandatory(boolean mandatory) -
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceMetaProperty- Returns:
- true if the corresponding entity attribute is read-only
-
setReadOnly
public void setReadOnly(boolean readOnly) -
getAnnotations
Description copied from interface:MetadataObjectMetadataObject annotations. Annotations here are simply name-value pairs, not directly correlated with Java annotations.- Specified by:
getAnnotationsin interfaceMetadataObject- Overrides:
getAnnotationsin classMetadataObjectImpl
-
withClones
-
toString
-