org.xml.sax.ext
Class Attributes2Impl

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by org.xml.sax.helpers.AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl definition code for org.xml.sax.helpers.AttributesImpl 
      extended by org.xml.sax.ext.Attributes2Impl
All Implemented Interfaces:
Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes , Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2

public class Attributes2Impl
extends AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl definition code for org.xml.sax.helpers.AttributesImpl
implements Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2

SAX2 extension helper for additional Attributes information, implementing the Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2 interface.

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.

This is not part of core-only SAX2 distributions.

The specified flag for each attribute will always be true, unless it has been set to false in the copy constructor or using setSpecified(int, boolean) sample code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean) . Similarly, the declared flag for each attribute will always be false, except for defaulted attributes (specified is false), non-CDATA attributes, or when it is set to true using setDeclared(int, boolean) sample code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean) . If you change an attribute's type by hand, you may need to modify its declared flag to match.

Since:
SAX 2.0 (extensions 1.1 alpha)

Constructor Summary
Attributes2Impl sample code for org.xml.sax.ext.Attributes2Impl.Attributes2Impl() definition code for org.xml.sax.ext.Attributes2Impl.Attributes2Impl() ()
          Construct a new, empty Attributes2Impl object.
Attributes2Impl sample code for org.xml.sax.ext.Attributes2Impl.Attributes2Impl(org.xml.sax.Attributes) definition code for org.xml.sax.ext.Attributes2Impl.Attributes2Impl(org.xml.sax.Attributes) (Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes  atts)
          Copy an existing Attributes or Attributes2 object.
 
Method Summary
 void addAttribute sample code for org.xml.sax.ext.Attributes2Impl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  uri, String sample code for java.lang.String definition code for java.lang.String  localName, String sample code for java.lang.String definition code for java.lang.String  qName, String sample code for java.lang.String definition code for java.lang.String  type, String sample code for java.lang.String definition code for java.lang.String  value)
          Add an attribute to the end of the list, setting its "specified" flag to true.
 boolean isDeclared sample code for org.xml.sax.ext.Attributes2Impl.isDeclared(int) definition code for org.xml.sax.ext.Attributes2Impl.isDeclared(int) (int index)
          Returns the current value of the attribute's "declared" flag.
 boolean isDeclared sample code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  qName)
          Returns the current value of the attribute's "declared" flag.
 boolean isDeclared sample code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  uri, String sample code for java.lang.String definition code for java.lang.String  localName)
          Returns the current value of the attribute's "declared" flag.
 boolean isSpecified sample code for org.xml.sax.ext.Attributes2Impl.isSpecified(int) definition code for org.xml.sax.ext.Attributes2Impl.isSpecified(int) (int index)
          Returns the current value of an attribute's "specified" flag.
 boolean isSpecified sample code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  qName)
          Returns the current value of an attribute's "specified" flag.
 boolean isSpecified sample code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  uri, String sample code for java.lang.String definition code for java.lang.String  localName)
          Returns the current value of an attribute's "specified" flag.
 void removeAttribute sample code for org.xml.sax.ext.Attributes2Impl.removeAttribute(int) definition code for org.xml.sax.ext.Attributes2Impl.removeAttribute(int) (int index)
          Remove an attribute from the list.
 void setAttributes sample code for org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes) definition code for org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes) (Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes  atts)
          Copy an entire Attributes object.
 void setDeclared sample code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean) (int index, boolean value)
          Assign a value to the "declared" flag of a specific attribute.
 void setSpecified sample code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean) (int index, boolean value)
          Assign a value to the "specified" flag of a specific attribute.
 
