public class CharacterMapIndex extends java.lang.Object implements java.lang.Iterable<CharacterMap>
Constructor and Description |
---|
CharacterMapIndex() |
Modifier and Type | Method and Description |
---|---|
CharacterMapIndex |
copy()
Copy this character map index
|
CharacterMap |
getCharacterMap(StructuredQName name)
Get the character map with a given name
|
boolean |
isEmpty()
Ask if the character map index is empty
|
java.util.Iterator<CharacterMap> |
iterator()
Get an iterator over all the character maps in the index
|
CharacterMapExpander |
makeCharacterMapExpander(java.lang.String useMaps,
Receiver next,
SerializerFactory sf)
Make a CharacterMapExpander to handle the character map definitions in the serialization
properties.
|
void |
putCharacterMap(StructuredQName name,
CharacterMap charMap)
Add a character map with a given name
|
public CharacterMap getCharacterMap(StructuredQName name)
name
- the name of the required character mappublic void putCharacterMap(StructuredQName name, CharacterMap charMap)
name
- the name of the character mapcharMap
- the character map to be addedpublic java.util.Iterator<CharacterMap> iterator()
iterator
in interface java.lang.Iterable<CharacterMap>
public boolean isEmpty()
public CharacterMapIndex copy()
public CharacterMapExpander makeCharacterMapExpander(java.lang.String useMaps, Receiver next, SerializerFactory sf) throws XPathException
This method is intended for internal use only.
useMaps
- the expanded use-character-maps property: a space-separated list of names
of character maps to be used, each one expressed as an expanded-QName in Clark notation
(that is, {uri}local-name).next
- the next receiver in the pipelinesf
- the SerializerFactory - used to create a CharacterMapExpander. This callback
is provided so that a user-defined SerializerFactory can customize the result of this function,
for example by returning a subclass of the standard CharacterMapExpander.XPathException
- if a name in the useMaps property cannot be resolved to a declared
character map.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.