Package org.eclipse.persistence.oxm.json
Class JsonStructureSource
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.ExtendedSource
-
- org.eclipse.persistence.oxm.json.JsonStructureSource
-
- All Implemented Interfaces:
javax.xml.transform.Source
public class JsonStructureSource extends ExtendedSource
Object to be used with Unmarshaller to unmarshal javax.json.JsonStructure objects (ie: javax.json.JsonObject or javax.json.JsonArray) Usage: JsonStructureSource source = new JsonStructureSource(jsonObject); Object unmarshalled = jaxbUnmarshaller.unmarshal(source);
-
-
Constructor Summary
Constructors Constructor Description JsonStructureSource(javax.json.JsonStructure jsonStructure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLReadercreateReader(Unmarshaller unmarshaller)XMLReadercreateReader(Unmarshaller unmarshaller, java.lang.Class unmarshalClass)javax.json.JsonStructuregetJsonStructure()-
Methods inherited from class org.eclipse.persistence.internal.oxm.record.ExtendedSource
getSystemId, setSystemId
-
-
-
-
Method Detail
-
getJsonStructure
public javax.json.JsonStructure getJsonStructure()
-
createReader
public XMLReader createReader(Unmarshaller unmarshaller)
- Specified by:
createReaderin classExtendedSource
-
createReader
public XMLReader createReader(Unmarshaller unmarshaller, java.lang.Class unmarshalClass)
- Specified by:
createReaderin classExtendedSource
-
-