public abstract class ConstantsAdapter<T> extends XmlAdapter<T,T>
== can be used for comparison.
Subclass must provide the constants to be used instead of an equal value by getConstants().| Constructor and Description |
|---|
ConstantsAdapter() |
public final T marshal(T value) throws Exception
marshal in class XmlAdapter<T,T>Exceptionpublic final T unmarshal(T value) throws Exception
unmarshal in class XmlAdapter<T,T>Exceptionprotected abstract Collection<T> getConstants()
marshal(Object) as a replacement for any equal instances. Must not be null.Copyright © 2008-2014 The java.net WebDAV Project. All Rights Reserved.