public class EmptyNamespaceDeclarationList extends Object implements NamespaceDeclarations
| Modifier and Type | Method and Description |
|---|---|
static EmptyNamespaceDeclarationList |
getInstance()
Get the singular instance of this class
|
int |
getNamespaceCode(int index)
Get the n'th declaration in the list in the form of a namespace code.
|
int[] |
getNamespaceCodes(int[] buffer)
Get all the namespace codes, as an array.
|
int |
getNumberOfNamespaces()
Get the number of declarations (and undeclarations) in this list.
|
String |
getPrefix(int index)
Get the prefix of the n'th declaration (or undeclaration) in the list,
counting from zero.
|
String |
getURI(int index)
Get the namespace URI of the n'th declaration (or undeclaration) in the list,
counting from zero.
|
public static EmptyNamespaceDeclarationList getInstance()
public int getNamespaceCode(int index)
getNamespaceCode in interface NamespaceDeclarationsindex - the index identifying which declaration is required.IndexOutOfBoundsException - if the index is out of range.NamePool.getPrefixFromNamespaceCode(int),
NamePool.getURIFromNamespaceCode(int)public int[] getNamespaceCodes(int[] buffer)
getNamespaceCodes in interface NamespaceDeclarationsbuffer - a sacrificial array that the method is free to use to contain the result.
May be null.public int getNumberOfNamespaces()
getNumberOfNamespaces in interface NamespaceDeclarationspublic String getPrefix(int index)
getPrefix in interface NamespaceDeclarationsindex - the index identifying which declaration is required.IndexOutOfBoundsException - if the index is out of range.public String getURI(int index)
getURI in interface NamespaceDeclarationsindex - the index identifying which declaration is required.IndexOutOfBoundsException - if the index is out of range.