Class JsonStructureReader
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.XMLReader
-
- org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
-
- org.eclipse.persistence.internal.oxm.record.json.JsonStructureReader
-
- All Implemented Interfaces:
org.xml.sax.XMLReader
public class JsonStructureReader extends XMLReaderAdapter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
XMLReaderAdapter.Attribute, XMLReaderAdapter.ExtendedContentHandlerAdapter, XMLReaderAdapter.IndexedAttributeList
-
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
XMLReader.ValidatingContentHandler
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
contentHandler, lexicalHandler
-
Fields inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
locator, NAMESPACE_PREFIXES_FEATURE, REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE_FEATURE, validatingContentHandler
-
-
Constructor Summary
Constructors Constructor Description JsonStructureReader(Unmarshaller u)
JsonStructureReader(Unmarshaller u, java.lang.Class clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
convertValueBasedOnSchemaType(Field xmlField, java.lang.Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record)
INTERNAL:MediaType
getMediaType()
INTERNAL: The MediaType associated with this readerboolean
isInCollection()
boolean
isNullRepresentedByXsiNil(AbstractNullPolicy nullPolicy)
void
parse(java.lang.String systemId)
void
parse(org.xml.sax.InputSource input)
void
parseRoot(javax.json.JsonValue jsonValue)
void
setJsonStructure(javax.json.JsonStructure jsonStructure)
-
Methods inherited from class org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLexicalHandler, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setProperty
-
Methods inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
getCurrentObject, getLocator, getNamespaceSeparator, getValidatorHandler, getValue, isNamespaceAware, isNullRecord, newObjectEvent, setLocator, setNamespaceAware, setNamespaceSeparator, setValidatorHandler
-
-
-
-
Constructor Detail
-
JsonStructureReader
public JsonStructureReader(Unmarshaller u)
-
JsonStructureReader
public JsonStructureReader(Unmarshaller u, java.lang.Class clazz)
-
-
Method Detail
-
setJsonStructure
public void setJsonStructure(javax.json.JsonStructure jsonStructure)
-
parse
public void parse(org.xml.sax.InputSource input) throws java.io.IOException, org.xml.sax.SAXException, javax.json.JsonException
-
parse
public void parse(java.lang.String systemId)
- Specified by:
parse
in interfaceorg.xml.sax.XMLReader
- Overrides:
parse
in classXMLReaderAdapter
-
parseRoot
public void parseRoot(javax.json.JsonValue jsonValue) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
isNullRepresentedByXsiNil
public boolean isNullRepresentedByXsiNil(AbstractNullPolicy nullPolicy)
- Overrides:
isNullRepresentedByXsiNil
in classXMLReader
-
isInCollection
public boolean isInCollection()
- Overrides:
isInCollection
in classXMLReader
-
convertValueBasedOnSchemaType
public java.lang.Object convertValueBasedOnSchemaType(Field xmlField, java.lang.Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record)
Description copied from class:XMLReader
INTERNAL:- Overrides:
convertValueBasedOnSchemaType
in classXMLReader
-
getMediaType
public MediaType getMediaType()
INTERNAL: The MediaType associated with this reader- Overrides:
getMediaType
in classXMLReader
- Returns:
- The MediaType associated with this reader
-
-