org.base.apps.xml.elem.impl
Class BaseElementContext
java.lang.Object
org.base.apps.xml.elem.impl.BaseElementContext
- All Implemented Interfaces:
- NamespaceContext, ElementContext
public class BaseElementContext
- extends Object
- implements ElementContext
- Author:
- Kevan Simpson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseElementContext
public BaseElementContext()
BaseElementContext
public BaseElementContext(Element elem)
addNamespaceURI
public void addNamespaceURI(String prefix,
String namespaceURI)
- Description copied from interface:
ElementContext
- Adds a namespace URI with the given prefix to this context.
- Specified by:
addNamespaceURI in interface ElementContext
- Parameters:
prefix - The namespace prefix.namespaceURI - The namespace URI.- See Also:
ElementContext.addNamespaceURI(java.lang.String, java.lang.String)
removeNamespaceURI
public void removeNamespaceURI(String prefix)
- Description copied from interface:
ElementContext
- Removes a namespace URI with the given prefix to this context.
- Specified by:
removeNamespaceURI in interface ElementContext
- Parameters:
prefix - The prefix of the namespace URI to remove.- See Also:
ElementContext.removeNamespaceURI(java.lang.String)
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI in interface NamespaceContext
- See Also:
NamespaceContext.getNamespaceURI(java.lang.String)
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix in interface NamespaceContext
- See Also:
NamespaceContext.getPrefix(java.lang.String)
getPrefixes
public Iterator<String> getPrefixes(String namespaceURI)
- Specified by:
getPrefixes in interface NamespaceContext
- See Also:
NamespaceContext.getPrefixes(java.lang.String)
getPrefixToNsMap
protected Map<String,String> getPrefixToNsMap()
- Returns:
- the prefixToNs map
getElement
protected Element getElement()
- Returns:
- the mElement
setElement
protected void setElement(Element element)
- Parameters:
element - the element to set
setPrefixToNsMap
protected void setPrefixToNsMap(Map<String,String> prefixToNsMap)
- Parameters:
prefixToNsMap - the prefixToNs map to set
Copyright 2011, Blue Agate Software Entity (BASE)