public class XmlUnmarshallingContext extends UnmarshallingContext
UnmarshallingContext for an XML formatted record.
 
 The record value type is a Document.
MARSHALLING, UNMARSHALLING| Constructor and Description | 
|---|
XmlUnmarshallingContext(int groupDepth)
Constructs a new XmlUnmarshallingContext 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Element | 
findElement(XmlNode node)
Finds a child element of the current position. 
 | 
Document | 
getDocument()
Returns the XML document object model (DOM) for the current record. 
 | 
Element | 
getPosition()
Returns the current unmarshalled position in the DOM tree, or null
 if a node has not been matched yet. 
 | 
Element | 
getPreviousElement()
Returns the last parsed DOM element for a field or bean collection. 
 | 
Iteration | 
popIteration()
Pops the last  
Iteration pushed onto the stack. | 
void | 
popPosition()
Updates position to its parent (element), 
 or null if the parent element is the document itself. 
 | 
void | 
pushIteration(Iteration b)
Pushes an  
Iteration onto a stack for adjusting
 field positions and indices. | 
Element | 
pushPosition(XmlNode node)
Updates position by finding a child of the current position
 that matches a given node. 
 | 
Element | 
pushPosition(XmlNode node,
            int depth,
            boolean isGroup)
Updates position by finding a child of the current position
 that matches a given node. 
 | 
void | 
setPreviousElement(Element e)
Sets the last parsed DOM element for a field or bean collection. 
 | 
void | 
setRecordValue(Object value)
Sets the value of the record returned from the RecordReader 
 | 
Object | 
toRecordValue(Node node)
Converts a  
Node to a record value. | 
addFieldError, addRecordError, addRecordError, getLineNumber, getLocale, getMessageFactory, getMode, getRecordContext, getRecordCount, getRecordReader, hasFieldErrors, hasRecordErrors, isEOF, newMalformedRecordException, newUnsatisfiedGroupException, newUnsatisfiedRecordException, nextRecord, prepare, recordCompleted, recordException, recordSkipped, recordStarted, recordUnexpectedException, recordUnidentifiedException, setFieldText, setLocale, setMessageFactory, setRecordReader, toRecordValue, toRecordValue, validateclear, createHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, setLocalpublic XmlUnmarshallingContext(int groupDepth)
groupDepth - the maximum depth of an element mapped to a Group in the DOMpublic void setRecordValue(Object value)
UnmarshallingContextsetRecordValue in class UnmarshallingContextvalue - the record value read by a record readerRecordReaderpublic void pushIteration(Iteration b)
ParsingContextIteration onto a stack for adjusting
 field positions and indices.pushIteration in class ParsingContextb - the Iteration to pushParsingContext.popIteration()public Iteration popIteration()
ParsingContextIteration pushed onto the stack.popIteration in class ParsingContextParsingContext.pushIteration(Iteration)public Element getPreviousElement()
public void setPreviousElement(Element e)
e - the last parsed elementpublic Document getDocument()
public Element getPosition()
pushPosition(XmlNode, int, boolean), 
pushPosition(XmlNode)public Element pushPosition(XmlNode node, int depth, boolean isGroup)
public Element pushPosition(XmlNode node)
node - the XmlNode to matchgetPosition()public void popPosition()
getPosition()public Element findElement(XmlNode node)
node - the XmlNodeUtilpublic Object toRecordValue(Node node)
UnmarshallingContextNode to a record value.toRecordValue in class UnmarshallingContextnode - the Node to convert