Class XMLRecord
java.lang.Object
org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
org.eclipse.persistence.internal.sessions.AbstractRecord
org.eclipse.persistence.oxm.record.XMLRecord
- All Implemented Interfaces:
Serializable,Cloneable,Map,org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver> org.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,,org.eclipse.persistence.internal.helper.DatabaseField, XMLUnmarshaller> org.eclipse.persistence.internal.oxm.record.XMLRecord<org.eclipse.persistence.internal.sessions.AbstractSession>,Record
- Direct Known Subclasses:
DOMRecord,UnmarshalRecord
public abstract class XMLRecord
extends org.eclipse.persistence.internal.sessions.AbstractRecord
implements org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLMarshaller,NamespaceResolver>, org.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLUnmarshaller>
PUBLIC:
Provides a Record/Map API on an XML DOM element.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
org.eclipse.persistence.internal.sessions.AbstractRecord.EntrySet, org.eclipse.persistence.internal.sessions.AbstractRecord.KeySet, org.eclipse.persistence.internal.sessions.AbstractRecord.NoEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntryIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordKeyIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordValuesIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.ValuesSetNested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object> Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
org.eclipse.persistence.internal.oxm.record.XMLRecord.Nil -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectprotected booleanprotected booleanstatic final org.eclipse.persistence.internal.oxm.record.XMLRecord.NilINTERNAL: Nil: This is used to indicate that this field represents xsi:nil="true"protected org.eclipse.persistence.internal.sessions.AbstractSessionprotected XMLUnmarshallerFields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
fields, lookupField, noEntry, nullValueInFields, size, sopObject, valuesFields inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
DEFAULT_ATTRIBUTE_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.persistence.internal.oxm.Namespace>addExtraNamespacesToNamespaceResolver(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers) INTERNALbooleanaddXsiTypeAndClassIndicatorIfRequired(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, org.eclipse.persistence.internal.oxm.mappings.Descriptor referenceDescriptor, org.eclipse.persistence.internal.oxm.mappings.Field xmlField, boolean isRootElement) INTERNALbooleanaddXsiTypeAndClassIndicatorIfRequired(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, org.eclipse.persistence.internal.oxm.mappings.Descriptor referenceDescriptor, org.eclipse.persistence.internal.oxm.mappings.Field xmlField, Object originalObject, Object obj, boolean wasXMLRoot, boolean isRootElement) INTERNALvoidMarshal an attribute for the give namespaceURI, localName, qualifiedName and valuevoidattributeWithoutQName(String namespaceURI, String localName, String prefix, String value) Marshal an attribute for the give namespaceURI, localName, preifx and valueabstract voidclear()PUBLIC: Clear the sub-nodes of the DOM.booleanPUBLIC: Check if the value is contained in the row.convertToXMLField(List<org.eclipse.persistence.internal.helper.DatabaseField> databaseFields) protected XMLFieldconvertToXMLField(org.eclipse.persistence.internal.helper.DatabaseField databaseField) INTERNAL: Convert a DatabaseField to an XMLFieldPUBLIC: Add the field-value pair to the row.get(org.eclipse.persistence.internal.helper.DatabaseField key) INTERNAL: Retrieve the value for the field.org.eclipse.persistence.internal.oxm.ConversionManagerINTERNALINTERNAL:abstract DocumentPUBLIC: Return the document.abstract NodegetDOM()PUBLIC: Return the DOM.getIndicatingNoEntry(String fieldName) INTERNAL: Retrieve the value for the field name.org.eclipse.persistence.internal.oxm.XPathQNameINTERNAL:abstract StringPUBLIC: Get the local name of the context root element.INTERNAL:charINTERNAL: The character used to separate the prefix and uri portions when namespaces are presentabstract StringPUBLIC: Get the namespace URI for the context root element.INTERNAL:org.eclipse.persistence.internal.sessions.AbstractSessionINTERNAL:booleanbooleanbooleanINTERNAL: Determine if namespaces will be considered during marshal/unmarshal operations.booleanvoidnamespaceDeclaration(String prefix, String namespaceURI) Marshal a namespace declaration for the given prefix and urlPUBLIC: Add the field-value pair to the row.voidremoveExtraNamespacesFromNamespaceResolver(List<org.eclipse.persistence.internal.oxm.Namespace> extraNamespaces, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session) INTERNALresolveNamespacePrefix(String prefix) voidsetCurrentObject(Object obj) INTERNAL:voidsetCustomNamespaceMapper(boolean customNamespaceMapper) voidvoidsetEqualNamespaceResolvers(boolean equalNRs) voidsetLeafElementType(QName leafElementType) INTERNAL:voidsetLeafElementType(org.eclipse.persistence.internal.oxm.XPathQName leafElementType) INTERNAL:voidsetMarshaller(XMLMarshaller marshaller) INTERNAL:voidvoidsetOwningObject(Object owningObject) INTERNAL:voidsetSession(org.eclipse.persistence.internal.sessions.AbstractSession session) voidsetUnmarshaller(XMLUnmarshaller unmarshaller) INTERNAL:voidsetXOPPackage(boolean isXOPPackage) abstract StringReturn the XML string representation of the DOM.voidwriteXsiTypeAttribute(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, String typeUri, String typeLocal, String typePrefix, boolean addToNamespaceResolver) INTERNALvoidwriteXsiTypeAttribute(org.eclipse.persistence.internal.oxm.mappings.Descriptor xmlDescriptor, XMLSchemaReference xmlRef, boolean addToNamespaceResolver) INTERNALMethods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
add, clone, containsKey, containsKey, containsKey, containsValue, elements, entrySet, get, getField, getFields, getIndicatingNoEntry, getLookupField, getSopObject, getValues, getValues, getValues, hasNullValueInFields, hasSopObject, isEmpty, keys, keySet, mergeFrom, put, put, putAll, remove, remove, remove, replaceAt, replaceAt, resetSize, setFields, setNullValueInFields, setSopObject, setValues, size, toString, valuesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord
putMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
unmarshaller
-
currentObject
-
session
protected org.eclipse.persistence.internal.sessions.AbstractSession session -
hasCustomNamespaceMapper
protected boolean hasCustomNamespaceMapper -
equalNamespaceResolvers
protected boolean equalNamespaceResolvers -
NIL
public static final org.eclipse.persistence.internal.oxm.record.XMLRecord.Nil NILINTERNAL: Nil: This is used to indicate that this field represents xsi:nil="true"
-
-
Constructor Details
-
XMLRecord
public XMLRecord()
-
-
Method Details
-
get
PUBLIC: Add the field-value pair to the row.- Overrides:
getin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
put
PUBLIC: Add the field-value pair to the row.- Overrides:
putin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
attributeWithoutQName
public void attributeWithoutQName(String namespaceURI, String localName, String prefix, String value) Marshal an attribute for the give namespaceURI, localName, preifx and value- Specified by:
attributeWithoutQNamein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver> - Parameters:
namespaceURI-localName-prefix-value-
-
attribute
Marshal an attribute for the give namespaceURI, localName, qualifiedName and value- Specified by:
attributein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver> - Parameters:
namespaceURI-localName-qName-value-
-
namespaceDeclaration
Marshal a namespace declaration for the given prefix and url- Specified by:
namespaceDeclarationin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver> - Parameters:
prefix-namespaceURI-
-
getLocalName
PUBLIC: Get the local name of the context root element. -
getNamespaceURI
PUBLIC: Get the namespace URI for the context root element. -
clear
public abstract void clear()PUBLIC: Clear the sub-nodes of the DOM. -
getDocument
PUBLIC: Return the document. -
contains
PUBLIC: Check if the value is contained in the row.- Overrides:
containsin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
getDOM
PUBLIC: Return the DOM.- Specified by:
getDOMin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
transformToXML
Return the XML string representation of the DOM. -
convertToXMLField
protected XMLField convertToXMLField(org.eclipse.persistence.internal.helper.DatabaseField databaseField) INTERNAL: Convert a DatabaseField to an XMLField -
convertToXMLField
-
get
INTERNAL: Retrieve the value for the field. If missing null is returned.- Specified by:
getin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLUnmarshaller> - Overrides:
getin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
getIndicatingNoEntry
INTERNAL: Retrieve the value for the field name.- Overrides:
getIndicatingNoEntryin classorg.eclipse.persistence.internal.sessions.AbstractRecord
-
resolveNamespacePrefix
- Specified by:
resolveNamespacePrefixin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver> - Specified by:
resolveNamespacePrefixin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLUnmarshaller>
-
getMarshaller
INTERNAL:- Specified by:
getMarshallerin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setMarshaller
INTERNAL:- Specified by:
setMarshallerin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
getUnmarshaller
INTERNAL:- Specified by:
getUnmarshallerin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLUnmarshaller>
-
setUnmarshaller
INTERNAL: -
setDocPresPolicy
-
getDocPresPolicy
-
getOwningObject
INTERNAL:- Specified by:
getOwningObjectin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setOwningObject
INTERNAL:- Specified by:
setOwningObjectin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
getCurrentObject
INTERNAL: -
setCurrentObject
INTERNAL: -
getLeafElementType
public org.eclipse.persistence.internal.oxm.XPathQName getLeafElementType()INTERNAL:- Specified by:
getLeafElementTypein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setLeafElementType
public void setLeafElementType(org.eclipse.persistence.internal.oxm.XPathQName leafElementType) INTERNAL:- Specified by:
setLeafElementTypein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setLeafElementType
INTERNAL:- Specified by:
setLeafElementTypein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setNamespaceResolver
- Specified by:
setNamespaceResolverin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
getNamespaceResolver
- Specified by:
getNamespaceResolverin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
getSession
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()- Specified by:
getSessionin interfaceorg.eclipse.persistence.internal.oxm.record.XMLRecord<org.eclipse.persistence.internal.sessions.AbstractSession>
-
setSession
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session) - Specified by:
setSessionin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setEqualNamespaceResolvers
public void setEqualNamespaceResolvers(boolean equalNRs) - Specified by:
setEqualNamespaceResolversin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
hasEqualNamespaceResolvers
public boolean hasEqualNamespaceResolvers()- Specified by:
hasEqualNamespaceResolversin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
isXOPPackage
public boolean isXOPPackage()- Specified by:
isXOPPackagein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setXOPPackage
public void setXOPPackage(boolean isXOPPackage) - Specified by:
setXOPPackagein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
isNamespaceAware
public boolean isNamespaceAware()INTERNAL: Determine if namespaces will be considered during marshal/unmarshal operations.- Specified by:
isNamespaceAwarein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver> - Specified by:
isNamespaceAwarein interfaceorg.eclipse.persistence.internal.oxm.record.XMLRecord<org.eclipse.persistence.internal.sessions.AbstractSession>
-
getNamespaceSeparator
public char getNamespaceSeparator()INTERNAL: The character used to separate the prefix and uri portions when namespaces are present- Specified by:
getNamespaceSeparatorin interfaceorg.eclipse.persistence.internal.oxm.record.XMLRecord<org.eclipse.persistence.internal.sessions.AbstractSession>
-
hasCustomNamespaceMapper
public boolean hasCustomNamespaceMapper()- Specified by:
hasCustomNamespaceMapperin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
setCustomNamespaceMapper
public void setCustomNamespaceMapper(boolean customNamespaceMapper) - Specified by:
setCustomNamespaceMapperin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
addExtraNamespacesToNamespaceResolver
public List<org.eclipse.persistence.internal.oxm.Namespace> addExtraNamespacesToNamespaceResolver(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers) INTERNAL- Specified by:
addExtraNamespacesToNamespaceResolverin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
addXsiTypeAndClassIndicatorIfRequired
public boolean addXsiTypeAndClassIndicatorIfRequired(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, org.eclipse.persistence.internal.oxm.mappings.Descriptor referenceDescriptor, org.eclipse.persistence.internal.oxm.mappings.Field xmlField, boolean isRootElement) INTERNAL- Specified by:
addXsiTypeAndClassIndicatorIfRequiredin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
addXsiTypeAndClassIndicatorIfRequired
public boolean addXsiTypeAndClassIndicatorIfRequired(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, org.eclipse.persistence.internal.oxm.mappings.Descriptor referenceDescriptor, org.eclipse.persistence.internal.oxm.mappings.Field xmlField, Object originalObject, Object obj, boolean wasXMLRoot, boolean isRootElement) INTERNAL- Specified by:
addXsiTypeAndClassIndicatorIfRequiredin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
removeExtraNamespacesFromNamespaceResolver
public void removeExtraNamespacesFromNamespaceResolver(List<org.eclipse.persistence.internal.oxm.Namespace> extraNamespaces, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session) INTERNAL- Specified by:
removeExtraNamespacesFromNamespaceResolverin interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
writeXsiTypeAttribute
public void writeXsiTypeAttribute(org.eclipse.persistence.internal.oxm.mappings.Descriptor descriptor, String typeUri, String typeLocal, String typePrefix, boolean addToNamespaceResolver) INTERNAL- Specified by:
writeXsiTypeAttributein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
writeXsiTypeAttribute
public void writeXsiTypeAttribute(org.eclipse.persistence.internal.oxm.mappings.Descriptor xmlDescriptor, XMLSchemaReference xmlRef, boolean addToNamespaceResolver) INTERNAL- Specified by:
writeXsiTypeAttributein interfaceorg.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField, XMLMarshaller, NamespaceResolver>
-
getConversionManager
public org.eclipse.persistence.internal.oxm.ConversionManager getConversionManager()INTERNAL- Specified by:
getConversionManagerin interfaceorg.eclipse.persistence.internal.oxm.record.XMLRecord<org.eclipse.persistence.internal.sessions.AbstractSession>
-