|
EclipseLink 2.3.2, build 'v20111125-r10461' 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 org.eclipse.persistence.oxm.record.MarshalRecord org.eclipse.persistence.oxm.record.ValidatingMarshalRecord
public class ValidatingMarshalRecord
Nested Class Summary | |
---|---|
static class |
ValidatingMarshalRecord.MarshalSAXParseException
|
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 |
---|
Fields inherited from class org.eclipse.persistence.oxm.record.XMLRecord |
---|
currentObject, marshaller, NIL, session, unmarshaller |
Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
---|
fields, lookupField, noEntry, nullValueInFields, size, values |
Constructor Summary | |
---|---|
ValidatingMarshalRecord(MarshalRecord marshalRecord,
XMLMarshaller xmlMarshaller)
|
Method Summary | |
---|---|
void |
add(org.eclipse.persistence.internal.helper.DatabaseField key,
java.lang.Object value)
INTERNAL: Add the field-value pair to the document. |
void |
addGroupingElement(org.eclipse.persistence.internal.oxm.XPathNode xPathNode)
INTERNAL: If an XPathNode does not have an associated NodeValue then add it to the MarshalRecord as a grouping element. |
protected void |
addPositionalNodes(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment,
NamespaceResolver namespaceResolver)
|
void |
afterContainmentMarshal(java.lang.Object parent,
java.lang.Object child)
|
void |
attribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
java.lang.String value)
Receive notification of an attribute. |
void |
attribute(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment,
NamespaceResolver namespaceResolver,
java.lang.String value)
Receive notification of an attribute. |
void |
beforeContainmentMarshal(java.lang.Object child)
|
void |
cdata(java.lang.String value)
Receive notification of character data to be wrapped in a CDATA node. |
void |
characters(java.lang.String value)
Receive notification of character data. |
void |
clear()
PUBLIC: Clear the sub-nodes of the DOM. |
void |
closeStartElement()
Receive notification that all of the attribute events have occurred for the most recent element that has been started. |
void |
closeStartGroupingElements(org.eclipse.persistence.internal.oxm.XPathFragment groupingFragment)
|
boolean |
contains(java.lang.Object value)
PUBLIC: Check if the value is contained in the row. |
boolean |
containsKey(org.eclipse.persistence.internal.helper.DatabaseField key)
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsKey(java.lang.String fieldName)
|
boolean |
containsValue(java.lang.Object value)
|
void |
element(org.eclipse.persistence.internal.oxm.XPathFragment frag)
Receive notification of an element. |
java.util.Enumeration |
elements()
|
void |
endDocument()
Recieve notification that a document is being ended. |
void |
endElement(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment,
NamespaceResolver namespaceResolver)
Receive notification that an element is being ended. |
void |
endPrefixMapping(java.lang.String prefix)
Receive notification that the scope of this namespace declaration has ended. |
void |
endPrefixMappings(NamespaceResolver namespaceResolver)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL: Retrieve the value for the field. |
java.lang.Object |
get(java.lang.Object key)
|
java.lang.Object |
get(java.lang.String fieldName)
|
java.lang.Object |
getCurrentObject()
INTERNAL: |
DocumentPreservationPolicy |
getDocPresPolicy()
|
org.w3c.dom.Document |
getDocument()
PUBLIC: Return the document. |
org.w3c.dom.Element |
getDOM()
PUBLIC: Return the DOM. |
org.eclipse.persistence.internal.helper.DatabaseField |
getField(org.eclipse.persistence.internal.helper.DatabaseField key)
|
java.util.Vector |
getFields()
|
java.lang.Object |
getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key)
|
java.lang.Object |
getIndicatingNoEntry(java.lang.String fieldName)
INTERNAL: Retrieve the value for the field name. |
javax.xml.namespace.QName |
getLeafElementType()
INTERNAL: |
java.lang.String |
getLocalName()
PUBLIC: Get the local name of the context root element. |
XMLMarshaller |
getMarshaller()
INTERNAL: |
NamespaceResolver |
getNamespaceResolver()
|
java.lang.String |
getNamespaceURI()
PUBLIC: Get the namespace URI for the context root element. |
java.lang.Object |
getOwningObject()
INTERNAL: |
java.util.HashMap |
getPositionalNodes()
|
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession()
|
XMLUnmarshaller |
getUnmarshaller()
INTERNAL: |
java.util.Vector |
getValues()
|
java.lang.Object |
getValues(org.eclipse.persistence.internal.helper.DatabaseField key)
|
java.lang.Object |
getValues(java.lang.String key)
|
boolean |
hasNullValueInFields()
|
boolean |
isEmpty()
|
boolean |
isXOPPackage()
|
java.util.Enumeration |
keys()
|
java.util.Set |
keySet()
|
void |
mergeFrom(org.eclipse.persistence.internal.sessions.AbstractRecord row)
|
void |
namespaceDeclarations(NamespaceResolver namespaceResolver)
INTERNAL: Add the namespace declarations to the XML document. |
void |
node(org.w3c.dom.Node node,
NamespaceResolver resolver)
Receive notification of a node. |
void |
openStartElement(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment,
NamespaceResolver namespaceResolver)
Receive notification that an element is being started. |
org.eclipse.persistence.internal.oxm.XPathFragment |
openStartGroupingElements(NamespaceResolver namespaceResolver)
INTERNAL: Trigger that the grouping elements should be written. |
java.lang.Object |
put(org.eclipse.persistence.internal.helper.DatabaseField key,
java.lang.Object value)
INTERNAL: Add the field-value pair to the document. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
void |
putAll(java.util.Map map)
|
java.lang.Object |
remove(org.eclipse.persistence.internal.helper.DatabaseField key)
|
java.lang.Object |
remove(java.lang.Object key)
|
java.lang.Object |
remove(java.lang.String fieldName)
|
void |
removeGroupingElement(org.eclipse.persistence.internal.oxm.XPathNode xPathNode)
INTERNAL: |
void |
replaceAt(java.lang.Object value,
int index)
|
java.lang.String |
resolveNamespacePrefix(java.lang.String prefix)
|
void |
setCurrentObject(java.lang.Object obj)
INTERNAL: |
void |
setDocPresPolicy(DocumentPreservationPolicy policy)
|
void |
setLeafElementType(javax.xml.namespace.QName type)
INTERNAL: |
void |
setMarshaller(XMLMarshaller marshaller)
INTERNAL: |
void |
setNamespaceResolver(NamespaceResolver nr)
|
void |
setNullValueInFields(boolean nullValueInFields)
|
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)
|
int |
size()
|
void |
startDocument(java.lang.String encoding,
java.lang.String version)
Receive notification that a document is being started. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String namespaceURI)
Receive notification that a namespace has been declared. |
void |
startPrefixMappings(NamespaceResolver namespaceResolver)
|
java.lang.String |
transformToXML()
Return the XML string representation of the DOM. |
java.util.Collection |
values()
|
Methods inherited from class org.eclipse.persistence.oxm.record.MarshalRecord |
---|
characters, getGroupingElements, getStringForQName, predicateAttribute, setGroupingElement |
Methods inherited from class org.eclipse.persistence.oxm.record.XMLRecord |
---|
convertToXMLField, convertToXMLField |
Methods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
---|
clone, getLookupField, resetSize, setFields, setValues, toString |
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 |
Constructor Detail |
---|
public ValidatingMarshalRecord(MarshalRecord marshalRecord, XMLMarshaller xmlMarshaller)
Method Detail |
---|
public void startDocument(java.lang.String encoding, java.lang.String version)
MarshalRecord
startDocument
in class MarshalRecord
encoding
- The XML document will be encoded using this encoding.version
- This specifies the version of XML.public void endDocument()
MarshalRecord
endDocument
in class MarshalRecord
public void element(org.eclipse.persistence.internal.oxm.XPathFragment frag)
MarshalRecord
element
in class MarshalRecord
frag
- The XPathFragment of the elementpublic void attribute(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, NamespaceResolver namespaceResolver, java.lang.String value)
MarshalRecord
attribute
in class MarshalRecord
xPathFragment
- The XPathFragment contains the name and prefix
information about the XML element being ended.namespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).value
- This is the complete value for the attribute.public void attribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, java.lang.String value)
MarshalRecord
attribute
in class MarshalRecord
namespaceURI
- The namespace URI, if the attribute is not namespace
qualified the value of this parameter wil be null.localName
- The local name of the attribute.qName
- The qualified name of the attribute.value
- This is the complete value for the attribute.public void closeStartElement()
MarshalRecord
closeStartElement
in class MarshalRecord
public void endElement(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, NamespaceResolver namespaceResolver)
MarshalRecord
endElement
in class MarshalRecord
xPathFragment
- The XPathFragment contains the name and prefix
information about the XML element being ended.namespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).public java.util.HashMap getPositionalNodes()
getPositionalNodes
in class MarshalRecord
public void addGroupingElement(org.eclipse.persistence.internal.oxm.XPathNode xPathNode)
MarshalRecord
addGroupingElement
in class MarshalRecord
public void removeGroupingElement(org.eclipse.persistence.internal.oxm.XPathNode xPathNode)
MarshalRecord
removeGroupingElement
in class MarshalRecord
public void add(org.eclipse.persistence.internal.helper.DatabaseField key, java.lang.Object value)
MarshalRecord
add
in class MarshalRecord
public java.lang.Object put(org.eclipse.persistence.internal.helper.DatabaseField key, java.lang.Object value)
MarshalRecord
put
in class MarshalRecord
public void namespaceDeclarations(NamespaceResolver namespaceResolver)
MarshalRecord
namespaceDeclarations
in class MarshalRecord
namespaceResolver
- The NamespaceResolver contains the namespace
prefix and URI pairings that need to be declared.public void startPrefixMapping(java.lang.String prefix, java.lang.String namespaceURI)
MarshalRecord
startPrefixMapping
in class MarshalRecord
prefix
- The namespace prefix.namespaceURI
- The namespace URI.public void startPrefixMappings(NamespaceResolver namespaceResolver)
startPrefixMappings
in class MarshalRecord
public void endPrefixMapping(java.lang.String prefix)
MarshalRecord
endPrefixMapping
in class MarshalRecord
prefix
- The namespace prefix.public void endPrefixMappings(NamespaceResolver namespaceResolver)
endPrefixMappings
in class MarshalRecord
public void openStartElement(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, NamespaceResolver namespaceResolver)
MarshalRecord
openStartElement
in class MarshalRecord
xPathFragment
- The XPathFragment contains the name and prefix
information about the XML element being ended.namespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).public org.eclipse.persistence.internal.oxm.XPathFragment openStartGroupingElements(NamespaceResolver namespaceResolver)
MarshalRecord
openStartGroupingElements
in class MarshalRecord
namespaceResolver
- The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).public void closeStartGroupingElements(org.eclipse.persistence.internal.oxm.XPathFragment groupingFragment)
closeStartGroupingElements
in class MarshalRecord
protected void addPositionalNodes(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, NamespaceResolver namespaceResolver)
addPositionalNodes
in class MarshalRecord
public void characters(java.lang.String value)
MarshalRecord
characters
in class MarshalRecord
value
- This is the entire value of the text node.public void cdata(java.lang.String value)
MarshalRecord
cdata
in class MarshalRecord
value
- This is the value of the text to be wrappedpublic void node(org.w3c.dom.Node node, NamespaceResolver resolver)
MarshalRecord
node
in class MarshalRecord
node
- The Node to be added to the documentpublic java.lang.String getLocalName()
XMLRecord
getLocalName
in class MarshalRecord
public java.lang.String getNamespaceURI()
XMLRecord
getNamespaceURI
in class MarshalRecord
public void clear()
XMLRecord
clear
in interface java.util.Map
clear
in class MarshalRecord
public org.w3c.dom.Document getDocument()
XMLRecord
getDocument
in class MarshalRecord
public org.w3c.dom.Element getDOM()
XMLRecord
getDOM
in class MarshalRecord
public java.lang.String transformToXML()
XMLRecord
transformToXML
in class MarshalRecord
public boolean contains(java.lang.Object value)
XMLRecord
contains
in class XMLRecord
public java.lang.Object get(org.eclipse.persistence.internal.helper.DatabaseField key)
XMLRecord
get
in class XMLRecord
public java.lang.Object getIndicatingNoEntry(java.lang.String fieldName)
XMLRecord
getIndicatingNoEntry
in class XMLRecord
public java.lang.String resolveNamespacePrefix(java.lang.String prefix)
resolveNamespacePrefix
in class XMLRecord
public XMLMarshaller getMarshaller()
XMLRecord
getMarshaller
in class XMLRecord
public void setMarshaller(XMLMarshaller marshaller)
XMLRecord
setMarshaller
in class XMLRecord
public XMLUnmarshaller getUnmarshaller()
XMLRecord
getUnmarshaller
in class XMLRecord
public void setUnmarshaller(XMLUnmarshaller unmarshaller)
XMLRecord
setUnmarshaller
in class XMLRecord
public void setDocPresPolicy(DocumentPreservationPolicy policy)
setDocPresPolicy
in class XMLRecord
public DocumentPreservationPolicy getDocPresPolicy()
getDocPresPolicy
in class XMLRecord
public java.lang.Object getOwningObject()
XMLRecord
getOwningObject
in class XMLRecord
public void setOwningObject(java.lang.Object obj)
XMLRecord
setOwningObject
in class XMLRecord
public java.lang.Object getCurrentObject()
XMLRecord
getCurrentObject
in class XMLRecord
public void setCurrentObject(java.lang.Object obj)
XMLRecord
setCurrentObject
in class XMLRecord
public javax.xml.namespace.QName getLeafElementType()
XMLRecord
getLeafElementType
in class XMLRecord
public void setLeafElementType(javax.xml.namespace.QName type)
XMLRecord
setLeafElementType
in class XMLRecord
public void setNamespaceResolver(NamespaceResolver nr)
setNamespaceResolver
in class XMLRecord
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in class XMLRecord
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
getSession
in class XMLRecord
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
setSession
in class XMLRecord
public boolean isXOPPackage()
isXOPPackage
in class XMLRecord
public void setXOPPackage(boolean isXOPPackage)
setXOPPackage
in class XMLRecord
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
containsKey
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public boolean containsKey(java.lang.String fieldName)
containsKey
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public boolean containsKey(org.eclipse.persistence.internal.helper.DatabaseField key)
containsKey
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
containsValue
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.util.Enumeration elements()
elements
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.util.Set entrySet()
entrySet
in interface java.util.Map
entrySet
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object get(java.lang.String fieldName)
get
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object getValues(org.eclipse.persistence.internal.helper.DatabaseField key)
getValues
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object getValues(java.lang.String key)
getValues
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object getIndicatingNoEntry(org.eclipse.persistence.internal.helper.DatabaseField key)
getIndicatingNoEntry
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public org.eclipse.persistence.internal.helper.DatabaseField getField(org.eclipse.persistence.internal.helper.DatabaseField key)
getField
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.util.Vector getFields()
getFields
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.util.Vector getValues()
getValues
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public boolean isEmpty()
isEmpty
in interface java.util.Map
isEmpty
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public boolean hasNullValueInFields()
hasNullValueInFields
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.util.Enumeration keys()
keys
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.util.Set keySet()
keySet
in interface java.util.Map
keySet
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public void mergeFrom(org.eclipse.persistence.internal.sessions.AbstractRecord row)
mergeFrom
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object put(java.lang.Object key, java.lang.Object value) throws ValidationException
put
in interface java.util.Map
put
in class org.eclipse.persistence.internal.sessions.AbstractRecord
ValidationException
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public void putAll(java.util.Map map)
putAll
in interface java.util.Map
putAll
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object remove(java.lang.String fieldName)
remove
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.lang.Object remove(org.eclipse.persistence.internal.helper.DatabaseField key)
remove
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public void replaceAt(java.lang.Object value, int index)
replaceAt
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public void setNullValueInFields(boolean nullValueInFields)
setNullValueInFields
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public int size()
size
in interface java.util.Map
size
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public java.util.Collection values()
values
in interface java.util.Map
values
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public void beforeContainmentMarshal(java.lang.Object child)
beforeContainmentMarshal
in class MarshalRecord
public void afterContainmentMarshal(java.lang.Object parent, java.lang.Object child)
afterContainmentMarshal
in class MarshalRecord
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |