public abstract class OptionalPropertyConverter extends Object implements Optional
PropertyConverter.Context
Constructor and Description |
---|
OptionalPropertyConverter() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
checkAvailability() |
Object |
convert(String value,
PropertyConverter.Context context) |
String |
getName() |
boolean |
isAvailable() |
protected abstract PropertyConverter |
newConverter() |
boolean |
supports(Class<?> type) |
public final boolean isAvailable()
isAvailable
in interface Optional
protected abstract boolean checkAvailability()
protected abstract PropertyConverter newConverter()
public final boolean supports(Class<?> type)
supports
in interface PropertyConverter
public final Object convert(String value, PropertyConverter.Context context) throws IllegalArgumentException
convert
in interface PropertyConverter
IllegalArgumentException
public String getName()
getName
in interface PropertyConverter
Copyright © 2014–2015. All rights reserved.