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.ObjectconvertValueBasedOnSchemaType(Field xmlField, java.lang.Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record)INTERNAL:MediaTypegetMediaType()INTERNAL: The MediaType associated with this readerbooleanisInCollection()booleanisNullRepresentedByXsiNil(AbstractNullPolicy nullPolicy)voidparse(java.lang.String systemId)voidparse(org.xml.sax.InputSource input)voidparseRoot(javax.json.JsonValue jsonValue)voidsetJsonStructure(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:
parsein interfaceorg.xml.sax.XMLReader- Overrides:
parsein 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:
isNullRepresentedByXsiNilin classXMLReader
-
isInCollection
public boolean isInCollection()
- Overrides:
isInCollectionin classXMLReader
-
convertValueBasedOnSchemaType
public java.lang.Object convertValueBasedOnSchemaType(Field xmlField, java.lang.Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record)
Description copied from class:XMLReaderINTERNAL:- Overrides:
convertValueBasedOnSchemaTypein classXMLReader
-
getMediaType
public MediaType getMediaType()
INTERNAL: The MediaType associated with this reader- Overrides:
getMediaTypein classXMLReader- Returns:
- The MediaType associated with this reader
-
-