Top Description Fields Constructors Methods
org.eclipse.persistence.oxm.record

public abstract Class MarshalRecord<MARSHALLER extends Marshaller>

extends AbstractMarshalRecordImpl<CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, CoreField, MARSHALLER extends Marshaller, NamespaceResolver>
implements MarshalRecord<CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, CoreField, MARSHALLER extends Marshaller, NamespaceResolver>
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.oxm.record.MarshalRecord, org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord, org.eclipse.persistence.internal.oxm.record.XMLRecord
Known Direct Subclasses
org.eclipse.persistence.oxm.record.NodeRecord, org.eclipse.persistence.oxm.record.OutputStreamRecord, org.eclipse.persistence.oxm.record.ValidatingMarshalRecord, org.eclipse.persistence.oxm.record.WriterRecord, org.eclipse.persistence.oxm.record.XMLEventWriterRecord, org.eclipse.persistence.oxm.record.XMLStreamWriterRecord, org.eclipse.persistence.oxm.record.ContentHandlerRecord, org.eclipse.persistence.oxm.record.JsonRecord, org.eclipse.persistence.oxm.record.JSONWriterRecord
Imports
java.util.ArrayList, .Collections, .HashMap, .LinkedList, .List, .Map.Entry, .Stack, javax.xml.namespace.QName, org.eclipse.persistence.exceptions.EclipseLinkException, .XMLMarshalException, org.eclipse.persistence.internal.core.helper.CoreClassConstants, .CoreField, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession, org.eclipse.persistence.internal.oxm.ConversionManager, .Constants, .Marshaller, .Namespace, .NamespaceResolver, .ObjectBuilder, .Root, .XMLBinaryDataHelper, .XPathPredicate, .XPathFragment, .XPathNode, org.eclipse.persistence.internal.oxm.mappings.Descriptor, .Field, .Login, org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl, org.eclipse.persistence.oxm.record.ValidatingMarshalRecord.MarshalSAXParseException, org.eclipse.persistence.core.queries.CoreAttributeGroup, org.w3c.dom.Document, .Node, org.xml.sax.ErrorHandler, .SAXException

A MarshalRecord encapsulates the marshal target.

MarshalRecords are stateful and state changes are triggered by different event notifications, therefore this class is not thread safe.

XML document creation will differ depending on the subclass of MarshalRecord used. For example when NodeRecord is used a child element is created on the openStartElement event, and when the ContentHandlerRecord is used a child element is not created until the closeStartMethod event.

See Also
org.eclipse.persistence.oxm.XMLMarshaller

Field Summary

Modifier and TypeField and Description
private Stack<CoreAttributeGroup<ATTRIBUTE_ITEM extends CoreAttributeItem, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>>>
protected static final String
private MarshalRecord.CycleDetectionStack<Object>
private ArrayList<XPathNode>
private HashMap<K, V>
protected XPathFragment<XML_FIELD extends Field>
protected static final String
Inherited from org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl:
equalNamespaceResolvershasCustomNamespaceMappermarshallernamespaceAwarenamespaceResolversession

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
add(CoreField key, Object value)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.add.

INTERNAL: Add the field-value pair to the document.
public void
addGroupingElement(XPathNode xPathNode)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.addGroupingElement.

INTERNAL: If an XPathNode does not have an associated NodeValue then add it to the MarshalRecord as a grouping element.
protected void
addPositionalNodes(XPathFragment<XML_FIELD extends Field> xPathFragment, NamespaceResolver namespaceResolver)

public void
public abstract void
attribute(XPathFragment<XML_FIELD extends Field>
The XPathFragment contains the name and prefix information about the XML element being ended.
xPathFragment
,
NamespaceResolver
The NamespaceResolver can be used to resolve the namespace URI for the namespace prefix held by the XPathFragment (if required).
namespaceResolver
,
String
This is the complete value for the attribute.
value
)

Redeclares org.eclipse.persistence.internal.oxm.record.MarshalRecord.attribute.

Receive notification of an attribute.
public abstract void
attribute(String
The namespace URI, if the attribute is not namespace qualified the value of this parameter wil be null.
namespaceURI
,
String
The local name of the attribute.
localName
,
String
The qualified name of the attribute.
qName
,
String
This is the complete value for the attribute.
value
)

Redeclares org.eclipse.persistence.internal.oxm.record.MarshalRecord.attribute, org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord.attribute.

Overrides org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl.attribute.

Receive notification of an attribute.
public void
attribute(XPathFragment<XML_FIELD extends Field> xPathFragment, NamespaceResolver namespaceResolver, Object value, QName schemaType)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.attribute.

Convert the value if necessary and write out the attribute and converted value.
public void
public abstract void
cdata(String
This is the value of the text to be wrapped
value
)

Redeclares org.eclipse.persistence.internal.oxm.record.MarshalRecord.cdata.

Receive notification of character data to be wrapped in a CDATA node.
public abstract void
characters(String
This is the entire value of the text node.
value
)

Redeclares org.eclipse.persistence.internal.oxm.record.MarshalRecord.characters.

