|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.module.apikit.uri.VariableResolverMap<V>
public class VariableResolverMap<V>
A variable resolver backed by a values mapped to objects.
| Constructor Summary | |
|---|---|
VariableResolverMap()
Creates a new variable resolver. |
|
VariableResolverMap(Map<String,? extends V> map)
Creates a new variable resolver from the given map. |
|
| Method Summary | |
|---|---|
boolean |
exists(String value)
Indicates whether the given value exists. |
V |
resolve(String value)
Resolves the variable and returns the associated object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableResolverMap()
public VariableResolverMap(Map<String,? extends V> map)
map - Variable values mapped to objects.| Method Detail |
|---|
public boolean exists(String value)
true only if the value can be resolved, that is
resolve(value) != null.
exists in interface VariableResolvervalue - The value to check for existence.
true if the specified value can be resolved;
false otherwise.public V resolve(String value)
null if the value a value exists, but should return
null, if the value cannot be resolved.
If the implementation does not bind values to objects, this method should return the value if
it can be resolved otherwise, it should return null.
resolve in interface VariableResolvervalue - The value to resolve.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||