org.gxml.xs
Interface SmRestrictedXPath<S>


public interface SmRestrictedXPath<S>


Method Summary
 SmRestrictedXPath<S> getAlternate()
          Return the next XPath in a succession of alternates.
 int getStepLength()
          Gives the number of steps for this branch of the expression
 S getStepLocalName(int index)
           
 S getStepNamespace(int index)
           
 int getUBoundStep()
          Returns the index of the highest step.
 boolean isAttribute()
          returns true if path ended with "@something"
 boolean isContextNode(int index)
          Determines whether the step specified is "." which is shorthand for "self::node()".
 boolean isRelocatable()
          returns true if path started with ".//"
 boolean isWildcardLocalName(int index)
           
 boolean isWildcardNamespace(int index)
           
 

Method Detail

isRelocatable

boolean isRelocatable()
returns true if path started with ".//"


isAttribute

boolean isAttribute()
returns true if path ended with "@something"


getStepLength

int getStepLength()
Gives the number of steps for this branch of the expression


getUBoundStep

int getUBoundStep()
Returns the index of the highest step. This depends upon the xpath expression itself.


getStepNamespace

S getStepNamespace(int index)
Parameters:
index - zero-based, must be less than getStepLength()
Returns:
a namespace URI, or null for this step

getStepLocalName

S getStepLocalName(int index)
Parameters:
index - zero-based, must be less than getStepLength()
Returns:
an unqualified name, or WILDCARD

isWildcardNamespace

boolean isWildcardNamespace(int index)

isWildcardLocalName

boolean isWildcardLocalName(int index)

isContextNode

boolean isContextNode(int index)
Determines whether the step specified is "." which is shorthand for "self::node()".
Any node will match this step.


getAlternate

SmRestrictedXPath<S> getAlternate()
Return the next XPath in a succession of alternates.



Copyright © 2009 TIBCO Software Inc. All Rights Reserved.