org.apache.cocoon.xml
Class AttributesImpl

java.lang.Object
  extended byorg.xml.sax.helpers.AttributesImpl
      extended byorg.apache.cocoon.xml.AttributesImpl
All Implemented Interfaces:
Attributes
Direct Known Subclasses:
ImmutableAttributesImpl

public class AttributesImpl
extends AttributesImpl

A helper Class creating SAX Attributes

Version:
$Id: AttributesImpl.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
AttributesImpl()
          Constructor
AttributesImpl(Attributes attr)
          Constructor
 
Method Summary
 void addCDATAAttribute(String localName, String value)
          Add an attribute of type CDATA with empty Namespace to the end of the list.
 void addCDATAAttribute(String namespace, String localName, String value)
          Add an attribute of type CDATA with the namespace to the end of the list.
 void addCDATAAttribute(String uri, String localName, String qName, String value)
          Add an attribute of type CDATA to the end of the list.
 void removeAttribute(String localName)
          Remove an attribute
 void removeAttribute(String uri, String localName)
          Remove an attribute
 
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, toString, wait, wait, wait
 

Constructor Detail

AttributesImpl

public AttributesImpl()
Constructor


AttributesImpl

public AttributesImpl(Attributes attr)
Constructor

Method Detail

addCDATAAttribute

public void addCDATAAttribute(String localName,
                              String value)
Add an attribute of type CDATA with empty Namespace to the end of the list.

For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.

Parameters:
localName - The local name.
value - The attribute value.

addCDATAAttribute

public void addCDATAAttribute(String namespace,
                              String localName,
                              String value)
Add an attribute of type CDATA with the namespace to the end of the list.

For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.

Parameters:
namespace - The namespace.
localName - The local name.
value - The attribute value.

addCDATAAttribute

public void addCDATAAttribute(String uri,
                              String localName,
                              String qName,
                              String value)
Add an attribute of type CDATA to the end of the list.

For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.

Parameters:
uri - The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.
localName - The local name, or the empty string if Namespace processing is not being performed.
qName - The qualified (prefixed) name, or the empty string if qualified names are not available.
value - The attribute value.

removeAttribute

public void removeAttribute(String localName)
Remove an attribute


removeAttribute

public void removeAttribute(String uri,
                            String localName)
Remove an attribute



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.