clark.xpath
Class Funct

java.lang.Object
  |
  +--clark.xpath.Funct

public class Funct
extends java.lang.Object

Class from functions used in tokenization and analysis of XPath expresion.


Constructor Summary
Funct()
           
 
Method Summary
static boolean checkBrackets(java.lang.String str, int from, int to)
          Checks if in the substring between 'from' and 'to' the brackets are correctly set.
static boolean checkname(w3c.dom.Node nod)
          Returns ture if the node is namespace node.
static java.util.LinkedList clear(java.util.LinkedList list)
          Clears repeated elements in LinkedList.
static java.lang.String expandVariables(java.lang.String str)
           
static boolean filterE(java.lang.String str)
          Returns true if the string is Filter Expresion.
static int getFirst(java.lang.String str, java.lang.String sep)
          Gets the first token in string separated by separator.
static java.lang.StringBuffer returnSkipSymbol(java.lang.String str)
           
static java.util.LinkedList toke(java.lang.String str, java.lang.String razdelitel)
          Tokenizes the string with specified seaparator.
static java.lang.StringBuffer transformVariableContent(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Funct

public Funct()
Method Detail

expandVariables

public static java.lang.String expandVariables(java.lang.String str)
                                        throws ParseException
ParseException

transformVariableContent

public static java.lang.StringBuffer transformVariableContent(java.lang.String str)

returnSkipSymbol

public static java.lang.StringBuffer returnSkipSymbol(java.lang.String str)

clear

public static java.util.LinkedList clear(java.util.LinkedList list)
Clears repeated elements in LinkedList.

Parameters:
list - The list to filter.
Returns:
The result list.

getFirst

public static int getFirst(java.lang.String str,
                           java.lang.String sep)
                    throws ParseException
Gets the first token in string separated by separator.

ParseException

checkBrackets

public static boolean checkBrackets(java.lang.String str,
                                    int from,
                                    int to)
                             throws ParseException
Checks if in the substring between 'from' and 'to' the brackets are correctly set.

ParseException

filterE

public static boolean filterE(java.lang.String str)
                       throws ParseException
Returns true if the string is Filter Expresion.

ParseException

toke

public static java.util.LinkedList toke(java.lang.String str,
                                        java.lang.String razdelitel)
                                 throws ParseException
Tokenizes the string with specified seaparator.

Parameters:
str - The string for tokenization.
razdelitel - The separator.
Returns:
LinkedList from tokens.
ParseException

checkname

public static boolean checkname(w3c.dom.Node nod)
Returns ture if the node is namespace node.