public class LinkAdapter extends XmlAdapter<java.lang.String,java.lang.Object>
Modifier and Type | Field and Description |
---|---|
protected PersistenceContext |
context |
Constructor and Description |
---|
LinkAdapter() |
LinkAdapter(java.lang.String baseURI,
PersistenceContext context) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
constructObjectForId(java.lang.String entityType,
java.lang.Object id) |
java.lang.String |
marshal(java.lang.Object v)
Convert a bound type to a value type.
|
java.lang.Object |
unmarshal(java.lang.String v)
Convert a value type to a bound type.
|
protected PersistenceContext context
public LinkAdapter()
public LinkAdapter(java.lang.String baseURI, PersistenceContext context)
public java.lang.Object unmarshal(java.lang.String v) throws java.lang.Exception
XmlAdapter
unmarshal
in class XmlAdapter<java.lang.String,java.lang.Object>
v
- The value to be converted. Can be null.java.lang.Exception
- if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler
.protected java.lang.Object constructObjectForId(java.lang.String entityType, java.lang.Object id)
public java.lang.String marshal(java.lang.Object v) throws java.lang.Exception
XmlAdapter
marshal
in class XmlAdapter<java.lang.String,java.lang.Object>
v
- The value to be convereted. Can be null.java.lang.Exception
- if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler
.