Class JsonStructureSource

java.lang.Object
org.eclipse.persistence.internal.oxm.record.ExtendedSource
org.eclipse.persistence.oxm.json.JsonStructureSource
All Implemented Interfaces:
Source

public class JsonStructureSource extends org.eclipse.persistence.internal.oxm.record.ExtendedSource
Object to be used with Unmarshaller to unmarshal jakarta.json.JsonStructure objects (ie: jakarta.json.JsonObject or jakarta.json.JsonArray) Usage: JsonStructureSource source = new JsonStructureSource(jsonObject); Object unmarshalled = jaxbUnmarshaller.unmarshal(source);
  • Constructor Summary

    Constructors
    Constructor
    Description
    JsonStructureSource(jakarta.json.JsonStructure jsonStructure)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.persistence.internal.oxm.record.XMLReader
    createReader(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller)
     
    org.eclipse.persistence.internal.oxm.record.XMLReader
    createReader(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller, Class unmarshalClass)
     
    jakarta.json.JsonStructure
     

    Methods inherited from class org.eclipse.persistence.internal.oxm.record.ExtendedSource

    getSystemId, setSystemId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonStructureSource

      public JsonStructureSource(jakarta.json.JsonStructure jsonStructure)
  • Method Details

    • getJsonStructure

      public jakarta.json.JsonStructure getJsonStructure()
    • createReader

      public org.eclipse.persistence.internal.oxm.record.XMLReader createReader(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller)
      Specified by:
      createReader in class org.eclipse.persistence.internal.oxm.record.ExtendedSource
    • createReader

      public org.eclipse.persistence.internal.oxm.record.XMLReader createReader(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller, Class unmarshalClass)
      Specified by:
      createReader in class org.eclipse.persistence.internal.oxm.record.ExtendedSource