gnu.xquery.util

Class StringValue

Implemented Interfaces:
Named

public class StringValue
extends Procedure1

Field Summary

static StringValue
string
static StringValue
stringValue

Constructor Summary

StringValue(String name)

Method Summary

Object
apply1(Object node)
static Object
compare(Object val1, Object val2, NamedCollator coll)
This implements the XQuery fn:compare function.
static String
concat$V(Object[] args)
static Object
contains(Object str, Object contain)
static Object
endsWith(Object str, Object with)
static Object
lowerCase(Object node)
static Object
startsWith(Object str, Object with)
static Object
stringJoin(Object strseq, Object join)
static Object
stringLength(Object str)
static Object
stringPad(Object str, Object padcount)
static String
stringValue(Object node)
static void
stringValue(Object node, StringBuffer sbuf)
static Object
substring(Object str, Object start)
static Object
substring(Object str, Object start, Object length)
static Object
substringAfter(Object str, Object find)
static Object
substringBefore(Object str, Object find)
static Object
translate(Object str, Object map, Object trans)
static Object
upperCase(Object node)

Methods inherited from class gnu.mapping.Procedure1

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Field Details

string

public static final StringValue string

stringValue

public static final StringValue stringValue

Constructor Details

StringValue

public StringValue(String name)

Method Details

apply1

public Object apply1(Object node)
Overrides:
apply1 in interface Procedure1

compare

public static Object compare(Object val1,
                             Object val2,
                             NamedCollator coll)
This implements the XQuery fn:compare function.

concat$V

public static String concat$V(Object[] args)

contains

public static Object contains(Object str,
                              Object contain)

endsWith

public static Object endsWith(Object str,
                              Object with)

lowerCase

public static Object lowerCase(Object node)

startsWith

public static Object startsWith(Object str,
                                Object with)

stringJoin

public static Object stringJoin(Object strseq,
                                Object join)

stringLength

public static Object stringLength(Object str)

stringPad

public static Object stringPad(Object str,
                               Object padcount)

stringValue

public static String stringValue(Object node)

stringValue

public static void stringValue(Object node,
                               StringBuffer sbuf)

substring

public static Object substring(Object str,
                               Object start)

substring

public static Object substring(Object str,
                               Object start,
                               Object length)

substringAfter

public static Object substringAfter(Object str,
                                    Object find)

substringBefore

public static Object substringBefore(Object str,
                                     Object find)

translate

public static Object translate(Object str,
                               Object map,
                               Object trans)

upperCase

public static Object upperCase(Object node)