|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.internal.sessions.AbstractRecord org.eclipse.persistence.oxm.record.XMLRecord
public abstract class XMLRecord
PUBLIC: Provides a Record/Map API on an XML DOM element.
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.ValuesSet |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
protected java.lang.Object |
currentObject
|
protected boolean |
equalNamespaceResolvers
|
protected boolean |
hasCustomNamespaceMapper
|
protected XMLMarshaller |
marshaller
|
protected boolean |
namespaceAware
|
protected NamespaceResolver |
namespaceResolver
|
static org.eclipse.persistence.oxm.record.XMLRecord.Nil |
NIL
INTERNAL: Nil: This is used to indicate that this field represents xsi:nil="true" |
protected org.eclipse.persistence.internal.sessions.AbstractSession |
session
|
protected XMLUnmarshaller |
unmarshaller
|
Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
---|
fields, lookupField, noEntry, nullValueInFields, size, values |
Constructor Summary | |
---|---|
XMLRecord()
|
Method Summary | |
---|---|
void |
attribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
java.lang.String value)
Marshal an attribute for the give namespaceURI, localName, qualifiedName and value |
void |
attributeWithoutQName(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String prefix,
java.lang.String value)
Marshal an attribute for the give namespaceURI, localName, preifx and value |
abstract void |
clear()
PUBLIC: Clear the sub-nodes of the DOM. |
boolean |
contains(java.lang.Object value)
PUBLIC: Check if the value is contained in the row. |
protected XMLField |
convertToXMLField(org.eclipse.persistence.internal.helper.DatabaseField databaseField)
INTERNAL: Convert a DatabaseField to an XMLField |
protected java.util.List<XMLField> |
convertToXMLField(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> databaseFields)
|
java.lang.Object |
get(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL: Retrieve the value for the field. |
java.lang.Object |
get(java.lang.String key)
PUBLIC: Add the field-value pair to the row. |
java.lang.Object |
getCurrentObject()
INTERNAL: |
DocumentPreservationPolicy |
getDocPresPolicy()
|
abstract org.w3c.dom.Document |
getDocument()
PUBLIC: Return the document. |
abstract org.w3c.dom.Node |
getDOM()
PUBLIC: Return the DOM. |
java.lang.Object |
getIndicatingNoEntry(java.lang.String fieldName)
INTERNAL: Retrieve the value for the field name. |
org.eclipse.persistence.internal.oxm.XPathQName |
getLeafElementType()
INTERNAL: |
abstract java.lang.String |
getLocalName()
PUBLIC: Get the local name of the context root element. |
XMLMarshaller |
getMarshaller()
INTERNAL: |
NamespaceResolver |
getNamespaceResolver()
|
char |
getNamespaceSeparator()
INTERNAL: The character used to separate the prefix and uri portions when namespaces are present |
abstract java.lang.String |
getNamespaceURI()
PUBLIC: Get the namespace URI for the context root element. |
java.lang.Object |
getOwningObject()
INTERNAL: |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession()
|
XMLUnmarshaller |
getUnmarshaller()
INTERNAL: |
boolean |
hasCustomNamespaceMapper()
|
boolean |
hasEqualNamespaceResolvers()
|
boolean |
isNamespaceAware()
INTERNAL: Determine if namespaces will be considered during marshal/unmarshal operations. |
boolean |
isXOPPackage()
|
void |
namespaceDeclaration(java.lang.String prefix,
java.lang.String namespaceURI)
Marshal a namespace declaration for the given prefix and url |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
PUBLIC: Add the field-value pair to the row. |
java.lang.String |
resolveNamespacePrefix(java.lang.String prefix)
|
void |
setCurrentObject(java.lang.Object obj)
INTERNAL: |
void |
setCustomNamespaceMapper(boolean customNamespaceMapper)
|
void |
setDocPresPolicy(DocumentPreservationPolicy policy)
|
void |
setEqualNamespaceResolvers(boolean equalNRs)
|
void |
setLeafElementType(javax.xml.namespace.QName type)
INTERNAL: |
void |
setLeafElementType(org.eclipse.persistence.internal.oxm.XPathQName type)
INTERNAL: |
void |
setMarshaller(XMLMarshaller marshaller)
INTERNAL: |
void |
setNamespaceResolver(NamespaceResolver nr)
|
void |
setOwningObject(java.lang.Object obj)
INTERNAL: |
void |
setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
|
void |
setUnmarshaller(XMLUnmarshaller unmarshaller)
INTERNAL: |
void |
setXOPPackage(boolean isXOPPackage)
|
abstract java.lang.String |
transformToXML()
Return the XML string representation of the DOM. |
Methods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
---|
add, clone, containsKey, containsKey, containsKey, containsValue, elements, entrySet, get, getField, getFields, getIndicatingNoEntry, getLookupField, getValues, getValues, getValues, hasNullValueInFields, isEmpty, keys, keySet, mergeFrom, put, put, putAll, remove, remove, remove, replaceAt, resetSize, setFields, setNullValueInFields, setValues, size, toString, values |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected XMLMarshaller marshaller
protected XMLUnmarshaller unmarshaller
protected java.lang.Object currentObject
protected NamespaceResolver namespaceResolver
protected org.eclipse.persistence.internal.sessions.AbstractSession session
protected boolean namespaceAware
protected boolean hasCustomNamespaceMapper
protected boolean equalNamespaceResolvers
public static final org.eclipse.persistence.oxm.record.XMLRecord.Nil NIL
Constructor Detail |
---|
public XMLRecord()
Method Detail |
---|
public java.lang.Object get(java.lang.String key)
get
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public void attributeWithoutQName(java.lang.String namespaceURI, java.lang.String localName, java.lang.String prefix, java.lang.String value)
namespaceURI
- localName
- prefix
- value
- public void attribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, java.lang.String value)
namespaceURI
- localName
- qName
- value
- public void namespaceDeclaration(java.lang.String prefix, java.lang.String namespaceURI)
prefix
- url
- public abstract java.lang.String getLocalName()
public abstract java.lang.String getNamespaceURI()
public abstract void clear()
clear
in interface java.util.Map
clear
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public abstract org.w3c.dom.Document getDocument()
public boolean contains(java.lang.Object value)
contains
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public abstract org.w3c.dom.Node getDOM()
public abstract java.lang.String transformToXML()
protected XMLField convertToXMLField(org.eclipse.persistence.internal.helper.DatabaseField databaseField)
protected java.util.List<XMLField> convertToXMLField(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> databaseFields)
public java.lang.Object get(org.eclipse.persistence.internal.helper.DatabaseField key)
get
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object getIndicatingNoEntry(java.lang.String fieldName)
getIndicatingNoEntry
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.String resolveNamespacePrefix(java.lang.String prefix)
public XMLMarshaller getMarshaller()
public void setMarshaller(XMLMarshaller marshaller)
public XMLUnmarshaller getUnmarshaller()
public void setUnmarshaller(XMLUnmarshaller unmarshaller)
public void setDocPresPolicy(DocumentPreservationPolicy policy)
public DocumentPreservationPolicy getDocPresPolicy()
public java.lang.Object getOwningObject()
public void setOwningObject(java.lang.Object obj)
public java.lang.Object getCurrentObject()
public void setCurrentObject(java.lang.Object obj)
public org.eclipse.persistence.internal.oxm.XPathQName getLeafElementType()
public void setLeafElementType(org.eclipse.persistence.internal.oxm.XPathQName type)
public void setLeafElementType(javax.xml.namespace.QName type)
public void setNamespaceResolver(NamespaceResolver nr)
public NamespaceResolver getNamespaceResolver()
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void setEqualNamespaceResolvers(boolean equalNRs)
public boolean hasEqualNamespaceResolvers()
public boolean isXOPPackage()
public void setXOPPackage(boolean isXOPPackage)
public boolean isNamespaceAware()
public char getNamespaceSeparator()
public boolean hasCustomNamespaceMapper()
public void setCustomNamespaceMapper(boolean customNamespaceMapper)
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |