public class SystemIdMap
extends java.lang.Object
This class provides a map from element sequence numbers to System IDs: it is linked to the root node of the tree.
Note that the System ID is not necessarily the same as the Base URI. The System ID relates to the external entity in which a node was physically located; this provides a default for the Base URI, but this may be modified by specifying an xml:base attribute.
The system IDs of nodes are assumed to be immutable; they can only be set sequentially, as the nodes are being created.
Constructor and Description |
---|
SystemIdMap() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSystemId(int sequence)
Get the system ID corresponding to a given sequence number
|
void |
setSystemId(int sequence,
java.lang.String uri)
Set the system ID corresponding to a given sequence number
|
public void setSystemId(int sequence, java.lang.String uri)
sequence
- the sequence number (position in document order) of the
node whose system ID is to be set. This must be one greater
that the previous system ID.public java.lang.String getSystemId(int sequence)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.