|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.util.Utils
public class Utils
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static java.util.Vector |
addToVector(java.util.Vector from,
java.util.Vector to)
Add the contents of one vector to the second - needed for CLDC |
static int |
compareComparator(int i1,
int i2)
This method is for helping to retain the order of comparators and compareTypes |
static java.lang.String |
expandCharRefs(java.lang.String res)
|
static java.util.Vector |
getCombinations(java.util.Vector combinations,
java.util.Vector cur,
java.util.Vector vectors,
int len)
Get the cartesian product of values |
static java.lang.String |
getEncodedCharacter(char c)
For character encoding in URL/URI/IRI |
static java.lang.String |
getSimpleClassName(java.lang.String name)
|
static boolean |
isLetter(char ch)
|
static boolean |
isLowerCase(java.lang.String text)
|
static boolean |
isUpperCase(java.lang.String text)
|
static boolean |
isUpperCaseLetter(int chr)
|
static boolean |
isWhiteSpace(char cToCheck)
|
static java.lang.String |
normalizeString(java.lang.String res)
Implementation of F&O normalize-string function - remove whitespace at beginning and end + reduce whitespace in the middle to one |
static java.lang.String |
normalizeStringContent(java.lang.String res,
boolean isIdAttr)
Implementation of normalization in attributes and element content - remove whitespace at beginning and end + reduce whitespace in the middle to one, but only translate xD,x9 etc. |
static java.lang.String |
readString(java.io.InputStream is)
|
static java.lang.String |
replaceAll(java.lang.String original,
java.lang.String oldExpr,
java.lang.String replacement)
|
static boolean |
sameCase(java.lang.String text,
java.lang.String text2)
|
static java.lang.String[] |
split(java.lang.String source,
java.lang.String delimeter)
Splits a string into an array of Strings |
static java.lang.String[] |
split(java.lang.String source,
java.lang.String[] delimiters)
Splits a string into an array of Strings |
static java.lang.String |
stripLeadingWhitespace(java.lang.String val)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static java.lang.String getSimpleClassName(java.lang.String name)
name
- - full class name
public static java.lang.String[] split(java.lang.String source, java.lang.String delimeter)
source
- The source stringdelimeter
- The delimeter String, that seperates the parts of the sequence
public static java.lang.String readString(java.io.InputStream is)
public static java.lang.String[] split(java.lang.String source, java.lang.String[] delimiters)
source
- The source stringdelimiters
- The delimiters, that seperate the parts of the sequence
public static java.lang.String replaceAll(java.lang.String original, java.lang.String oldExpr, java.lang.String replacement)
public static java.lang.String expandCharRefs(java.lang.String res)
public static java.lang.String normalizeStringContent(java.lang.String res, boolean isIdAttr)
res
- String to be normalized
public static java.lang.String normalizeString(java.lang.String res)
res
- String to be normalized
public static boolean isWhiteSpace(char cToCheck)
public static final boolean isLetter(char ch)
public static boolean isLowerCase(java.lang.String text)
public static boolean isUpperCase(java.lang.String text)
public static boolean isUpperCaseLetter(int chr)
public static boolean sameCase(java.lang.String text, java.lang.String text2)
public static java.lang.String stripLeadingWhitespace(java.lang.String val)
public static java.lang.String getEncodedCharacter(char c)
public static int compareComparator(int i1, int i2)
i1
- i2
-
public static java.util.Vector getCombinations(java.util.Vector combinations, java.util.Vector cur, java.util.Vector vectors, int len)
combinations
- Helper Vector, usually empty at top-level invocationcur
- Helper Vector, usually empty at top-level invocationvectors
- Items that should be combinedlen
- Length of items to look at
public static java.util.Vector addToVector(java.util.Vector from, java.util.Vector to) throws MXQueryException
from
- to
-
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |