|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NamespaceDeclarations
This interface represents a collection of namespace declarations or undeclarations, typically those appearing together in an element start tag. The order of declarations has no significance, and there will be no duplicates (that is, each declaration has a different prefix).
Method Summary | |
---|---|
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. |
Method Detail |
---|
int getNumberOfNamespaces()
String getPrefix(int index)
index
- the index identifying which declaration is required.
IndexOutOfBoundsException
- if the index is out of range.String getURI(int index)
index
- the index identifying which declaration is required.
IndexOutOfBoundsException
- if the index is out of range.int getNamespaceCode(int index)
NamePool
index
- the index identifying which declaration is required.
IndexOutOfBoundsException
- if the index is out of range.NamePool.getPrefixFromNamespaceCode(int)
,
NamePool.getURIFromNamespaceCode(int)
int[] getNamespaceCodes(int[] buffer)
buffer
- a sacrificial array that the method is free to use to contain the result.
May be null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |