1 package org.jaxen; 2 3 63 64 import java.io.Serializable ; 65 import java.util.Iterator ; 66 67 import org.jaxen.saxpath.SAXPathException; 68 69 85 public interface Navigator extends Serializable 86 { 87 91 101 Iterator getChildAxisIterator(Object contextNode) 102 throws UnsupportedAxisException; 103 104 114 Iterator getDescendantAxisIterator(Object contextNode) 115 throws UnsupportedAxisException; 116 117 126 Iterator getParentAxisIterator(Object contextNode) 127 throws UnsupportedAxisException; 128 129 139 Iterator getAncestorAxisIterator(Object contextNode) 140 throws UnsupportedAxisException; 141 142 152 Iterator getFollowingSiblingAxisIterator(Object contextNode) 153 throws UnsupportedAxisException; 154 155 165 Iterator getPrecedingSiblingAxisIterator(Object contextNode) 166 throws UnsupportedAxisException; 167 168 178 Iterator getFollowingAxisIterator(Object contextNode) 179 throws UnsupportedAxisException; 180 181 190 Iterator getPrecedingAxisIterator(Object contextNode) 191 throws UnsupportedAxisException; 192 193 203 Iterator getAttributeAxisIterator(Object contextNode) 204 throws UnsupportedAxisException; 205 206 216 Iterator getNamespaceAxisIterator(Object contextNode) 217 throws UnsupportedAxisException; 218 219 229 Iterator getSelfAxisIterator(Object contextNode) 230 throws UnsupportedAxisException; 231 232 242 Iterator getDescendantOrSelfAxisIterator(Object contextNode) 243 throws UnsupportedAxisException; 244 245 255 Iterator getAncestorOrSelfAxisIterator(Object contextNode) 256 throws UnsupportedAxisException; 257 258 262 270 Object getDocument(String uri) 271 throws FunctionCallException; 272 273 281 Object getDocumentNode(Object contextNode); 282 283 300 Object getParentNode(Object contextNode) 301 throws UnsupportedAxisException; 302 303 309 String getElementNamespaceUri(Object element); 310 311 317 String getElementName(Object element); 318 319 325 String getElementQName(Object element); 326 327 333 String getAttributeNamespaceUri(Object attr); 334 335 341 String getAttributeName(Object attr); 342 343 349 String getAttributeQName(Object attr); 350 351 357 String getProcessingInstructionTarget(Object pi); 358 359 365 String getProcessingInstructionData(Object pi); 366 367 371 379 boolean isDocument(Object object); 380 381 388 boolean isElement(Object object); 389 390 397 boolean isAttribute(Object object); 398 399 406 boolean isNamespace(Object object); 407 408 415 boolean isComment(Object object); 416 417 424 boolean isText(Object object); 425 426 433 boolean isProcessingInstruction(Object object); 434 435 439 447 String getCommentStringValue(Object comment); 448 449 457 String getElementStringValue(Object element); 458 459 467 String getAttributeStringValue(Object attr); 468 469 477 String getNamespaceStringValue(Object ns); 478 479 487 String getTextStringValue(Object text); 488 489 493 499 String getNamespacePrefix(Object ns); 500 501 502 518 String translateNamespacePrefixToUri(String prefix, 519 Object element); 520 521 533 XPath parseXPath(String xpath) throws SAXPathException; 534 535 550 Object getElementById(Object contextNode, 551 String elementId); 552 553 561 short getNodeType(Object node); 562 } 563 | Popular Tags |