Methods Summary |
---|
public boolean | declarePrefix(java.lang.String prefix, java.lang.String uri)
return true;
|
public java.util.Enumeration | getAllPrefixes()
// It's not possible to get the list of all prefixes from the NamespaceContext
// so the best we can do is return an empty enumeration.
return new Enumeration () {
public boolean hasMoreElements() {
return false;
}
public Object nextElement() {
return null;
}
};
|
public java.lang.String | getDeclaredPrefixAt(int index)
return (String) fPrefixes.get(index);
|
public int | getDeclaredPrefixCount()
return (fPrefixes != null) ? fPrefixes.size() : 0;
|
public java.util.List | getDeclaredPrefixes()
return fPrefixes;
|
public javax.xml.namespace.NamespaceContext | getNamespaceContext()
return fNamespaceContext;
|
public java.lang.String | getPrefix(java.lang.String uri)
if (fNamespaceContext != null) {
if (uri == null) {
uri = XMLConstants.NULL_NS_URI;
}
String prefix = fNamespaceContext.getPrefix(uri);
if (prefix == null) {
prefix = XMLConstants.DEFAULT_NS_PREFIX;
}
return (fSymbolTable != null) ? fSymbolTable.addSymbol(prefix) : prefix.intern();
}
return null;
|
public SymbolTable | getSymbolTable()
return fSymbolTable;
|
public java.lang.String | getURI(java.lang.String prefix)
if (fNamespaceContext != null) {
String uri = fNamespaceContext.getNamespaceURI(prefix);
if (uri != null && !XMLConstants.NULL_NS_URI.equals(uri)) {
return (fSymbolTable != null) ? fSymbolTable.addSymbol(uri) : uri.intern();
}
}
return null;
|
public void | popContext()
|
public void | pushContext()
|
public void | reset()
|
public void | setDeclaredPrefixes(java.util.List prefixes)
fPrefixes = prefixes;
|
public void | setNamespaceContext(javax.xml.namespace.NamespaceContext context)
fNamespaceContext = context;
|
public void | setSymbolTable(SymbolTable symbolTable)
fSymbolTable = symbolTable;
|