|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.util.Collations
public class Collations
Utility methods dealing with collations.
Field Summary | |
---|---|
static String |
CODEPOINT
The default unicode codepoint collation URI as defined by the XQuery spec. |
static String |
CODEPOINT_SHORT
Short string to select the default codepoint collation |
static String |
EXIST_COLLATION_URI
The URI used to select collations in eXist. |
Constructor Summary | |
---|---|
Collations()
|
Method Summary | |
---|---|
static int |
compare(Collator collator,
String s1,
String s2)
|
static boolean |
contains(Collator collator,
String s1,
String s2)
|
static boolean |
endsWith(Collator collator,
String s1,
String s2)
|
static boolean |
equals(Collator collator,
String s1,
String s2)
|
static Collator |
getCollationFromURI(XQueryContext context,
String uri)
Get a Comparator from the specified URI. |
static int |
indexOf(Collator collator,
String s1,
String s2)
|
static boolean |
startsWith(Collator collator,
String s1,
String s2)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CODEPOINT
public static final String CODEPOINT_SHORT
public static final String EXIST_COLLATION_URI
Constructor Detail |
---|
public Collations()
Method Detail |
---|
public static final Collator getCollationFromURI(XQueryContext context, String uri) throws XPathException
Comparator
from the specified URI.
The original code is from saxon (@linkplain http://saxon.sf.net).
uri
-
XPathException
public static final boolean equals(Collator collator, String s1, String s2)
public static final int compare(Collator collator, String s1, String s2)
public static final boolean startsWith(Collator collator, String s1, String s2)
public static final boolean endsWith(Collator collator, String s1, String s2)
public static final boolean contains(Collator collator, String s1, String s2)
public static final int indexOf(Collator collator, String s1, String s2)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |