@ParametersAreNonnullByDefault public interface ClassMapper
ClassBean| Modifier and Type | Method and Description |
|---|---|
Stream<Id> |
allInstancesOf(ClassBean metaClass,
boolean strict)
Retrieves all instances of the given
metaClass. |
Stream<Id> |
allInstancesOf(Set<ClassBean> metaClasses)
Retrieves all instances of the given
metaClasses. |
boolean |
metaClassFor(Id id,
ClassBean metaClass)
Stores the
metaClass for the specified id. |
Optional<ClassBean> |
metaClassOf(Id id)
Retrieves the meta-class for the specified
id. |
@Nonnull Optional<ClassBean> metaClassOf(Id id)
id.id - the Id of the elementOptional containing the meta-class, or Optional.empty() if the id has no
defined meta-class.NullPointerException - if any parameter is nullboolean metaClassFor(Id id, ClassBean metaClass)
metaClass for the specified id.id - the Id of the elementmetaClass - the containing element's meta-class information to storetrue if the meta-class has been defined, false if the id already has a meta-classNullPointerException - if any parameter is null@Nonnull Stream<Id> allInstancesOf(ClassBean metaClass, boolean strict)
metaClass.metaClass - the meta-class to compute the instances ofstrict - true if the lookup searches for strict instancesStream containing the instances of the metaClassNullPointerException - if any parameter is nullUnsupportedOperationException - if the mapper doesn't support the lookup of all instances@Nonnull Stream<Id> allInstancesOf(Set<ClassBean> metaClasses)
metaClasses.metaClasses - the meta-classes to compute the instances ofStream containing the instances of the metaClassesNullPointerException - if any parameter is nullUnsupportedOperationException - if the mapper doesn't support the lookup of all instancesCopyright © 2013–2019 Atlanmod. All rights reserved.