public class UcaCollatorUsingJava extends Object implements SubstringMatcher
| Modifier and Type | Class and Description |
|---|---|
class |
UcaCollatorUsingJava.Identical |
class |
UcaCollatorUsingJava.Primary |
class |
UcaCollatorUsingJava.Secondary |
static interface |
UcaCollatorUsingJava.Strength |
class |
UcaCollatorUsingJava.Tertiary |
| Constructor and Description |
|---|
UcaCollatorUsingJava(String uri) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String source,
String target) |
boolean |
comparesEqual(CharSequence s1,
CharSequence s2)
Compare two strings for equality.
|
int |
compareStrings(CharSequence o1,
CharSequence o2)
Compare two strings
|
boolean |
contains(String s1,
String s2)
Test whether one string contains another, according to the rules
of the XPath contains() function
|
boolean |
endsWith(String s1,
String s2)
Test whether one string ends with another, according to the rules
of the XPath ends-with() function
|
AtomicMatchKey |
getCollationKey(CharSequence s)
Get a collation key for a String.
|
String |
getCollationURI()
Get the collation URI.
|
CollationKey |
getJavaCollationKey(String source) |
RuleBasedCollator |
getRuleBasedCollator() |
int |
getStrength() |
int |
hashCode() |
void |
setProps(Properties props)
Set the properties for the UCA collation
|
void |
setStrength(int newStrength) |
boolean |
startsWith(String s1,
String s2)
Test whether one string starts with another, according to the rules
of the XPath starts-with() function
|
String |
substringAfter(String s1,
String s2)
Return the part of a string after a given substring, according to the rules
of the XPath substring-after() function
|
String |
substringBefore(String s1,
String s2)
Return the part of a string before a given substring, according to the rules
of the XPath substring-before() function
|
public UcaCollatorUsingJava(String uri) throws XPathException
XPathExceptionpublic RuleBasedCollator getRuleBasedCollator()
public CollationKey getJavaCollationKey(String source)
public void setProps(Properties props) throws XPathException
props - the set of properties parsed from the UCA parametersXPathExceptionpublic void setStrength(int newStrength)
public int getStrength()
public boolean comparesEqual(CharSequence s1, CharSequence s2)
StringCollatorcomparesEqual in interface StringCollators1 - the first strings2 - the second stringpublic String getCollationURI()
StringCollatorgetCollationURI in interface StringCollatorpublic int compareStrings(CharSequence o1, CharSequence o2)
StringCollatorcompareStrings in interface StringCollatoro1 - the first stringo2 - the second stringpublic AtomicMatchKey getCollationKey(CharSequence s)
StringCollatorgetCollationKey in interface StringCollators - the string whose collation key is requiredpublic boolean contains(String s1, String s2)
contains in interface SubstringMatchers1 - the containing strings2 - the contained stringpublic boolean endsWith(String s1, String s2)
endsWith in interface SubstringMatchers1 - the containing strings2 - the contained stringpublic boolean startsWith(String s1, String s2)
startsWith in interface SubstringMatchers1 - the containing strings2 - the contained stringpublic String substringAfter(String s1, String s2)
substringAfter in interface SubstringMatchers1 - the containing strings2 - the contained stringpublic String substringBefore(String s1, String s2)
substringBefore in interface SubstringMatchers1 - the containing strings2 - the contained stringCopyright (c) 2004-2017 Saxonica Limited. All rights reserved.