public class DOMRecord extends XMLRecord implements org.eclipse.persistence.internal.oxm.record.TransformationRecord
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.ValuesSetcurrentObject, equalNamespaceResolvers, hasCustomNamespaceMapper, NIL, session, unmarshaller| Constructor and Description |
|---|
DOMRecord()
INTERNAL:
Default constructor.
|
DOMRecord(Document document)
INTERNAL:
Create a record with the element.
|
DOMRecord(Element element)
INTERNAL:
Create a record with the element.
|
DOMRecord(Node node) |
DOMRecord(String rootElementName)
INTERNAL:
Create a record with the root element name.
|
DOMRecord(String rootElementName,
NamespaceResolver namespaceResolver)
INTERNAL:
Create a record with the root element name get the namespace URI from the namespaceResolver.
|
DOMRecord(String localRootElementName,
NamespaceResolver namespaceResolver,
Node parent)
INTERNAL:
Create a record with the local root element name, that is a child of the parent.
|
DOMRecord(String localRootElementName,
Node parent)
INTERNAL:
Create a record with the local root element name, that is a child of the parent.
|
DOMRecord(String rootElementName,
String rootElementNamespaceURI)
INTERNAL:
Create a record with the root element name get the namespace URI from the namespaceResolver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.eclipse.persistence.internal.helper.DatabaseField key,
Object value)
INTERNAL:
Add the field-value pair to the document.
|
XMLRecord |
buildNestedRow(Element element)
INTERNAL:
Build the nested record, this can be overwriten by subclasses to use their subclass instance.
|
void |
clear()
PUBLIC:
Clear the sub-nodes of the DOM.
|
DOMRecord |
clone()
INTERNAL:
Clone the row and its values.
|
boolean |
contains(Object value)
PUBLIC:
Check if the value is contained in the row.
|
boolean |
containsKey(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL:
Check if the field is contained in the row.
|
Node |
createNewDocument(String defaultRootElementName)
INTERNAL:
Creates a new Document and returns the root element of that document
|
Node |
createNewDocument(String defaultRootElementName,
String namespaceURI)
INTERNAL:
Creates a new Document and returns the root element of that document
|
Set |
entrySet()
PUBLIC:
|
Object |
get(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL:
Retrieve the value for the field.
|
Document |
getDocument()
PUBLIC:
Return the document.
|
Node |
getDOM()
PUBLIC:
Return the DOM.
|
Vector |
getFields()
INTERNAL:
This should not be used, but added some support for it as
is called from some places such as sdk call used in the descriptor to define operation not supported,
may also be called from toplin in some places.
|
Object |
getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL:
Given a DatabaseField return the corresponding value from the document
|
Object |
getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key,
boolean shouldReturnNode) |
Object |
getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key,
boolean shouldReturnNode,
boolean checkForXsiNil) |
String |
getLocalName()
PUBLIC:
Get the local name of the context root element.
|
String |
getNamespaceURI()
PUBLIC:
Get the namespace URI for the context root element.
|
org.eclipse.persistence.internal.oxm.ReferenceResolver |
getReferenceResolver()
INTERNAL:
The ReferenceResolver that is leveraged by key based mappings.
|
Vector |
getValues()
INTERNAL:
This should not be used, but added some support for it as
is called from some places such as sdk call used in the descriptor to define operation not supported,
may also be called from TopLink in some places.
|
Object |
getValues(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL:
Given a DatabaseField, return the corresponding values from the document
|
Object |
getValues(org.eclipse.persistence.internal.helper.DatabaseField key,
AbstractNullPolicy nullPolicy) |
Object |
getValues(String key)
INTERNAL:
Retrieve the value for the field name.
|
Object |
getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key) |
Object |
getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key,
AbstractNullPolicy nullPolicy) |
Object |
getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key,
boolean shouldReturnNodes)
INTERNAL:
Given a DatabaseField, return the corresponding values from the document
|
Object |
getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key,
boolean shouldReturnNodes,
AbstractNullPolicy nullPolicy) |
List<XMLEntry> |
getValuesIndicatingNoEntry(List<org.eclipse.persistence.internal.helper.DatabaseField> keys) |
List<XMLEntry> |
getValuesIndicatingNoEntry(List<org.eclipse.persistence.internal.helper.DatabaseField> keys,
boolean shouldReturnNodes) |
Set |
keySet()
PUBLIC:
Return the set of element names from the DOM.
|
Object |
put(org.eclipse.persistence.internal.helper.DatabaseField key,
Object value)
INTERNAL:
Set the field value into the DOM.
|
Object |
put(List<XMLField> xmlFields,
List<XMLEntry> values) |
Object |
put(Object key,
Object value)
PUBLIC:
Add the field-value pair to the row.
|
Object |
remove(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL:
Remove the field key from the row.
|
void |
replaceAt(Object value,
int index)
INTERNAL:
replaces the value at index with value
|
String |
resolveNamespacePrefix(String prefix) |
void |
resolveReferences(org.eclipse.persistence.internal.core.sessions.CoreAbstractSession abstractSession,
IDResolver idResolver)
INTERNAL:
If the UnmarshalRecord has a ReferenceResolver, tell it to resolve its
references.
|
void |
setDOM(Element element) |
void |
setDOM(Node element)
INTERNAL:
Sets the dom and updated document to be the owner document of the given element
|
protected void |
setFields(Vector fields)
INTERNAL:
Setting fields vector will not update the document so this is not supported
|
void |
setReferenceResolver(org.eclipse.persistence.internal.oxm.ReferenceResolver referenceResolver)
INTERNAL:
Set the ReferenceResolver that will be leveraged by key based mappings.
|
void |
setSession(org.eclipse.persistence.internal.sessions.AbstractSession session) |
protected void |
setValues(Vector values)
INTERNAL:
Setting values vector will not update the document so this is not supported
|
int |
size()
Return the number of elements in the DOM.
|
String |
toString()
INTERNAL:
Print the dom XML string.
|
void |
transformFromXML(Reader reader)
Set the XML from an XML reader.
|
void |
transformFromXML(String xml)
Set the XML from an XML string.
|
void |
transformToWriter(Writer writer)
Write the XML string representation of the DOM.
|
String |
transformToXML()
Return the XML string representation of the DOM.
|
Collection |
values()
PUBLIC:
Return the collection of element values from the DOM.
|
addExtraNamespacesToNamespaceResolver, addXsiTypeAndClassIndicatorIfRequired, addXsiTypeAndClassIndicatorIfRequired, attribute, attributeWithoutQName, convertToXMLField, convertToXMLField, get, getConversionManager, getCurrentObject, getDocPresPolicy, getIndicatingNoEntry, getLeafElementType, getMarshaller, getNamespaceResolver, getNamespaceSeparator, getOwningObject, getSession, getUnmarshaller, hasCustomNamespaceMapper, hasEqualNamespaceResolvers, isNamespaceAware, isXOPPackage, namespaceDeclaration, put, removeExtraNamespacesFromNamespaceResolver, setCurrentObject, setCustomNamespaceMapper, setDocPresPolicy, setEqualNamespaceResolvers, setLeafElementType, setLeafElementType, setMarshaller, setNamespaceResolver, setOwningObject, setUnmarshaller, setXOPPackage, writeXsiTypeAttribute, writeXsiTypeAttributecontainsKey, containsKey, containsValue, elements, get, getField, getLookupField, getSopObject, hasNullValueInFields, hasSopObject, isEmpty, keys, mergeFrom, putAll, remove, remove, replaceAt, resetSize, setNullValueInFields, setSopObjectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic DOMRecord()
public DOMRecord(String rootElementName)
public DOMRecord(String rootElementName, NamespaceResolver namespaceResolver)
public DOMRecord(String rootElementName, String rootElementNamespaceURI)
public DOMRecord(String localRootElementName, Node parent)
public DOMRecord(String localRootElementName, NamespaceResolver namespaceResolver, Node parent)
public DOMRecord(Element element)
public DOMRecord(Node node)
public DOMRecord(Document document)
public String getLocalName()
getLocalName in class XMLRecordpublic String getNamespaceURI()
getNamespaceURI in class XMLRecordpublic org.eclipse.persistence.internal.oxm.ReferenceResolver getReferenceResolver()
public void setReferenceResolver(org.eclipse.persistence.internal.oxm.ReferenceResolver referenceResolver)
public void add(org.eclipse.persistence.internal.helper.DatabaseField key,
Object value)
add in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic void clear()
public DOMRecord clone()
clone in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Node createNewDocument(String defaultRootElementName)
public Node createNewDocument(String defaultRootElementName, String namespaceURI)
public Document getDocument()
getDocument in class XMLRecordpublic boolean containsKey(org.eclipse.persistence.internal.helper.DatabaseField key)
containsKey in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic boolean contains(Object value)
public Object get(org.eclipse.persistence.internal.helper.DatabaseField key)
XMLRecordget in interface org.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLUnmarshaller>get in class XMLRecordpublic Object getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key)
getIndicatingNoEntry in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Object getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key, boolean shouldReturnNode)
public Object getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key, boolean shouldReturnNode, boolean checkForXsiNil)
public Object getValues(String key)
getValues in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Object getValues(org.eclipse.persistence.internal.helper.DatabaseField key)
getValues in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Object getValues(org.eclipse.persistence.internal.helper.DatabaseField key, AbstractNullPolicy nullPolicy)
public Object getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key)
public Object getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key, AbstractNullPolicy nullPolicy)
public List<XMLEntry> getValuesIndicatingNoEntry(List<org.eclipse.persistence.internal.helper.DatabaseField> keys)
public List<XMLEntry> getValuesIndicatingNoEntry(List<org.eclipse.persistence.internal.helper.DatabaseField> keys, boolean shouldReturnNodes)
public Object getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key, boolean shouldReturnNodes)
public Object getValuesIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key, boolean shouldReturnNodes, AbstractNullPolicy nullPolicy)
public XMLRecord buildNestedRow(Element element)
public Node getDOM()
getDOM in interface org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLMarshaller,NamespaceResolver>getDOM in class XMLRecordpublic Object put(org.eclipse.persistence.internal.helper.DatabaseField key, Object value)
put in interface org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLMarshaller,NamespaceResolver>put in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Object put(Object key, Object value) throws ValidationException
org.eclipse.persistence.internal.sessions.AbstractRecordput in interface Mapput in interface org.eclipse.persistence.internal.oxm.record.TransformationRecordput in class org.eclipse.persistence.internal.sessions.AbstractRecordValidationExceptionpublic Object remove(org.eclipse.persistence.internal.helper.DatabaseField key)
remove in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic void replaceAt(Object value, int index)
replaceAt in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Set entrySet()
protected void setFields(Vector fields) throws XMLMarshalException
setFields in class org.eclipse.persistence.internal.sessions.AbstractRecordXMLMarshalExceptionpublic Vector getFields()
getFields in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Vector getValues()
getValues in class org.eclipse.persistence.internal.sessions.AbstractRecordprotected void setValues(Vector values) throws XMLMarshalException
setValues in class org.eclipse.persistence.internal.sessions.AbstractRecordXMLMarshalExceptionpublic void setDOM(Node element)
public void setDOM(Element element)
public String toString()
toString in class org.eclipse.persistence.internal.sessions.AbstractRecordpublic Set keySet()
public Collection values()
public int size()
public void transformFromXML(String xml)
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
setSession in interface org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLMarshaller,NamespaceResolver>setSession in class XMLRecordpublic void transformFromXML(Reader reader)
public String transformToXML()
transformToXML in class XMLRecordpublic void transformToWriter(Writer writer)
public String resolveNamespacePrefix(String prefix)
resolveNamespacePrefix in interface org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLMarshaller,NamespaceResolver>resolveNamespacePrefix in interface org.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,XMLUnmarshaller>resolveNamespacePrefix in class XMLRecordpublic void resolveReferences(org.eclipse.persistence.internal.core.sessions.CoreAbstractSession abstractSession,
IDResolver idResolver)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.