public enum MapValueResolver extends java.lang.Enum<MapValueResolver> implements ValueResolver
Map
value resolver.Enum Constant and Description |
---|
INSTANCE
A singleton instance.
|
UNRESOLVED, VALUE_RESOLVERS
Modifier and Type | Method and Description |
---|---|
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.
|
static MapValueResolver |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapValueResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapValueResolver INSTANCE
public static MapValueResolver[] values()
for (MapValueResolver c : MapValueResolver.values()) System.out.println(c);
public static MapValueResolver valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Object resolve(java.lang.Object context, java.lang.String name)
ValueResolver
ValueResolver.UNRESOLVED
is returned, the
context stack
will
continue with the next value resolver in the chain.resolve
in interface ValueResolver
context
- 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)
ValueResolver
ValueResolver.UNRESOLVED
is returned, the context stack
will continue with
the next value resolver in the chain.resolve
in interface ValueResolver
context
- 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 java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> propertySet(java.lang.Object context)
ValueResolver
propertySet
in interface ValueResolver
context
- The context object. Not null.Copyright © 2010 - 2020 Adobe. All Rights Reserved