public class MappedFieldMetaData extends Object
resource model
field.
Used to prevent the costly retrieval of this meta-data upon each resource to model mapping.Modifier and Type | Class and Description |
---|---|
static interface |
MappedFieldMetaData.NebaDelegatingLazyLoadingProxy |
Constructor and Description |
---|
MappedFieldMetaData(Field field,
Class<?> modelType)
Immediately extracts all metadata for the provided field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Annotations |
getAnnotations() |
String |
getAppendPathOnReference() |
Class<?> |
getArrayTypeOfTypeParameter() |
Field |
getField() |
Object |
getLazyLoadingProxy(Callable<?> valueFactory) |
ResourcePaths.ResourcePath |
getPath() |
String |
getResolveBelowEveryChildPathOnChildren() |
Class<?> |
getType() |
Class<?> |
getTypeParameter() |
int |
hashCode() |
boolean |
isAppendPathPresentOnReference() |
boolean |
isChildrenAnnotationPresent()
Whether the field has a
Children annotation. |
boolean |
isCollectionType()
Whether the type of this field is assignable from
Collection . |
boolean |
isInstantiableCollectionType() |
boolean |
isLazy() |
boolean |
isPathAnnotationPresent() |
boolean |
isPropertyType()
Whether the type of this field can only be represented by a resource property (and not a resource).
|
boolean |
isReference() |
boolean |
isResolveBelowEveryChildPathPresentOnChildren() |
boolean |
isThisReference() |
String |
toString() |
public Field getField()
accessible
Field
represented by this meta data.public boolean isReference()
Reference
.public boolean isAppendPathPresentOnReference()
Reference
annotation with a non-empty
append path
.public String getAppendPathOnReference()
append path
of the
Reference
annotation, or null
if either
the annotation or the value for the append path are not present.public boolean isThisReference()
This
.public ResourcePaths.ResourcePath getPath()
Path
annotation.public Class<?> getType()
field type
,
or the generic parameter type in case of lazy
} fields.public boolean isPathAnnotationPresent()
Path
annotation.public boolean isPropertyType()
public boolean isCollectionType()
Collection
.public boolean isInstantiableCollectionType()
is a collection type
that can be instantiated
.public boolean isChildrenAnnotationPresent()
Children
annotation.public boolean isResolveBelowEveryChildPathPresentOnChildren()
Children
annotation is present with a non-empty
Children.resolveBelowEveryChild()
path.public String getResolveBelowEveryChildPathOnChildren()
Children.resolveBelowEveryChild()
path, or
null
if no such annotation or path exist.public Class<?> getTypeParameter()
List<MyModel> field;
or Optional<MyModel> field;
public Class<?> getArrayTypeOfTypeParameter()
component type
,
or null
if the component type is null
.public Annotations getAnnotations()
null
.public boolean isLazy()
Lazy
.Copyright © 2024. All rights reserved.