public class DiagnosticNamePool extends NamePool
NamePool.NamePoolLimitException| Modifier and Type | Field and Description |
|---|---|
PrintStream |
printStream |
FP_MASK, MAX_PREFIXES_PER_URI, USER_DEFINED_MASK| Constructor and Description |
|---|
DiagnosticNamePool() |
| Modifier and Type | Method and Description |
|---|---|
int |
allocate(String prefix,
String uri,
String localName)
Allocate a name from the pool, or a new Name if there is not a matching one there
|
short |
allocateCodeForURI(String uri)
Allocate the uri code for a given URI; create one if not found
|
int |
allocateNamespaceCode(String prefix,
String uri)
Allocate the namespace code for a namespace prefix/URI pair.
|
allocateClarkName, allocateLexicalQName, copy, diagnosticDump, getClarkName, getClientData, getCodeForPrefix, getCodeForURI, getDisplayName, getFingerprint, getLocalName, getNamespaceCode, getNamespaceCode, getPrefix, getPrefixFromNamespaceCode, getPrefixIndex, getURI, getURICode, getURIFromNamespaceCode, getURIFromURICode, isPrefixed, parseClarkName, setClientData, statistics, suggestPrefixForURIpublic PrintStream printStream
public int allocateNamespaceCode(String prefix, String uri)
NamePoolallocateNamespaceCode in class NamePoolprefix - the namespace prefixuri - the namespace URIpublic short allocateCodeForURI(String uri)
NamePoolallocateCodeForURI in class NamePooluri - The namespace URI. Supply "" or null for the "null namespace"public int allocate(String prefix, String uri, String localName)
NamePoolallocate in class NamePoolprefix - the namespace prefix. Use "" for the null prefix, representing the absent namespaceuri - the namespace URI. Use "" or null for the non-namespace.localName - the local part of the name