@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface Convert
GenericValue
parameterized with all these elements, should be annotated with this annotation. The value()
parameter should
specify Converter
class able to convert this custom type to and from String
.
Also DOM interfaces can be annotated, which will mean that all tag value methods inside will have the specified converter.public abstract java.lang.Class<? extends Converter> value