com.openharbor.beck.unmarshal
Interface DocumentReferenceUnmarshaller
- All Superinterfaces:
- Unmarshaller
- All Known Implementing Classes:
- XPathUnmarshaller
- public interface DocumentReferenceUnmarshaller
- extends Unmarshaller
An Unmarshaller that postpones evaluation of its value until
after the rest of the XML document has been copied to Java.
Method Summary |
void |
resolve(OHXPathProcessor resolver,
java.lang.Object root)
Either resolve this reference or conclude that it can't be resolved. |
Methods inherited from interface com.openharbor.beck.unmarshal.Unmarshaller |
addChild, addValue, disengage, endObject, engage, getChildClass, getObject, getObjectClass, getParent, getSource, getSourceXPath, getXMLContext, setObject, setObjectClass, setXMLContext, startObject |
UNRESOLVED
public static final XMLWriter.MapKey UNRESOLVED
resolve
public void resolve(OHXPathProcessor resolver,
java.lang.Object root)
throws java.lang.Exception
- Either resolve this reference or conclude that it can't be resolved.
If the reference is resolved, setObject(referent); otherwise setParent(null).
The caller will subsequently pass this Unmarshaller to MapFromXML.recycle.
- Parameters:
resolver
- an XPath context with the same mapping etc. that were used
to copy the root object from XML.root
- the object that was copied from the XML root element.
- Throws:
java.lang.Exception
- something went wrong