public class ReferenceAdapter<T extends org.eclipse.persistence.internal.jpa.rs.weaving.PersistenceWeavedRest> extends XmlAdapter<Object,Object>
Constructor and Description |
---|
ReferenceAdapter()
Instantiates a new reference adapter.
|
ReferenceAdapter(String baseURI,
PersistenceContext context)
Instantiates a new reference adapter.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.persistence.internal.jpa.rs.metadata.model.Link |
marshal(Object o)
Convert a bound type to a value type.
|
T |
unmarshal(Object object)
Convert a value type to a bound type.
|
public ReferenceAdapter()
public ReferenceAdapter(String baseURI, PersistenceContext context)
baseURI
- the base uricontext
- the contextpublic org.eclipse.persistence.internal.jpa.rs.metadata.model.Link marshal(Object o) throws Exception
XmlAdapter
marshal
in class XmlAdapter<Object,Object>
o
- 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
.public T unmarshal(Object object) throws Exception
XmlAdapter
unmarshal
in class XmlAdapter<Object,Object>
object
- 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
.Copyright © 2017–2020 Eclipse.org - EclipseLink Project. All rights reserved.