com.skaringa.javaxml.handler
Class AttrImpl

java.lang.Object
  extended by org.xml.sax.helpers.AttributesImpl
      extended by com.skaringa.javaxml.handler.AttrImpl
All Implemented Interfaces:
org.xml.sax.Attributes

public final class AttrImpl
extends org.xml.sax.helpers.AttributesImpl

An extended implementation of SAX Attributes.


Constructor Summary
AttrImpl()
          Construct a new empty AttrImpl.
AttrImpl(org.xml.sax.Attributes attrs)
          Construct a new AttrImpl which is a copy of the given attributes.
 
Method Summary
 void addAttribute(java.lang.String simpleName, java.lang.String value)
          Add an attribute with no namespace prefix.
 void addAttribute(java.lang.String uri, java.lang.String prefix, java.lang.String localName, java.lang.String value)
          Add an attribute with namespace prefix.
 java.lang.String toString()
           
 
Methods inherited from class org.xml.sax.helpers.AttributesImpl
addAttribute, clear, getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, removeAttribute, setAttribute, setAttributes, setLocalName, setQName, setType, setURI, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttrImpl

public AttrImpl()
Construct a new empty AttrImpl.


AttrImpl

public AttrImpl(org.xml.sax.Attributes attrs)
Construct a new AttrImpl which is a copy of the given attributes.

Parameters:
attrs - The attributes to copy.
Method Detail

addAttribute

public void addAttribute(java.lang.String simpleName,
                         java.lang.String value)
Add an attribute with no namespace prefix.

Parameters:
simpleName - The name of the attribute.
value - The value of the attribute.

addAttribute

public void addAttribute(java.lang.String uri,
                         java.lang.String prefix,
                         java.lang.String localName,
                         java.lang.String value)
Add an attribute with namespace prefix.

Parameters:
uri - The namespace URI.
prefix - The namespace prefix
localName - The local name of the attribute.
value - The value of the attribute.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()