Logo Search packages:      
Sourcecode: jclic version File versions  Download package

Element org::jdom::Element::setAttribute ( String  name,
String  value,
Namespace  ns 
) [inline]

This sets an attribute value for this element. Any existing attribute with the same name and namespace URI is removed.

name name of the attribute to set
value value of the attribute to set
ns namespace of the attribute to set
this element modified
IllegalNameException if the given name is illegal as an attribute name, or if the namespace is an unprefixed default namespace
IllegalDataException if the given attribute value is illegal character data (as determined by org.jdom.Verifier#checkCharacterData).
IllegalAddException if the attribute namespace prefix collides with another namespace prefix on the element.

Definition at line 1139 of file Element.java.

References setAttribute().

        return setAttribute(new Attribute(name, value, ns));

Generated by  Doxygen 1.6.0   Back to index