Package org.brapi.schematools.core.utils
Class BrAPIClassCacheUtil
java.lang.Object
org.brapi.schematools.core.utils.BrAPIClassCacheUtil
Utility class for creating a cache of
BrAPIClasses. Takes a list of
classes and caches those in the list if they pass the provided cachePredicate.
Additional classes are added to the cached depending on the subclass of BrAPIClass
For BrAPIObjectType utility checks the properties and
tries to cache any that are the return type of these properties BrAPIClasses.
If an BrAPIArrayType is encountered then the is
checked recursively to be included in the cache.
For BrAPIOneOfType it is added to the cache and any of
are checked recursively to be included in the cache.
BrAPIAllOfType are ignored.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMap(List<BrAPIClass> brAPIClasses) Creates the cache of classes as a Map
-
Constructor Details
-
BrAPIClassCacheUtil
public BrAPIClassCacheUtil()
-
-
Method Details
-
createMap
Creates the cache of classes as a Map- Parameters:
brAPIClasses- the list of possible classes to be cached.- Returns:
- the cache of classes as a Map
-