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

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

public class SAXAttributeMap
extends AbstractAttributeMap

Attributes derived from SAX.

Version:
$Revision: 310 $
Author:
Max Berger

Constructor Summary
SAXAttributeMap(Attributes attr)
          Creates a new AttributeMap based on SAX 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.
 
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, toString, wait, wait, wait
 

Constructor Detail

SAXAttributeMap

public SAXAttributeMap(Attributes attr)
Creates a new AttributeMap based on SAX attributes.

Parameters:
attr - the SAX 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>


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