public class JsonBuilderRecord extends JsonRecord<JsonBuilderRecord.Level>
Modifier and Type | Class and Description |
---|---|
protected static class |
JsonBuilderRecord.Level
Instances of this class are used to maintain state about the current
level of the JSON message being marshalled.
|
JsonRecord.JsonRecordContentHandler
attributePrefix, characterEscapeHandler, isLastEventStart, isRootArray, NULL, position
COLON_W_SCHEMA_NIL_ATTRIBUTE, textWrapperFragment, TRUE
Constructor and Description |
---|
JsonBuilderRecord() |
JsonBuilderRecord(javax.json.JsonArrayBuilder jsonArrayBuilder) |
JsonBuilderRecord(javax.json.JsonObjectBuilder jsonObjectBuilder) |
Modifier and Type | Method and Description |
---|---|
protected void |
addValueToArray(JsonBuilderRecord.Level level,
java.lang.Object value,
javax.xml.namespace.QName schemaType) |
protected void |
addValueToObject(JsonBuilderRecord.Level level,
java.lang.String keyName,
java.lang.Object value,
javax.xml.namespace.QName schemaType) |
protected JsonBuilderRecord.Level |
createNewLevel(boolean collection,
JsonBuilderRecord.Level parentLevel) |
void |
endCollection()
This method is used to inform the MarshalRecord that it is done receiving
element events that are part of a collection.
|
protected void |
finishLevel() |
protected void |
setComplex(JsonBuilderRecord.Level level,
boolean complex) |
protected void |
startRootLevelCollection() |
protected void |
startRootObject() |
protected void |
writeEmptyCollection(JsonBuilderRecord.Level level,
java.lang.String keyName) |
attribute, attribute, attribute, cdata, characters, characters, characters, closeStartElement, defaultNamespaceDeclaration, element, emptyAttribute, emptyCollection, emptyComplex, emptySimple, endDocument, endElement, forceValueWrapper, getKeyName, getNamespaceSeparator, getStringForQName, getTextWrapperFragment, isWrapperAsCollectionName, marshalWithoutRootElement, namespaceDeclaration, namespaceDeclarations, nilComplex, nilSimple, node, openStartElement, setMarshaller, startCollection, startDocument, startEmptyCollection, writeValue
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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attributeWithoutQName, hasCustomNamespaceMapper, isXOPPackage, removeExtraNamespacesFromNamespaceResolver, setLeafElementType
addExtraNamespacesToNamespaceResolver, addXsiTypeAndClassIndicatorIfRequired, addXsiTypeAndClassIndicatorIfRequired, getLeafElementType, getMarshaller, getNamespaceResolver, getOwningObject, hasEqualNamespaceResolvers, isNamespaceAware, resolveNamespacePrefix, setCustomNamespaceMapper, setEqualNamespaceResolvers, setLeafElementType, setNamespaceResolver, setOwningObject, setXOPPackage, writeXsiTypeAttribute, writeXsiTypeAttribute
public JsonBuilderRecord()
public JsonBuilderRecord(javax.json.JsonObjectBuilder jsonObjectBuilder)
public JsonBuilderRecord(javax.json.JsonArrayBuilder jsonArrayBuilder)
protected JsonBuilderRecord.Level createNewLevel(boolean collection, JsonBuilderRecord.Level parentLevel)
createNewLevel
in class JsonRecord<JsonBuilderRecord.Level>
protected void startRootObject()
startRootObject
in class JsonRecord<JsonBuilderRecord.Level>
protected void finishLevel()
finishLevel
in class JsonRecord<JsonBuilderRecord.Level>
protected void startRootLevelCollection()
startRootLevelCollection
in class JsonRecord<JsonBuilderRecord.Level>
public void endCollection()
MarshalRecord
endCollection
in interface org.eclipse.persistence.internal.oxm.record.MarshalRecord<org.eclipse.persistence.internal.core.sessions.CoreAbstractSession,org.eclipse.persistence.internal.core.helper.CoreField,org.eclipse.persistence.internal.oxm.XMLMarshaller,org.eclipse.persistence.internal.oxm.NamespaceResolver>
endCollection
in class MarshalRecord<org.eclipse.persistence.internal.oxm.XMLMarshaller>
MarshalRecord.startCollection()
protected void setComplex(JsonBuilderRecord.Level level, boolean complex)
setComplex
in class JsonRecord<JsonBuilderRecord.Level>
protected void writeEmptyCollection(JsonBuilderRecord.Level level, java.lang.String keyName)
writeEmptyCollection
in class JsonRecord<JsonBuilderRecord.Level>
protected void addValueToObject(JsonBuilderRecord.Level level, java.lang.String keyName, java.lang.Object value, javax.xml.namespace.QName schemaType)
addValueToObject
in class JsonRecord<JsonBuilderRecord.Level>
protected void addValueToArray(JsonBuilderRecord.Level level, java.lang.Object value, javax.xml.namespace.QName schemaType)
addValueToArray
in class JsonRecord<JsonBuilderRecord.Level>