org.base.apps.xml.elem.impl
Class BaseElementContext

java.lang.Object
  extended by org.base.apps.xml.elem.impl.BaseElementContext
All Implemented Interfaces:
NamespaceContext, ElementContext

public class BaseElementContext
extends Object
implements ElementContext

Author:
Kevan Simpson

Constructor Summary
BaseElementContext()
           
BaseElementContext(Element elem)
           
 
Method Summary
 void addNamespaceURI(String prefix, String namespaceURI)
          Adds a namespace URI with the given prefix to this context.
protected  Element getElement()
           
 String getNamespaceURI(String prefix)
           
 String getPrefix(String namespaceURI)
           
 Iterator<String> getPrefixes(String namespaceURI)
           
protected  Map<String,String> getPrefixToNsMap()
           
 void removeNamespaceURI(String prefix)
          Removes a namespace URI with the given prefix to this context.
protected  void setElement(Element element)
           
protected  void setPrefixToNsMap(Map<String,String> prefixToNsMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseElementContext

public BaseElementContext()

BaseElementContext

public BaseElementContext(Element elem)
Method Detail

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

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)