|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.CollationMap
public class CollationMap
This object maps collation URIs to collations. Logically this function is part of the static context, but it is often needed dynamically, so it is defined as a separate component that can safely be retained at run-time.
Constructor Summary | |
---|---|
CollationMap(CollationMap in)
Create a copy of a collation map |
|
CollationMap(Configuration config)
Create a collation map |
Method Summary | |
---|---|
StringCollator |
getDefaultCollation()
Get the default collation |
String |
getDefaultCollationName()
Get the name of the default collation |
StringCollator |
getNamedCollation(String name)
Get the collation with a given collation name. |
void |
setDefaultCollationName(String name)
Set the name of the default collation |
void |
setNamedCollation(String absoluteURI,
StringCollator collator)
Register a named collation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollationMap(Configuration config)
config
- the Saxon configurationpublic CollationMap(CollationMap in)
in
- the collation map to be copiedMethod Detail |
---|
public void setDefaultCollationName(String name)
name
- the default collation name (should be a URI, but this is not enforced)
NullPointerException
- if the supplied name is nullpublic String getDefaultCollationName()
public StringCollator getDefaultCollation()
public void setNamedCollation(String absoluteURI, StringCollator collator)
absoluteURI
- the name of the collation. This should be an absolute URI, but
this is not enforcedcollator
- the StringCollator that implements the collating rulespublic StringCollator getNamedCollation(String name)
name
- the collation name (should be an absolute URI)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |