-
- All Superinterfaces:
BeanType
- All Known Implementing Classes:
BeanClassImpl
public interface BeanClass extends BeanType
BeanClassextendsBeanTypefor aVirtualBeanwith extended information. It it also aWritableBeanitself and acts as prototype for theVirtualBeaninstances.- Since:
- 1.0.0
- See Also:
VirtualBean.getType()
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static BeanClasscreateVirtual(String packageName, String simpleName, String stableName, BeanClass... superClasses)Class<? extends VirtualBean>getJavaClass()VirtualBeangetPrototype()Collection<BeanClass>getSuperClasses()default booleanisSubclassOf(BeanClass beanClass)default booleanisSubclassOf(BeanClass beanClass, boolean transitive, boolean equal)default booleanisSuperclassOf(BeanClass beanClass)default booleanisSuperclassOf(BeanClass beanClass, boolean transitive, boolean equal)-
Methods inherited from interface io.github.mmm.bean.BeanType
getJavaClasses, getPackageName, getQualifiedName, getSimpleName, getStableName, isVirtual
-
-
-
-
Method Detail
-
getSuperClasses
Collection<BeanClass> getSuperClasses()
- Returns:
- the
Collectionof the superBeanClassthis class inherits from.
-
getJavaClass
Class<? extends VirtualBean> getJavaClass()
-
getPrototype
VirtualBean getPrototype()
-
isSuperclassOf
default boolean isSuperclassOf(BeanClass beanClass)
- Parameters:
beanClass- theBeanClassto check hierarchical relationship with.- Returns:
trueifthisBeanClassis a transitivesuper-classof the givenBeanClass,falseotherwise.
-
isSuperclassOf
default boolean isSuperclassOf(BeanClass beanClass, boolean transitive, boolean equal)
- Parameters:
beanClass- theBeanClassto check hierarchical relationship with.transitive-trueto check hierarchy transitive,falseotherwise (only check for direct superclass).equal-trueif equality ofthisand the givenBeanClasswill be accepted (returningtrue),falseotherwise.- Returns:
trueifthisBeanClassis a (transitive)super-classof (orequalto) the givenBeanClass,falseotherwise.
-
isSubclassOf
default boolean isSubclassOf(BeanClass beanClass)
-
isSubclassOf
default boolean isSubclassOf(BeanClass beanClass, boolean transitive, boolean equal)
- Parameters:
beanClass- theBeanClassto check hierarchical relationship with.transitive-trueto check hierarchy transitive,falseotherwise (only check for direct subclass).equal-trueif equality ofthisand the givenBeanClasswill be accepted (returningtrue),falseotherwise.- Returns:
trueifthisBeanClassis a (transitive) sub-class of (orequalto) the givenBeanClass,falseotherwise.
-
createVirtual
static BeanClass createVirtual(String packageName, String simpleName, String stableName, BeanClass... superClasses)
- Parameters:
packageName- thepackage name.simpleName- thesimple name.stableName- thestable name.superClasses- thesuper-classes.- Returns:
- the created
virtualBeanClass. - See Also:
AdvancedBean(BeanClass)
-
-