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