Methods inherited from class org.xml.sax.helpers.AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl definition code for org.xml.sax.helpers.AttributesImpl
clear sample code for org.xml.sax.helpers.AttributesImpl.clear() definition code for org.xml.sax.helpers.AttributesImpl.clear() , getIndex sample code for org.xml.sax.helpers.AttributesImpl.getIndex(java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.getIndex(java.lang.String) , getIndex sample code for org.xml.sax.helpers.AttributesImpl.getIndex(java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.getIndex(java.lang.String, java.lang.String) , getLength sample code for org.xml.sax.helpers.AttributesImpl.getLength() definition code for org.xml.sax.helpers.AttributesImpl.getLength() , getLocalName sample code for org.xml.sax.helpers.AttributesImpl.getLocalName(int) definition code for org.xml.sax.helpers.AttributesImpl.getLocalName(int) , getQName sample code for org.xml.sax.helpers.AttributesImpl.getQName(int) definition code for org.xml.sax.helpers.AttributesImpl.getQName(int) , getType sample code for org.xml.sax.helpers.AttributesImpl.getType(int) definition code for org.xml.sax.helpers.AttributesImpl.getType(int) , getType sample code for org.xml.sax.helpers.AttributesImpl.getType(java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.getType(java.lang.String) , getType sample code for org.xml.sax.helpers.AttributesImpl.getType(java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.getType(java.lang.String, java.lang.String) , getURI sample code for org.xml.sax.helpers.AttributesImpl.getURI(int) definition code for org.xml.sax.helpers.AttributesImpl.getURI(int) , getValue sample code for org.xml.sax.helpers.AttributesImpl.getValue(int) definition code for org.xml.sax.helpers.AttributesImpl.getValue(int) , getValue sample code for org.xml.sax.helpers.AttributesImpl.getValue(java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.getValue(java.lang.String) , getValue sample code for org.xml.sax.helpers.AttributesImpl.getValue(java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.getValue(java.lang.String, java.lang.String) , setAttribute sample code for org.xml.sax.helpers.AttributesImpl.setAttribute(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.setAttribute(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) , setLocalName sample code for org.xml.sax.helpers.AttributesImpl.setLocalName(int, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.setLocalName(int, java.lang.String) , setQName sample code for org.xml.sax.helpers.AttributesImpl.setQName(int, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.setQName(int, java.lang.String) , setType sample code for org.xml.sax.helpers.AttributesImpl.setType(int, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.setType(int, java.lang.String) , setURI sample code for org.xml.sax.helpers.AttributesImpl.setURI(int, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.setURI(int, java.lang.String) , setValue sample code for org.xml.sax.helpers.AttributesImpl.setValue(int, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.setValue(int, java.lang.String)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface org.xml.sax.Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes
getIndex sample code for org.xml.sax.Attributes.getIndex(java.lang.String) definition code for org.xml.sax.Attributes.getIndex(java.lang.String) , getIndex sample code for org.xml.sax.Attributes.getIndex(java.lang.String, java.lang.String) definition code for org.xml.sax.Attributes.getIndex(java.lang.String, java.lang.String) , getLength sample code for org.xml.sax.Attributes.getLength() definition code for org.xml.sax.Attributes.getLength() , getLocalName sample code for org.xml.sax.Attributes.getLocalName(int) definition code for org.xml.sax.Attributes.getLocalName(int) , getQName sample code for org.xml.sax.Attributes.getQName(int) definition code for org.xml.sax.Attributes.getQName(int) , getType sample code for org.xml.sax.Attributes.getType(int) definition code for org.xml.sax.Attributes.getType(int) , getType sample code for org.xml.sax.Attributes.getType(java.lang.String) definition code for org.xml.sax.Attributes.getType(java.lang.String) , getType sample code for org.xml.sax.Attributes.getType(java.lang.String, java.lang.String) definition code for org.xml.sax.Attributes.getType(java.lang.String, java.lang.String) , getURI sample code for org.xml.sax.Attributes.getURI(int) definition code for org.xml.sax.Attributes.getURI(int) , getValue sample code for org.xml.sax.Attributes.getValue(int) definition code for org.xml.sax.Attributes.getValue(int) , getValue sample code for org.xml.sax.Attributes.getValue(java.lang.String) definition code for org.xml.sax.Attributes.getValue(java.lang.String) , getValue sample code for org.xml.sax.Attributes.getValue(java.lang.String, java.lang.String) definition code for org.xml.sax.Attributes.getValue(java.lang.String, java.lang.String)
 

Constructor Detail

Attributes2Impl sample code for org.xml.sax.ext.Attributes2Impl() definition code for org.xml.sax.ext.Attributes2Impl()

public Attributes2Impl()
Construct a new, empty Attributes2Impl object.


Attributes2Impl sample code for org.xml.sax.ext.Attributes2Impl(org.xml.sax.Attributes) definition code for org.xml.sax.ext.Attributes2Impl(org.xml.sax.Attributes)

public Attributes2Impl(Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes  atts)
Copy an existing Attributes or Attributes2 object. If the object implements Attributes2, values of the specified and declared flags for each attribute are copied. Otherwise the flag values are defaulted to assume no DTD was used, unless there is evidence to the contrary (such as attributes with type other than CDATA, which must have been declared).

This constructor is especially useful inside a startElement sample code for org.xml.sax.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) definition code for org.xml.sax.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) event.

Parameters:
atts - The existing Attributes object.
Method Detail

isDeclared sample code for org.xml.sax.ext.Attributes2Impl.isDeclared(int) definition code for org.xml.sax.ext.Attributes2Impl.isDeclared(int)

public boolean isDeclared(int index)
Returns the current value of the attribute's "declared" flag.

Specified by:
isDeclared sample code for org.xml.sax.ext.Attributes2.isDeclared(int) definition code for org.xml.sax.ext.Attributes2.isDeclared(int) in interface Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2
Parameters:
index - The attribute index (zero-based).
Returns:
true if the attribute was declared in the DTD, false otherwise.

isDeclared sample code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String, java.lang.String)

public boolean isDeclared(String sample code for java.lang.String definition code for java.lang.String  uri,
                          String sample code for java.lang.String definition code for java.lang.String  localName)
Returns the current value of the attribute's "declared" flag.

Specified by:
isDeclared sample code for org.xml.sax.ext.Attributes2.isDeclared(java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2.isDeclared(java.lang.String, java.lang.String) in interface Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2
Parameters:
uri - The Namespace URI, or the empty string if the name has no Namespace URI.
localName - The attribute's local name.
Returns:
true if the attribute was declared in the DTD, false otherwise.

isDeclared sample code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isDeclared(java.lang.String)

public boolean isDeclared(String sample code for java.lang.String definition code for java.lang.String  qName)
Returns the current value of the attribute's "declared" flag.

Specified by:
isDeclared sample code for org.xml.sax.ext.Attributes2.isDeclared(java.lang.String) definition code for org.xml.sax.ext.Attributes2.isDeclared(java.lang.String) in interface Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2
Parameters:
qName - The XML qualified (prefixed) name.
Returns:
true if the attribute was declared in the DTD, false otherwise.

isSpecified sample code for org.xml.sax.ext.Attributes2Impl.isSpecified(int) definition code for org.xml.sax.ext.Attributes2Impl.isSpecified(int)

public boolean isSpecified(int index)
Returns the current value of an attribute's "specified" flag.

Specified by:
isSpecified sample code for org.xml.sax.ext.Attributes2.isSpecified(int) definition code for org.xml.sax.ext.Attributes2.isSpecified(int) in interface Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2
Parameters:
index - The attribute index (zero-based).
Returns:
current flag value
Throws:
ArrayIndexOutOfBoundsException sample code for java.lang.ArrayIndexOutOfBoundsException definition code for java.lang.ArrayIndexOutOfBoundsException - When the supplied index does not identify an attribute.

isSpecified sample code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String, java.lang.String)

public boolean isSpecified(String sample code for java.lang.String definition code for java.lang.String  uri,
                           String sample code for java.lang.String definition code for java.lang.String  localName)
Returns the current value of an attribute's "specified" flag.

Specified by:
isSpecified sample code for org.xml.sax.ext.Attributes2.isSpecified(java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2.isSpecified(java.lang.String, java.lang.String) in interface Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2
Parameters:
uri - The Namespace URI, or the empty string if the name has no Namespace URI.
localName - The attribute's local name.
Returns:
current flag value
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - When the supplied names do not identify an attribute.

isSpecified sample code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.isSpecified(java.lang.String)

public boolean isSpecified(String sample code for java.lang.String definition code for java.lang.String  qName)
Returns the current value of an attribute's "specified" flag.

Specified by:
isSpecified sample code for org.xml.sax.ext.Attributes2.isSpecified(java.lang.String) definition code for org.xml.sax.ext.Attributes2.isSpecified(java.lang.String) in interface Attributes2 sample code for org.xml.sax.ext.Attributes2 definition code for org.xml.sax.ext.Attributes2
Parameters:
qName - The XML qualified (prefixed) name.
Returns:
current flag value
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - When the supplied name does not identify an attribute.

setAttributes sample code for org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes) definition code for org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes)

public void setAttributes(Attributes sample code for org.xml.sax.Attributes definition code for org.xml.sax.Attributes  atts)
Copy an entire Attributes object. The "specified" flags are assigned as true, and "declared" flags as false (except when an attribute's type is not CDATA), unless the object is an Attributes2 object. In that case those flag values are all copied.

Overrides:
setAttributes sample code for org.xml.sax.helpers.AttributesImpl.setAttributes(org.xml.sax.Attributes) definition code for org.xml.sax.helpers.AttributesImpl.setAttributes(org.xml.sax.Attributes) in class AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl definition code for org.xml.sax.helpers.AttributesImpl
Parameters:
atts - The attributes to copy.
See Also:
AttributesImpl.setAttributes(org.xml.sax.Attributes) sample code for org.xml.sax.helpers.AttributesImpl.setAttributes(org.xml.sax.Attributes) definition code for org.xml.sax.helpers.AttributesImpl.setAttributes(org.xml.sax.Attributes)

addAttribute sample code for org.xml.sax.ext.Attributes2Impl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) definition code for org.xml.sax.ext.Attributes2Impl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)

public void addAttribute(String sample code for java.lang.String definition code for java.lang.String  uri,
                         String sample code for java.lang.String definition code for java.lang.String  localName,
                         String sample code for java.lang.String definition code for java.lang.String  qName,
                         String sample code for java.lang.String definition code for java.lang.String  type,
                         String sample code for java.lang.String definition code for java.lang.String  value)
Add an attribute to the end of the list, setting its "specified" flag to true. To set that flag's value to false, use setSpecified(int, boolean) sample code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean) .

Unless the attribute type is CDATA, this attribute is marked as being declared in the DTD. To set that flag's value to true for CDATA attributes, use setDeclared(int, boolean) sample code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean) .

Overrides:
addAttribute sample code for org.xml.sax.helpers.AttributesImpl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) in class AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl definition code for org.xml.sax.helpers.AttributesImpl
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.
type - The attribute type as a string.
value - The attribute value.
See Also:
AttributesImpl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) sample code for org.xml.sax.helpers.AttributesImpl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)

removeAttribute sample code for org.xml.sax.ext.Attributes2Impl.removeAttribute(int) definition code for org.xml.sax.ext.Attributes2Impl.removeAttribute(int)

public void removeAttribute(int index)
Description copied from class: AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl.removeAttribute(int) definition code for org.xml.sax.helpers.AttributesImpl.removeAttribute(int)
Remove an attribute from the list.

Overrides:
removeAttribute sample code for org.xml.sax.helpers.AttributesImpl.removeAttribute(int) definition code for org.xml.sax.helpers.AttributesImpl.removeAttribute(int) in class AttributesImpl sample code for org.xml.sax.helpers.AttributesImpl definition code for org.xml.sax.helpers.AttributesImpl
Parameters:
index - The index of the attribute (zero-based).

setDeclared sample code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean)

public void setDeclared(int index,
                        boolean value)
Assign a value to the "declared" flag of a specific attribute. This is normally needed only for attributes of type CDATA, including attributes whose type is changed to or from CDATA.

Parameters:
index - The index of the attribute (zero-based).
value - The desired flag value.
Throws:
ArrayIndexOutOfBoundsException sample code for java.lang.ArrayIndexOutOfBoundsException definition code for java.lang.ArrayIndexOutOfBoundsException - When the supplied index does not identify an attribute.
See Also:
AttributesImpl.setType(int, java.lang.String) sample code for org.xml.sax.helpers.AttributesImpl.setType(int, java.lang.String) definition code for org.xml.sax.helpers.AttributesImpl.setType(int, java.lang.String)

setSpecified sample code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean) definition code for org.xml.sax.ext.Attributes2Impl.setSpecified(int, boolean)

public void setSpecified(int index,
                         boolean value)
Assign a value to the "specified" flag of a specific attribute. This is the only way this flag can be cleared, except clearing by initialization with the copy constructor.

Parameters:
index - The index of the attribute (zero-based).
value - The desired flag value.
Throws:
ArrayIndexOutOfBoundsException sample code for java.lang.ArrayIndexOutOfBoundsException definition code for java.lang.ArrayIndexOutOfBoundsException - When the supplied index does not identify an attribute.