* @throws UnsupportedAxisException if the semantics of the parent axis are
* not supported by this object model
*/
public Iterator getParentAxisIterator(Object contextNode) throws UnsupportedAxisException {
if (contextNode instanceof OMNode) {
return new SingleObjectIterator(((OMNode) contextNode).getParent());
} else if (contextNode instanceof OMNamespaceEx) {
return new SingleObjectIterator(
((OMNamespaceEx) contextNode).getParent());
} else if (contextNode instanceof OMAttributeEx) {
return new SingleObjectIterator(
((OMAttributeEx) contextNode).getParent());
}
return JaxenConstants.EMPTY_ITERATOR;
}