public class CollationMap
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CollationMap(CollationMap in)
Create a copy of a collation map
|
CollationMap(Configuration config)
Create a collation map
|
Modifier and Type | Method and Description |
---|---|
StringCollator |
getDefaultCollation()
Get the default collation
|
java.lang.String |
getDefaultCollationName()
Get the name of the default collation
|
StringCollator |
getNamedCollation(java.lang.String name)
Get the collation with a given collation name.
|
void |
setDefaultCollationName(java.lang.String name)
Set the name of the default collation
|
void |
setNamedCollation(java.lang.String absoluteURI,
StringCollator collator)
Register a named collation
|
public CollationMap(Configuration config)
config
- the Saxon configurationpublic CollationMap(CollationMap in)
in
- the collation map to be copiedpublic void setDefaultCollationName(java.lang.String name)
name
- the default collation name (should be a URI, but this is not enforced)public java.lang.String getDefaultCollationName()
public StringCollator getDefaultCollation()
public void setNamedCollation(java.lang.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(java.lang.String name)
name
- the collation name (should be an absolute URI)