-
- All Superinterfaces:
BeanType
- All Known Implementing Classes:
BeanClassImpl
public interface BeanClass extends BeanType
BeanClass
extendsBeanType
for aVirtualBean
with extended information. It it also aWritableBean
itself and acts as prototype for theVirtualBean
instances.- 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 BeanClass
createVirtual(String packageName, String simpleName, String stableName, BeanClass... superClasses)
Class<? extends VirtualBean>
getJavaClass()
VirtualBean
getPrototype()
Collection<BeanClass>
getSuperClasses()
default boolean
isSubclassOf(BeanClass beanClass)
default boolean
isSubclassOf(BeanClass beanClass, boolean transitive, boolean equal)
default boolean
isSuperclassOf(BeanClass beanClass)
default boolean
isSuperclassOf(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
Collection
of the superBeanClass
this class inherits from.
-
getJavaClass
Class<? extends VirtualBean> getJavaClass()
-
getPrototype
VirtualBean getPrototype()
-
isSuperclassOf
default boolean isSuperclassOf(BeanClass beanClass)
- Parameters:
beanClass
- theBeanClass
to check hierarchical relationship with.- Returns:
true
ifthis
BeanClass
is a transitivesuper-class
of the givenBeanClass
,false
otherwise.
-
isSuperclassOf
default boolean isSuperclassOf(BeanClass beanClass, boolean transitive, boolean equal)
- Parameters:
beanClass
- theBeanClass
to check hierarchical relationship with.transitive
-true
to check hierarchy transitive,false
otherwise (only check for direct superclass).equal
-true
if equality ofthis
and the givenBeanClass
will be accepted (returningtrue
),false
otherwise.- Returns:
true
ifthis
BeanClass
is a (transitive
)super-class
of (orequal
to) the givenBeanClass
,false
otherwise.
-
isSubclassOf
default boolean isSubclassOf(BeanClass beanClass)
-
isSubclassOf
default boolean isSubclassOf(BeanClass beanClass, boolean transitive, boolean equal)
- Parameters:
beanClass
- theBeanClass
to check hierarchical relationship with.transitive
-true
to check hierarchy transitive,false
otherwise (only check for direct subclass).equal
-true
if equality ofthis
and the givenBeanClass
will be accepted (returningtrue
),false
otherwise.- Returns:
true
ifthis
BeanClass
is a (transitive
) sub-class of (orequal
to) the givenBeanClass
,false
otherwise.
-
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
virtual
BeanClass
. - See Also:
AdvancedBean(BeanClass)
-
-