Receive notification of character data.
public void
characters(QName schemaType, Object value, String mimeType, boolean isCDATA)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.characters.

Convert the value if necessary and write out the converted value.
public void
public abstract void
closeStartElement()

Redeclares org.eclipse.persistence.internal.oxm.record.MarshalRecord.closeStartElement.

Receive notification that all of the attribute events have occurred for the most recent element that has been started.
public void
private Field<CONVERSION_MANAGER extends ConversionManager, NAMESPACE_RESOLVER extends NamespaceResolver>
public void
defaultNamespaceDeclaration(String defaultNamespace)

Add the defaultNamespace declaration

public abstract void
element(XPathFragment<XML_FIELD extends Field>
The XPathFragment of the element
frag
)

Receive notification of an element.

public void
emptyAttribute(XPathFragment<XML_FIELD extends Field> xPathFragment, NamespaceResolver namespaceResolver)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.emptyAttribute.

Used when an nil attribute should be written
public boolean
emptyCollection(XPathFragment<XML_FIELD extends Field> xPathFragment, NamespaceResolver namespaceResolver, boolean
if grouping elements should be marshalled for empty collections
openGrouping
)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.emptyCollection.

Handle marshal of an empty collection.
public void
emptyComplex(XPathFragment<XML_FIELD extends Field> xPathFragment, NamespaceResolver namespaceResolver)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.emptyComplex.

Used when an nil attribute should be written
public void
emptySimple(NamespaceResolver namespaceResolver)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.emptySimple.

Used when an nil attribute should be written
public void
endCollection()

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.endCollection.

This method is used to inform the MarshalRecord that it is done receiving element events that are part of a collection.
public abstract void
endDocument()

Recieve notification that a document is being ended.

public abstract void
endElement(XPathFragment<XML_FIELD extends Field>
The XPathFragment contains the name and prefix information about the XML element being ended.
xPathFragment
,
NamespaceResolver
The NamespaceResolver can be used to resolve the namespace URI for the namespace prefix held by the XPathFragment (if required).
namespaceResolver
)

Redeclares org.eclipse.persistence.internal.oxm.record.MarshalRecord.endElement.

Receive notification that an element is being ended.
public void
endPrefixMapping(String
The namespace prefix.
prefix
)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.endPrefixMapping.

Receive notification that the scope of this namespace declaration has ended.
public void
public void
public void
public CoreAttributeGroup<ATTRIBUTE_ITEM extends CoreAttributeItem, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>>
public MarshalRecord.CycleDetectionStack<Object>
public Document
public Node
public ArrayList<XPathNode>
getGroupingElements()

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.getGroupingElements.

INTERNAL: Returns the list of grouping elements currently stored on the MarshalRecord
public String
protected String
getNameForFragment(XPathFragment<XML_FIELD extends Field> xPathFragment)

public String
public HashMap<K, V>
protected byte[]
getPrefixBytes(XPathFragment<XML_FIELD extends Field> xPathFragment)

protected String
getPrefixForFragment(XPathFragment<XML_FIELD extends Field> xPathFragment)

protected String
public XPathFragment<XML_FIELD extends Field>
getTextWrapperFragment()

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.getTextWrapperFragment.

INTERNAL: The optional fragment used to wrap the text() mappings
public String
public boolean
public void
marshalWithoutRootElement(ObjectBuilder<ABSTRACT_RECORD extends CoreAbstractRecord, ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, MARSHALLER extends Marshaller<CHARACTER_ESCAPE_HANDLER extends CharacterEscapeHandler, CONTEXT extends Context<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends Descriptor<?, ?, ?, ?, ?, NAMESPACE_RESOLVER, ?, ?, ?, ?>, FIELD extends Field, NAMESPACE_RESOLVER extends NamespaceResolver, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION extends CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>, SESSION_EVENT_LISTENER extends CoreSessionEventListener>, MARSHALLER_LISTENER extends Marshaller.Listener, MEDIA_TYPE extends MediaType, NAMESPACE_PREFIX_MAPPER extends NamespacePrefixMapper>> treeObjectBuilder, Object object, Descriptor<ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor, CORE_MAPPING extends CoreMapping<ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor, ABSTRACT_SESSION extends CoreAbstractSession, CONTAINER_POLICY extends CoreContainerPolicy, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, FIELD extends CoreField>, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy<ABSTRACT_RECORD extends CoreAbstractRecord, ABSTRACT_SESSION extends CoreAbstractSession, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, FIELD extends CoreField>, INSTANTIATION_POLICY extends CoreInstantiationPolicy, NAMESPACE_RESOLVER extends NamespaceResolver, OBJECT_BUILDER extends CoreObjectBuilder<ABSTRACT_RECORD extends CoreAbstractRecord, ABSTRACT_SESSION extends CoreAbstractSession, FIELD extends CoreField, MAPPING extends CoreMapping<ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor, ABSTRACT_SESSION extends CoreAbstractSession, CONTAINER_POLICY extends CoreContainerPolicy, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, FIELD extends CoreField>>, TABLE extends CoreTable, UNMARSHAL_RECORD extends UnmarshalRecord, UNMARSHALLER extends Unmarshaller<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, CONTEXT extends Context<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends Descriptor<?, ?, ?, ?, ?, NAMESPACE_RESOLVER, ?, ?, ?, ?>, FIELD extends Field, NAMESPACE_RESOLVER extends NamespaceResolver, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION extends CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>, SESSION_EVENT_LISTENER extends CoreSessionEventListener>, DESCRIPTOR extends Descriptor, ID_RESOLVER extends IDResolver, MEDIA_TYPE extends MediaType, ROOT extends Root, UNMARSHALLER_HANDLER extends UnmarshallerHandler, UNMARSHALLER_LISTENER extends Unmarshaller.Listener>> descriptor, Root root, boolean isXMLRoot)

