M - The member type.public abstract class MemberValueResolver<M extends java.lang.reflect.Member> extends java.lang.Object implements ValueResolver
ValueResolver that is built on top of reflections
API. It use an internal cache for saving members.UNRESOLVED| Constructor and Description |
|---|
MemberValueResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
matches(M member,
java.lang.String name)
True, if the member matches the one we look for.
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
propertySet(java.lang.Object context)
List all the properties and their values for the given object.
|
java.lang.Object |
resolve(java.lang.Object context)
Resolve the the context object by optionally converting the value if necessary.
|
java.lang.Object |
resolve(java.lang.Object context,
java.lang.String name)
Resolve the attribute's name in the context object.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultValueResolverspublic final java.lang.Object resolve(java.lang.Object context,
java.lang.String name)
ValueResolverValueResolver.UNRESOLVED is returned, the
context stack will
continue with the next value resolver in the chain.resolve in interface ValueResolvercontext - The context object. Not null.name - The attribute's name. Not null.ValueResolver.UNRESOLVED is returned, the context
stack will continue with the next value resolver in the chain.
Otherwise, it returns the associated value.public java.lang.Object resolve(java.lang.Object context)
ValueResolverValueResolver.UNRESOLVED is returned, the context stack will continue with
the next value resolver in the chain.resolve in interface ValueResolvercontext - The context object. Not null.ValueResolver.UNRESOLVED is returned, the context
stack will continue with the next value resolver in the chain.
Otherwise, it returns the associated value.public abstract boolean matches(M member, java.lang.String name)
member - The class Member.name - The attribute's name.public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> propertySet(java.lang.Object context)
ValueResolverpropertySet in interface ValueResolvercontext - The context object. Not null.Copyright © 2010 - 2023 Adobe. All Rights Reserved