net.sourceforge.jeuclid.elements.support.attributes
Class DOMAttributeMap

java.lang.Object
  extended by net.sourceforge.jeuclid.elements.support.attributes.AbstractAttributeMap
      extended by net.sourceforge.jeuclid.elements.support.attributes.DOMAttributeMap
All Implemented Interfaces:
AttributeMap

public class DOMAttributeMap
extends AbstractAttributeMap

Attributes derived from DOM.

Version:
$Revision: 602 $
Author:
Max Berger

Constructor Summary
DOMAttributeMap(NamedNodeMap attributeMap)
          Creates a new AttributesMap based on DOM attributes.
 
Method Summary
 Map<String,String> getAsMap()
          retrieve the attributes as map.
protected  String getAttribute(String attrName)
          Override this method to get an attribute value without a namespace.
protected  String getAttributeNS(String namespace, String attrName)
          Override this method to get an attribtue with a namespace.
 String toString()
          
 
Methods inherited from class net.sourceforge.jeuclid.elements.support.attributes.AbstractAttributeMap
getBoolean, getString, getString, hasAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMAttributeMap

public DOMAttributeMap(NamedNodeMap attributeMap)
Creates a new AttributesMap based on DOM attributes.

Parameters:
attributeMap - the DOM attributes.
Method Detail

getAttribute

protected String getAttribute(String attrName)
Override this method to get an attribute value without a namespace.

Specified by:
getAttribute in class AbstractAttributeMap
Parameters:
attrName - name of the attribute
Returns:
value of the attribute

getAttributeNS

protected String getAttributeNS(String namespace,
                                String attrName)
Override this method to get an attribtue with a namespace.

Specified by:
getAttributeNS in class AbstractAttributeMap
Parameters:
namespace - the namespace
attrName - the attribtue name
Returns:
value of the attribute.

getAsMap

public Map<String,String> getAsMap()
retrieve the attributes as map.

Returns:
a Map<String,String>

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2002-2008 The JEuclid project. All Rights Reserved.