Module org.eclipse.persistence.core
Class JsonGeneratorRecord
java.lang.Object
org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl<CoreAbstractSession,CoreField,XMLMarshaller,NamespaceResolver>
org.eclipse.persistence.oxm.record.MarshalRecord<XMLMarshaller>
org.eclipse.persistence.oxm.record.JsonRecord<JsonRecord.Level>
org.eclipse.persistence.oxm.record.JsonGeneratorRecord
- All Implemented Interfaces:
AbstractMarshalRecord<CoreAbstractSession,
,CoreField, XMLMarshaller, NamespaceResolver> MarshalRecord<CoreAbstractSession,
,CoreField, XMLMarshaller, NamespaceResolver> XMLRecord<CoreAbstractSession>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.oxm.record.JsonRecord
JsonRecord.JsonRecordContentHandler, JsonRecord.Level
Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.oxm.record.MarshalRecord
MarshalRecord.CycleDetectionStack<E>
Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
XMLRecord.Nil
-
Field Summary
Fields inherited from class org.eclipse.persistence.oxm.record.JsonRecord
attributePrefix, characterEscapeHandler, isLastEventStart, isRootArray, NULL, position
Fields inherited from class org.eclipse.persistence.oxm.record.MarshalRecord
COLON_W_SCHEMA_NIL_ATTRIBUTE, textWrapperFragment, TRUE
Fields inherited from class org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl
equalNamespaceResolvers, hasCustomNamespaceMapper, marshaller, namespaceAware, namespaceResolver, session
Fields inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
DEFAULT_ATTRIBUTE_GROUP, NIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addValueToArray
(JsonRecord.Level level, Object value, QName schemaType) protected void
addValueToObject
(JsonRecord.Level level, String keyName, Object value, QName schemaType) void
This method is used to inform the MarshalRecord that it is done receiving element events that are part of a collection.protected void
protected void
setComplex
(JsonRecord.Level level, boolean complex) protected void
protected void
protected void
protected void
writeEmptyCollection
(JsonRecord.Level level, String keyName) Methods inherited from class org.eclipse.persistence.oxm.record.JsonRecord
attribute, attribute, attribute, cdata, characters, characters, characters, closeStartElement, createNewLevel, defaultNamespaceDeclaration, element, emptyAttribute, emptyCollection, emptyComplex, emptySimple, endDocument, endElement, forceValueWrapper, getKeyName, getNamespaceSeparator, getStringForQName, getTextWrapperFragment, isWrapperAsCollectionName, marshalWithoutRootElement, namespaceDeclaration, namespaceDeclarations, nilComplex, nilSimple, node, openStartElement, setMarshaller, startCollection, startDocument, writeValue
Methods inherited from class org.eclipse.persistence.oxm.record.MarshalRecord
add, addGroupingElement, addPositionalNodes, afterContainmentMarshal, beforeContainmentMarshal, clear, closeStartGroupingElements, endPrefixMapping, endPrefixMappings, flush, getCurrentAttributeGroup, getCycleDetectionStack, getDocument, getDOM, getGroupingElements, getLocalName, getNameForFragment, getNamespaceURI, getPositionalNodes, getPrefixBytes, getPrefixForFragment, getValueToWrite, node, openStartGroupingElements, popAttributeGroup, predicateAttribute, processNamespaceResolverForXSIPrefix, pushAttributeGroup, put, removeGroupingElement, setGroupingElement, setSession, startPrefixMapping, startPrefixMappings, transformToXML, writeHeader
Methods inherited from class org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl
addExtraNamespacesToNamespaceResolver, addXsiTypeAndClassIndicatorIfRequired, addXsiTypeAndClassIndicatorIfRequired, attributeWithoutQName, getConversionManager, getLeafElementType, getMarshaller, getNamespaceResolver, getOwningObject, getSession, hasCustomNamespaceMapper, hasEqualNamespaceResolvers, isNamespaceAware, isXOPPackage, removeExtraNamespacesFromNamespaceResolver, resolveNamespacePrefix, setCustomNamespaceMapper, setEqualNamespaceResolvers, setLeafElementType, setLeafElementType, setNamespaceResolver, setOwningObject, setXOPPackage, writeXsiTypeAttribute, writeXsiTypeAttribute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord
addExtraNamespacesToNamespaceResolver, addXsiTypeAndClassIndicatorIfRequired, addXsiTypeAndClassIndicatorIfRequired, getLeafElementType, getMarshaller, getNamespaceResolver, getOwningObject, hasEqualNamespaceResolvers, isNamespaceAware, resolveNamespacePrefix, setCustomNamespaceMapper, setEqualNamespaceResolvers, setLeafElementType, setNamespaceResolver, setOwningObject, setXOPPackage, writeXsiTypeAttribute, writeXsiTypeAttribute
Methods inherited from interface org.eclipse.persistence.internal.oxm.record.MarshalRecord
attributeWithoutQName, hasCustomNamespaceMapper, isXOPPackage, removeExtraNamespacesFromNamespaceResolver, setLeafElementType
Methods inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
getConversionManager, getSession
-
Constructor Details
-
JsonGeneratorRecord
-
-
Method Details
-
startRootObject
protected void startRootObject()- Overrides:
startRootObject
in classJsonRecord<JsonRecord.Level>
-
finishLevel
protected void finishLevel()- Overrides:
finishLevel
in classJsonRecord<JsonRecord.Level>
-
startRootLevelCollection
protected void startRootLevelCollection()- Specified by:
startRootLevelCollection
in classJsonRecord<JsonRecord.Level>
-
endCollection
public void endCollection()Description copied from class:MarshalRecord
This method is used to inform the MarshalRecord that it is done receiving element events that are part of a collection.- Specified by:
endCollection
in interfaceMarshalRecord<CoreAbstractSession,
CoreField, XMLMarshaller, NamespaceResolver> - Overrides:
endCollection
in classMarshalRecord<XMLMarshaller>
- See Also:
-
setComplex
- Overrides:
setComplex
in classJsonRecord<JsonRecord.Level>
-
startEmptyCollection
protected void startEmptyCollection()- Overrides:
startEmptyCollection
in classJsonRecord<JsonRecord.Level>
-
writeEmptyCollection
- Specified by:
writeEmptyCollection
in classJsonRecord<JsonRecord.Level>
-
addValueToObject
protected void addValueToObject(JsonRecord.Level level, String keyName, Object value, QName schemaType) - Specified by:
addValueToObject
in classJsonRecord<JsonRecord.Level>
-
addValueToArray
- Specified by:
addValueToArray
in classJsonRecord<JsonRecord.Level>
-