public class ValidatingMarshalRecord extends MarshalRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidatingMarshalRecord.MarshalSAXParseException |
MarshalRecord.CycleDetectionStack<E>AbstractRecord.NoEntrynoEntry| Constructor and Description |
|---|
ValidatingMarshalRecord(MarshalRecord marshalRecord,
XMLMarshaller xmlMarshaller) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DatabaseField key,
java.lang.Object value)
INTERNAL:
Add the field-value pair to the document.
|
void |
addGroupingElement(XPathNode xPathNode)
INTERNAL:
If an XPathNode does not have an associated NodeValue then add it to the
MarshalRecord as a grouping element.
|
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(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(XPathFragment groupingFragment) |
boolean |
contains(java.lang.Object value)
PUBLIC:
Check if the value is contained in the row.
|
boolean |
containsKey(DatabaseField key)
INTERNAL:
Check if the field is contained in the row.
|
boolean |
containsKey(java.lang.Object key)
PUBLIC:
Check if the field is contained in the row.
|
boolean |
containsKey(java.lang.String fieldName)
PUBLIC:
Check if the field is contained in the row.
|
boolean |
containsValue(java.lang.Object value)
PUBLIC:
Check if the value is contained in the row.
|
void |
element(XPathFragment frag)
Receive notification of an element.
|
java.util.Enumeration |
elements()
PUBLIC:
Returns an Enumeration of the values.
|
void |
endDocument()
Recieve notification that a document is being ended.
|
void |
endElement(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()
PUBLIC:
Returns a set of the keys.
|
java.lang.Object |
get(DatabaseField key)
INTERNAL:
Retrieve the value for the field.
|
java.lang.Object |
get(java.lang.Object key)
PUBLIC:
Retrieve the value for the field name.
|
java.lang.Object |
get(java.lang.String fieldName)
PUBLIC:
Add the field-value pair to the row.
|
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.
|
DatabaseField |
getField(DatabaseField key)
INTERNAL:
Returns the row's field with the same name.
|
java.util.Vector |
getFields()
INTERNAL:
|
java.lang.Object |
getIndicatingNoEntry(DatabaseField key)
INTERNAL:
Retrieve the value for the field.
|
java.lang.Object |
getIndicatingNoEntry(java.lang.String fieldName)
INTERNAL:
Retrieve the value for the field name.
|
XPathQName |
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() |
AbstractSession |
getSession() |
XMLUnmarshaller |
getUnmarshaller()
INTERNAL:
|
java.util.Vector |
getValues()
INTERNAL:
|
java.lang.Object |
getValues(DatabaseField key) |
java.lang.Object |
getValues(java.lang.String key) |
boolean |
hasNullValueInFields()
INTERNAL:
Return true if the AbstractRecord has been marked as valid
to check the update call cache with, false otherwise.
|
boolean |
isEmpty()
PUBLIC:
Return if the row is empty.
|
boolean |
isXOPPackage() |
java.util.Enumeration |
keys()
PUBLIC:
Returns an Enumeration of the DatabaseField objects.
|
java.util.Set |
keySet()
PUBLIC:
Returns a set of the keys.
|
void |
mergeFrom(AbstractRecord row)
INTERNAL:
Merge the provided row into this row.
|
void |
namespaceDeclarations(NamespaceResolver namespaceResolver)
INTERNAL:
Add the namespace declarations to the XML document.
|
void |
node(org.w3c.dom.Node node,
NamespaceResolver resolver,
java.lang.String uri,
java.lang.String name)
Receive notification of a node.
|
void |
openStartElement(XPathFragment xPathFragment,
NamespaceResolver namespaceResolver)
Receive notification that an element is being started.
|
XPathFragment |
openStartGroupingElements(NamespaceResolver namespaceResolver)
INTERNAL:
Trigger that the grouping elements should be written.
|
java.lang.Object |
put(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)
PUBLIC:
Add the field-value pair to the row.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
PUBLIC:
Add the field-value pair to the row.
|
void |
putAll(java.util.Map map)
PUBLIC:
Add all of the elements.
|
java.lang.Object |
remove(DatabaseField key)
INTERNAL:
Remove the field key from the row.
|
java.lang.Object |
remove(java.lang.Object key)
INTERNAL:
Remove the field key from the row.
|
java.lang.Object |
remove(java.lang.String fieldName)
INTERNAL:
Remove the field key from the row.
|
void |
removeGroupingElement(XPathNode xPathNode)
INTERNAL:
|
void |
replaceAt(java.lang.Object value,
int index)
INTERNAL:
replaces the value at index with value
|
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)
INTERNAL:
Set the validForUpdateCallCacheCheck attribute to true if the row
does not contain nulls, false otherwise
|
void |
setOwningObject(java.lang.Object obj)
INTERNAL:
|
void |
setSession(AbstractSession session) |
void |
setUnmarshaller(XMLUnmarshaller unmarshaller)
INTERNAL:
|
void |
setXOPPackage(boolean isXOPPackage) |
int |
size()
PUBLIC:
Return the number of field/value pairs in the row.
|
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()
PUBLIC:
Returns an collection of the values.
|
void |
writeHeader()
INTERNAL
Writes the header, if appropriate.
|
attribute, characters, defaultNamespaceDeclaration, emptyAttribute, emptyCollection, emptyComplex, emptySimple, endCollection, getCycleDetectionStack, getGroupingElements, getTextWrapperFragment, getValueToWrite, isWrapperAsCollectionName, marshalWithoutRootElement, namespaceDeclaration, nilComplex, nilSimple, node, predicateAttribute, setGroupingElement, startCollectionattributeWithoutQName, getNamespaceSeparator, hasCustomNamespaceMapper, hasEqualNamespaceResolvers, isNamespaceAware, setCustomNamespaceMapper, setEqualNamespaceResolvers, setLeafElementTypeclone, toStringpublic ValidatingMarshalRecord(MarshalRecord marshalRecord, XMLMarshaller xmlMarshaller)
public void startDocument(java.lang.String encoding,
java.lang.String version)
MarshalRecordstartDocument in class MarshalRecordencoding - The XML document will be encoded using this encoding.version - This specifies the version of XML.public void endDocument()
MarshalRecordendDocument in class MarshalRecordpublic void element(XPathFragment frag)
MarshalRecordelement in class MarshalRecordfrag - The XPathFragment of the elementpublic void attribute(XPathFragment xPathFragment, NamespaceResolver namespaceResolver, java.lang.String value)
MarshalRecordattribute in class MarshalRecordxPathFragment - 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)
MarshalRecordattribute in class MarshalRecordnamespaceURI - 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()
MarshalRecordcloseStartElement in class MarshalRecordpublic void endElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver)
MarshalRecordendElement in class MarshalRecordxPathFragment - 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 MarshalRecordpublic void addGroupingElement(XPathNode xPathNode)
MarshalRecordaddGroupingElement in class MarshalRecordpublic void removeGroupingElement(XPathNode xPathNode)
MarshalRecordremoveGroupingElement in class MarshalRecordpublic void add(DatabaseField key, java.lang.Object value)
MarshalRecordadd in class MarshalRecordpublic java.lang.Object put(DatabaseField key, java.lang.Object value)
MarshalRecordput in class MarshalRecordpublic void namespaceDeclarations(NamespaceResolver namespaceResolver)
MarshalRecordnamespaceDeclarations in class MarshalRecordnamespaceResolver - 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)
MarshalRecordstartPrefixMapping in class MarshalRecordprefix - The namespace prefix.namespaceURI - The namespace URI.public void startPrefixMappings(NamespaceResolver namespaceResolver)
startPrefixMappings in class MarshalRecordpublic void endPrefixMapping(java.lang.String prefix)
MarshalRecordendPrefixMapping in class MarshalRecordprefix - The namespace prefix.public void endPrefixMappings(NamespaceResolver namespaceResolver)
endPrefixMappings in class MarshalRecordpublic void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver)
MarshalRecordopenStartElement in class MarshalRecordxPathFragment - 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 XPathFragment openStartGroupingElements(NamespaceResolver namespaceResolver)
MarshalRecordopenStartGroupingElements in class MarshalRecordnamespaceResolver - The NamespaceResolver can be used to resolve the
namespace URI for the namespace prefix held by the XPathFragment (if
required).public void closeStartGroupingElements(XPathFragment groupingFragment)
closeStartGroupingElements in class MarshalRecordpublic void characters(java.lang.String value)
MarshalRecordcharacters in class MarshalRecordvalue - This is the entire value of the text node.public void cdata(java.lang.String value)
MarshalRecordcdata in class MarshalRecordvalue - This is the value of the text to be wrappedpublic void node(org.w3c.dom.Node node,
NamespaceResolver resolver,
java.lang.String uri,
java.lang.String name)
MarshalRecordnode in class MarshalRecordnode - The Node to be added to the documentname - replacement root namespace for the node
namespace URI/prefix of the nodepublic java.lang.String getLocalName()
XMLRecordgetLocalName in class MarshalRecordpublic java.lang.String getNamespaceURI()
XMLRecordgetNamespaceURI in class MarshalRecordpublic void clear()
XMLRecordclear in interface java.util.Mapclear in class MarshalRecordpublic org.w3c.dom.Document getDocument()
XMLRecordgetDocument in class MarshalRecordpublic org.w3c.dom.Element getDOM()
XMLRecordgetDOM in class MarshalRecordpublic java.lang.String transformToXML()
XMLRecordtransformToXML in class MarshalRecordpublic boolean contains(java.lang.Object value)
XMLRecordpublic java.lang.Object get(DatabaseField key)
XMLRecordpublic java.lang.Object getIndicatingNoEntry(java.lang.String fieldName)
XMLRecordgetIndicatingNoEntry in class XMLRecordpublic java.lang.String resolveNamespacePrefix(java.lang.String prefix)
resolveNamespacePrefix in class XMLRecordpublic XMLMarshaller getMarshaller()
XMLRecordgetMarshaller in class XMLRecordpublic void setMarshaller(XMLMarshaller marshaller)
XMLRecordsetMarshaller in class XMLRecordpublic XMLUnmarshaller getUnmarshaller()
XMLRecordgetUnmarshaller in class XMLRecordpublic void setUnmarshaller(XMLUnmarshaller unmarshaller)
XMLRecordsetUnmarshaller in class XMLRecordpublic void setDocPresPolicy(DocumentPreservationPolicy policy)
setDocPresPolicy in class XMLRecordpublic DocumentPreservationPolicy getDocPresPolicy()
getDocPresPolicy in class XMLRecordpublic java.lang.Object getOwningObject()
XMLRecordgetOwningObject in class XMLRecordpublic void setOwningObject(java.lang.Object obj)
XMLRecordsetOwningObject in class XMLRecordpublic java.lang.Object getCurrentObject()
XMLRecordgetCurrentObject in class XMLRecordpublic void setCurrentObject(java.lang.Object obj)
XMLRecordsetCurrentObject in class XMLRecordpublic XPathQName getLeafElementType()
XMLRecordgetLeafElementType in class XMLRecordpublic void setLeafElementType(javax.xml.namespace.QName type)
XMLRecordsetLeafElementType in class XMLRecordpublic void setNamespaceResolver(NamespaceResolver nr)
setNamespaceResolver in class XMLRecordpublic NamespaceResolver getNamespaceResolver()
getNamespaceResolver in class XMLRecordpublic AbstractSession getSession()
getSession in class XMLRecordpublic void setSession(AbstractSession session)
setSession in class MarshalRecordpublic boolean isXOPPackage()
isXOPPackage in class XMLRecordpublic void setXOPPackage(boolean isXOPPackage)
setXOPPackage in class XMLRecordpublic boolean containsKey(java.lang.Object key)
AbstractRecordcontainsKey in interface java.util.MapcontainsKey in class AbstractRecordpublic boolean containsKey(java.lang.String fieldName)
AbstractRecordcontainsKey in class AbstractRecordpublic boolean containsKey(DatabaseField key)
AbstractRecordcontainsKey in class AbstractRecordpublic boolean containsValue(java.lang.Object value)
AbstractRecordcontainsValue in interface java.util.MapcontainsValue in class AbstractRecordpublic java.util.Enumeration elements()
AbstractRecordelements in class AbstractRecordpublic java.util.Set entrySet()
AbstractRecordentrySet in interface java.util.MapentrySet in class AbstractRecordpublic java.lang.Object get(java.lang.Object key)
AbstractRecordget in interface java.util.Mapget in class AbstractRecordpublic java.lang.Object get(java.lang.String fieldName)
XMLRecordpublic java.lang.Object getValues(DatabaseField key)
getValues in class AbstractRecordpublic java.lang.Object getValues(java.lang.String key)
getValues in class AbstractRecordpublic java.lang.Object getIndicatingNoEntry(DatabaseField key)
AbstractRecordgetIndicatingNoEntry in class AbstractRecordpublic DatabaseField getField(DatabaseField key)
AbstractRecordgetField in class AbstractRecordpublic java.util.Vector getFields()
AbstractRecordgetFields in class AbstractRecordpublic java.util.Vector getValues()
AbstractRecordgetValues in class AbstractRecordpublic boolean isEmpty()
AbstractRecordisEmpty in interface java.util.MapisEmpty in class AbstractRecordpublic boolean hasNullValueInFields()
AbstractRecordhasNullValueInFields in class AbstractRecordpublic java.util.Enumeration keys()
AbstractRecordkeys in class AbstractRecordpublic java.util.Set keySet()
AbstractRecordkeySet in interface java.util.MapkeySet in class AbstractRecordpublic void mergeFrom(AbstractRecord row)
AbstractRecordmergeFrom in class AbstractRecordpublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
throws ValidationException
AbstractRecordput in interface java.util.Mapput in class AbstractRecordValidationExceptionpublic java.lang.Object put(java.lang.String key,
java.lang.Object value)
XMLRecordpublic void putAll(java.util.Map map)
AbstractRecordputAll in interface java.util.MapputAll in class AbstractRecordpublic java.lang.Object remove(java.lang.Object key)
AbstractRecordremove in interface java.util.Mapremove in class AbstractRecordpublic java.lang.Object remove(java.lang.String fieldName)
AbstractRecordremove in class AbstractRecordpublic java.lang.Object remove(DatabaseField key)
AbstractRecordremove in class AbstractRecordpublic void replaceAt(java.lang.Object value,
int index)
AbstractRecordreplaceAt in class AbstractRecordpublic void setNullValueInFields(boolean nullValueInFields)
AbstractRecordsetNullValueInFields in class AbstractRecordpublic int size()
AbstractRecordsize in interface java.util.Mapsize in class AbstractRecordpublic java.util.Collection values()
AbstractRecordvalues in interface java.util.Mapvalues in class AbstractRecordpublic void beforeContainmentMarshal(java.lang.Object child)
beforeContainmentMarshal in class MarshalRecordpublic void afterContainmentMarshal(java.lang.Object parent,
java.lang.Object child)
afterContainmentMarshal in class MarshalRecordpublic void writeHeader()
MarshalRecordwriteHeader in class MarshalRecordEclipseLink 2.4.2, "build v20130514-5956486" API Reference