public class NamespaceResolverAsDeclarations extends java.lang.Object implements NamespaceDeclarations
?????? |
---|
NamespaceResolverAsDeclarations(NamePool pool,
NamespaceResolver resolver) |
?????? | ????? |
---|---|
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.
|
java.lang.String |
getPrefix(int index)
Get the prefix of the n'th declaration (or undeclaration) in the list,
counting from zero.
|
java.lang.String |
getURI(int index)
Get the namespace URI of the n'th declaration (or undeclaration) in the list,
counting from zero.
|
public NamespaceResolverAsDeclarations(NamePool pool, NamespaceResolver resolver)
public int getNumberOfNamespaces()
getNumberOfNamespaces
???? NamespaceDeclarations
public java.lang.String getPrefix(int index)
getPrefix
???? NamespaceDeclarations
index
- the index identifying which declaration is required.java.lang.IndexOutOfBoundsException
- if the index is out of range.public java.lang.String getURI(int index)
getURI
???? NamespaceDeclarations
index
- the index identifying which declaration is required.java.lang.IndexOutOfBoundsException
- if the index is out of range.public int getNamespaceCode(int index)
getNamespaceCode
???? NamespaceDeclarations
index
- the index identifying which declaration is required.java.lang.IndexOutOfBoundsException
- if the index is out of range.NamePool.getPrefixFromNamespaceCode(int)
,
NamePool.getURIFromNamespaceCode(int)
public int[] getNamespaceCodes(int[] buffer)
getNamespaceCodes
???? NamespaceDeclarations
buffer
- a sacrificial array that the method is free to use to contain the result.
May be null.