public abstract class MetaPartitionBase extends java.lang.Object implements MetaPartition
| Modifier and Type | Field and Description |
|---|---|
protected MetaPartitionContext |
context |
protected java.util.Set<java.lang.reflect.Type> |
nonUniqueTypes |
protected MetaPartition |
parent |
protected java.util.Map<java.lang.reflect.Type,MetaElement> |
typeMapping |
| Constructor and Description |
|---|
MetaPartitionBase() |
| Modifier and Type | Method and Description |
|---|---|
protected io.crnk.core.utils.Optional<MetaElement> |
addElement(java.lang.reflect.Type type,
MetaElement element) |
protected io.crnk.core.utils.Optional<MetaElement> |
allocateEnumType(java.lang.reflect.Type type) |
io.crnk.core.utils.Optional<MetaElement> |
allocateMetaElement(java.lang.reflect.Type type) |
protected abstract io.crnk.core.utils.Optional<MetaElement> |
doAllocateMetaElement(java.lang.reflect.Type type) |
MetaElement |
getMeta(java.lang.reflect.Type type) |
boolean |
hasMeta(java.lang.reflect.Type type) |
void |
init(MetaPartitionContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdiscoverElementsprotected MetaPartitionContext context
protected java.util.Map<java.lang.reflect.Type,MetaElement> typeMapping
protected java.util.Set<java.lang.reflect.Type> nonUniqueTypes
protected MetaPartition parent
public void init(MetaPartitionContext context)
init in interface MetaPartitionpublic MetaElement getMeta(java.lang.reflect.Type type)
getMeta in interface MetaPartitionpublic boolean hasMeta(java.lang.reflect.Type type)
hasMeta in interface MetaPartitionprotected io.crnk.core.utils.Optional<MetaElement> addElement(java.lang.reflect.Type type, MetaElement element)
public final io.crnk.core.utils.Optional<MetaElement> allocateMetaElement(java.lang.reflect.Type type)
allocateMetaElement in interface MetaPartitionprotected abstract io.crnk.core.utils.Optional<MetaElement> doAllocateMetaElement(java.lang.reflect.Type type)
protected io.crnk.core.utils.Optional<MetaElement> allocateEnumType(java.lang.reflect.Type type)