public interface PropertyResolver extends ValueResolver<String>
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
containsProperties(String name)
Whether the given property or any nested properties exist for the key given key within this resolver. 
 | 
boolean | 
containsProperty(String name)
Whether the given property is contained within this resolver. 
 | 
default <T> Optional<T> | 
get(String name,
   ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name. 
 | 
default <T> Optional<T> | 
getProperty(String name,
           Argument<T> argument)
Resolve the given property for the given name, type and generic type arguments. 
 | 
<T> Optional<T> | 
getProperty(String name,
           ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name, type and generic type arguments. 
 | 
default <T> Optional<T> | 
getProperty(String name,
           Class<T> requiredType)
Resolve the given property for the given name. 
 | 
default <T> Optional<T> | 
getProperty(String name,
           Class<T> requiredType,
           ConversionContext context)
Resolve the given property for the given name, type and generic type arguments. 
 | 
default <T> T | 
getProperty(String name,
           Class<T> requiredType,
           T defaultValue)
Resolve the given property for the given name. 
 | 
default <T> T | 
getRequiredProperty(String name,
                   Class<T> requiredType)
Resolve the given property for the given name. 
 | 
static String | 
nameOf(String... path)
Builds a property name for the given property path. 
 | 
get, get, getboolean containsProperty(String name)
Whether the given property is contained within this resolver.
Note that this method will return false for nested properties. In other words given a key of foo.bar this method will
 return false for: resolver.containsProperty("foo")
To check for nested properties using containsProperties(String) instead.
name - The name of the propertyboolean containsProperties(String name)
name - The name of the property<T> Optional<T> getProperty(String name, ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name, type and generic type arguments.
Implementers can choose to implement more intelligent type conversion by analyzing the typeArgument.
T - The concrete typename - The nameconversionContext - The conversion contextdefault <T> Optional<T> getProperty(String name, Argument<T> argument)
Resolve the given property for the given name, type and generic type arguments.
Implementers can choose to implement more intelligent type conversion by analyzing the typeArgument.
T - The concrete typename - The nameargument - The required typedefault <T> Optional<T> getProperty(String name, Class<T> requiredType, ConversionContext context)
Resolve the given property for the given name, type and generic type arguments.
Implementers can choose to implement more intelligent type conversion by analyzing the typeArgument.
T - The concrete typename - The namerequiredType - The required typecontext - The ConversionContext to apply  to any conversiondefault <T> Optional<T> get(String name, ArgumentConversionContext<T> conversionContext)
ValueResolverget in interface ValueResolver<String>T - The concrete typename - The nameconversionContext - The conversion contextdefault <T> Optional<T> getProperty(String name, Class<T> requiredType)
T - The concrete typename - The namerequiredType - The required typedefault <T> T getProperty(String name, Class<T> requiredType, T defaultValue)
T - The concrete typename - The namerequiredType - The required typedefaultValue - The default valuedefault <T> T getRequiredProperty(String name, Class<T> requiredType) throws PropertyNotFoundException
T - The concrete typename - The name of the propertyrequiredType - The required typePropertyNotFoundException - exception when property does not exist