Module org.eclipse.persistence.core
Class JsonParserReader
java.lang.Object
org.eclipse.persistence.internal.oxm.record.XMLReader
org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
org.eclipse.persistence.internal.oxm.record.json.JsonParserReader
- All Implemented Interfaces:
XMLReader
Reader for JSR-353 stream (StAX) parser.
Could be instantiated with
JsonParserReader.JsonParserReaderBuilder.build()
;-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder for JsonParserReaderNested 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
-
Method Summary
Modifier and TypeMethodDescriptionconvertValueBasedOnSchemaType
(Field xmlField, Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record) INTERNAL:INTERNAL:char
INTERNAL: The character used to separate the prefix and uri portions when namespaces are presentboolean
boolean
INTERNAL: Determine if namespaces will be considered during marshal/unmarshal operations.boolean
isNullRepresentedByXsiNil
(AbstractNullPolicy nullPolicy) void
void
parse
(InputSource input) void
setContentHandler
(ContentHandler contentHandler) Methods inherited from class org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
getDTDHandler, getEntityResolver, getFeature, getLexicalHandler, getProperty, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setProperty
Methods inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
getCurrentObject, getLocator, getValidatorHandler, getValue, isNullRecord, newObjectEvent, setLocator, setNamespaceAware, setNamespaceSeparator, setValidatorHandler
-
Method Details
-
parse
- Specified by:
parse
in interfaceXMLReader
- Overrides:
parse
in classXMLReader
- Throws:
IOException
SAXException
-
parse
- Specified by:
parse
in interfaceXMLReader
- Overrides:
parse
in classXMLReaderAdapter
-
isNullRepresentedByXsiNil
- Overrides:
isNullRepresentedByXsiNil
in classXMLReader
-
convertValueBasedOnSchemaType
public Object convertValueBasedOnSchemaType(Field xmlField, Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record) Description copied from class:XMLReader
INTERNAL:- Overrides:
convertValueBasedOnSchemaType
in classXMLReader
-
getNamespaceSeparator
public char getNamespaceSeparator()Description copied from class:XMLReader
INTERNAL: The character used to separate the prefix and uri portions when namespaces are present- Overrides:
getNamespaceSeparator
in classXMLReader
-
getErrorHandler
- Specified by:
getErrorHandler
in interfaceXMLReader
- Overrides:
getErrorHandler
in classXMLReaderAdapter
-
getContentHandler
- Specified by:
getContentHandler
in interfaceXMLReader
- Overrides:
getContentHandler
in classXMLReaderAdapter
-
setContentHandler
- Specified by:
setContentHandler
in interfaceXMLReader
- Overrides:
setContentHandler
in classXMLReaderAdapter
-
isInCollection
public boolean isInCollection()- Overrides:
isInCollection
in classXMLReader
-
getMediaType
Description copied from class:XMLReader
INTERNAL:- Overrides:
getMediaType
in classXMLReader
- Returns:
- The MediaType associated with this reader
-
isNamespaceAware
public boolean isNamespaceAware()Description copied from class:XMLReader
INTERNAL: Determine if namespaces will be considered during marshal/unmarshal operations.- Overrides:
isNamespaceAware
in classXMLReader
-