INTERNAL

public void
public void
namespaceDeclarations(NamespaceResolver
The NamespaceResolver contains the namespace prefix and URI pairings that need to be declared.
namespaceResolver
)

INTERNAL: Add the namespace declarations to the XML document.

public void
nilComplex(XPathFragment<XML_FIELD extends Field> xPathFragment, NamespaceResolver namespaceResolver)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.nilComplex.

Used when an nil attribute should be written
public void
nilSimple(NamespaceResolver namespaceResolver)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.nilSimple.

Used when an nil attribute should be written
public void
node(Node
The Node to be added to the document
node
,
NamespaceResolver
The NamespaceResolver can be used to resolve the namespace URI/prefix of the node
resolver
)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.node.

Receive notification of a node.
public abstract void
node(Node
The Node to be added to the document
node
,
NamespaceResolver
The NamespaceResolver can be used to resolve the
resolver
,
String
replacement root name for the node
qualifiedName
,
String
replacement root namespace for the node namespace URI/prefix of the node
rootUri
)

Receive notification of a node.

public void
openStartElement(XPathFragment<XML_FIELD extends Field>
The XPathFragment contains the name and prefix information about the XML element being ended.
xPathFragment
,
NamespaceResolver
The NamespaceResolver can be used to resolve the namespace URI for the namespace prefix held by the XPathFragment (if required).
namespaceResolver
)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.openStartElement.

Receive notification that an element is being started.
public XPathFragment<XML_FIELD extends Field>
openStartGroupingElements(NamespaceResolver
The NamespaceResolver can be used to resolve the namespace URI for the namespace prefix held by the XPathFragment (if required).
namespaceResolver
)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.openStartGroupingElements.

INTERNAL: Trigger that the grouping elements should be written.
public void
public void
predicateAttribute(XPathFragment<XML_FIELD extends Field> xPathFragment, NamespaceResolver namespaceResolver)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.predicateAttribute.

Marshal the attribute for the predicate if one was specified.
protected String

Returns:

xsi prefix
processNamespaceResolverForXSIPrefix
(NamespaceResolver namespaceResolver)

INTERNAL: Private function to process or create an entry in the NamespaceResolver for the xsi prefix.

public void
pushAttributeGroup(CoreAttributeGroup<ATTRIBUTE_ITEM extends CoreAttributeItem, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>> group)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.pushAttributeGroup.

public Object
public void
public void
setGroupingElement(ArrayList<XPathNode> elements)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.setGroupingElement.

INTERNAL: Sets the list of grouping elements to be marshalled on this record.
public void
setSession(CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>> session)

Overrides org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl.setSession.

Implements org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord.setSession.

pack-priv static List<String>

Returns:

list of CDATA-valid chunks of the input
splitCData
(String
for CDATA section possibly containing "]]>"
value
)

INTERNAL: Convenience method for splitting CDATA content to parts so that "]]>" occurrences are eliminated.

public void
startCollection()

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.startCollection.

This method is used to inform the MarshalRecord that the element events it is about to receive are part of a collection.
public abstract void
startDocument(String
The XML document will be encoded using this encoding.
encoding
,
String
This specifies the version of XML.
version
)

Receive notification that a document is being started.

public void
startPrefixMapping(String
The namespace prefix.
prefix
,
String
The namespace URI.
namespaceURI
)

Implements org.eclipse.persistence.internal.oxm.record.MarshalRecord.startPrefixMapping.

Receive notification that a namespace has been declared.
public void
public String
public void
writeHeader()

INTERNAL Writes the header, if appropriate.

Inherited from org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecordImpl:
addExtraNamespacesToNamespaceResolveraddXsiTypeAndClassIndicatorIfRequiredaddXsiTypeAndClassIndicatorIfRequiredattributeWithoutQNamegetConversionManagergetLeafElementTypegetMarshallergetNamespaceResolvergetNamespaceSeparatorgetOwningObjectgetSessionhasCustomNamespaceMapperhasEqualNamespaceResolversisNamespaceAwareisXOPPackageremoveExtraNamespacesFromNamespaceResolverresolveNamespacePrefixsetCustomNamespaceMappersetEqualNamespaceResolverssetLeafElementTypesetLeafElementTypesetMarshallersetNamespaceResolversetOwningObjectsetXOPPackagewriteXsiTypeAttributewriteXsiTypeAttribute