com.jaxfront.core.xpath
Class XPNodeWalker

java.lang.Object
  extended by com.jaxfront.core.xpath.XPNodeWalker

public class XPNodeWalker
extends java.lang.Object


Constructor Summary
XPNodeWalker()
           
XPNodeWalker(java.util.Map nsMappings)
           
 
Method Summary
 java.util.ArrayList createXPathNodes(java.lang.String xpath, Type start)
           
 void getAllChilds(Type aStartType, XPNode xNode, java.util.List result, boolean traverseOnlyEditingType, boolean includeEditingType, boolean listTypeIncluded, boolean onlySerializable, boolean isStart, boolean choosenOnly)
           
 java.lang.String getElementNamespaceUri(Type aNodeType, boolean defaultStepIsPrefixed)
           
 java.util.Map getNSMappings()
           
 void handleExpressionNode(Type start, XPNode xNode, boolean traverseOnlyEditingType, boolean edTypeIncluded, boolean listTypeIncluded, java.util.ArrayList result, boolean onlySerializable, boolean choosenOnly)
           
 void handleGetAllNode(Type start, XPNode xNode, boolean traverseOnlyEditingType, boolean edTypeIncluded, boolean listTypeIncluded, java.util.ArrayList result, boolean onlySerializable, boolean isStart, boolean choosenOnly)
           
 boolean handleNamedNode(Type start, XPNode xNode, boolean traverseOnlyEditingType, boolean edTypeIncluded, boolean listTypeIncluded, java.util.ArrayList result, boolean onlySerializable, boolean choosenOnly)
           
 Type handleParentNode(Type start, boolean traverseOnlyEditingType, boolean ltIncluded)
           
static Type handleSameNode(Type start)
           
static void main(java.lang.String[] args)
           
 java.util.List walkTypeXpath(java.lang.String xpath, Type start, boolean traverseOnlyEditingType, boolean edTypeIncluded, boolean listTypeIncluded, boolean onlySerializable, boolean checkExp, boolean choosenOnly)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPNodeWalker

public XPNodeWalker()

XPNodeWalker

public XPNodeWalker(java.util.Map nsMappings)
Method Detail

createXPathNodes

public java.util.ArrayList createXPathNodes(java.lang.String xpath,
                                            Type start)
                                     throws XPathError
Throws:
XPathError

getAllChilds

public void getAllChilds(Type aStartType,
                         XPNode xNode,
                         java.util.List result,
                         boolean traverseOnlyEditingType,
                         boolean includeEditingType,
                         boolean listTypeIncluded,
                         boolean onlySerializable,
                         boolean isStart,
                         boolean choosenOnly)

getElementNamespaceUri

public java.lang.String getElementNamespaceUri(Type aNodeType,
                                               boolean defaultStepIsPrefixed)

getNSMappings

public java.util.Map getNSMappings()

handleExpressionNode

public void handleExpressionNode(Type start,
                                 XPNode xNode,
                                 boolean traverseOnlyEditingType,
                                 boolean edTypeIncluded,
                                 boolean listTypeIncluded,
                                 java.util.ArrayList result,
                                 boolean onlySerializable,
                                 boolean choosenOnly)

handleGetAllNode

public void handleGetAllNode(Type start,
                             XPNode xNode,
                             boolean traverseOnlyEditingType,
                             boolean edTypeIncluded,
                             boolean listTypeIncluded,
                             java.util.ArrayList result,
                             boolean onlySerializable,
                             boolean isStart,
                             boolean choosenOnly)

handleNamedNode

public boolean handleNamedNode(Type start,
                               XPNode xNode,
                               boolean traverseOnlyEditingType,
                               boolean edTypeIncluded,
                               boolean listTypeIncluded,
                               java.util.ArrayList result,
                               boolean onlySerializable,
                               boolean choosenOnly)

handleParentNode

public Type handleParentNode(Type start,
                             boolean traverseOnlyEditingType,
                             boolean ltIncluded)

handleSameNode

public static Type handleSameNode(Type start)

main

public static void main(java.lang.String[] args)
                 throws SchemaCreationException,
                        java.net.MalformedURLException,
                        DocumentCreationException,
                        XPathError
Throws:
SchemaCreationException
java.net.MalformedURLException
DocumentCreationException
XPathError

walkTypeXpath

public java.util.List walkTypeXpath(java.lang.String xpath,
                                    Type start,
                                    boolean traverseOnlyEditingType,
                                    boolean edTypeIncluded,
                                    boolean listTypeIncluded,
                                    boolean onlySerializable,
                                    boolean checkExp,
                                    boolean choosenOnly)
                             throws XPathError
Throws:
XPathError