com.thaiopensource.validate
Class ValidateProperty.ErrorHandlerPropertyId
java.lang.Object
|
+--com.thaiopensource.util.PropertyId
|
+--com.thaiopensource.validate.ValidateProperty.ErrorHandlerPropertyId
- Enclosing class:
- ValidateProperty
- public static class ValidateProperty.ErrorHandlerPropertyId
- extends PropertyId
A PropertyId whose value is constrained to be an instance of
ErrorHandler.
- See Also:
ErrorHandler
ValidateProperty.ErrorHandlerPropertyId
public ValidateProperty.ErrorHandlerPropertyId(String name)
get
public ErrorHandler get(PropertyMap properties)
- Returns the value of the property. This is a typesafe
version of
PropertyMap.get
.
- Parameters:
properties
- the PropertyMap to be used
- Returns:
- the ErrorHandler to which the PropertyMap maps this PropertyId,
or
null
if this PropertyId is not in the PropertyMap - See Also:
PropertyMap.get(com.thaiopensource.util.PropertyId)
put
public ErrorHandler put(PropertyMapBuilder builder,
ErrorHandler value)
- Sets the value of the property. Modifies the PropertyMapBuilder
so that this PropertyId is mapped to the specified value. This
is a typesafe version of PropertyMapBuilder.put.
- Parameters:
builder
- the PropertyMapBuilder to be modifiedvalue
- the ErrorHandler to which this PropertyId is to be mapped
- Returns:
- the ErrorHandler to which this PropertyId was mapped before,
or
null
if it was not mapped - See Also:
PropertyMapBuilder.put(com.thaiopensource.util.PropertyId, java.lang.Object)