public class PrefixedObjectValueSource extends AbstractDelegatingValueSource
ObjectBasedValueSource
instance, then
wraps that source with a PrefixedValueSourceWrapper
instance, to which
this class delegates all of its calls.Constructor and Description |
---|
PrefixedObjectValueSource(java.util.List<java.lang.String> possiblePrefixes,
java.lang.Object root,
boolean allowUnprefixedExpressions)
Wrap the specified root object, allowing the specified list of expression
prefixes and setting whether the
PrefixedValueSourceWrapper allows
unprefixed expressions. |
PrefixedObjectValueSource(java.lang.String prefix,
java.lang.Object root)
Wrap the specified root object, allowing the specified expression prefix.
|
getDelegate, getValue
public PrefixedObjectValueSource(java.lang.String prefix, java.lang.Object root)
prefix
- the prefix.root
- The root of the graph.public PrefixedObjectValueSource(java.util.List<java.lang.String> possiblePrefixes, java.lang.Object root, boolean allowUnprefixedExpressions)
PrefixedValueSourceWrapper
allows
unprefixed expressions.possiblePrefixes
- The list of possible prefixed.root
- The root of the graph.allowUnprefixedExpressions
- allow unrefixed expressions or not.