| 
 | Préférences Moteurs de recherche | ||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.4.2 
org.w3c.dom
 | |||||||||||||||||||
| Field Summary | 
| Fields inherited from interface org.w3c.dom.Node | 
| ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE | 
| Method Summary | |
|  String | getName()Returns the name of this attribute. | 
|  Element | getOwnerElement()The Elementnode this attribute is attached to ornullif this attribute is not in use. | 
|  boolean | getSpecified()If this attribute was explicitly given a value in the original document, this is true; otherwise, it isfalse. | 
|  String | getValue()On retrieval, the value of the attribute is returned as a string. | 
|  void | setValue(String value)On retrieval, the value of the attribute is returned as a string. | 
| Methods inherited from interface org.w3c.dom.Node | 
| appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix | 
| Method Detail | 
public String getName()
public boolean getSpecified()
true; otherwise, it is 
 false. Note that the implementation is in charge of this 
 attribute, not the user. If the user changes the value of the 
 attribute (even if it ends up having the same value as the default 
 value) then the specified flag is automatically flipped 
 to true. To re-specify the attribute as the default 
 value from the DTD, the user must delete the attribute. The 
 implementation will then make a new attribute available with 
 specified set to false and the default 
 value (if one exists).
 specified is true, and the value is 
 the assigned value.If the attribute has no assigned value in the 
 document and has a default value in the DTD, then 
 specified is false, and the value is the 
 default value in the DTD.If the attribute has no assigned value in 
 the document and has a value of #IMPLIED in the DTD, then the 
 attribute does not appear in the structure model of the document.If 
 the ownerElement attribute is null (i.e. 
 because it was just created or was set to null by the 
 various removal and cloning operations) specified is 
 true.
public String getValue()
getAttribute on the 
 Element interface.
 Text node with the unparsed 
 contents of the string. I.e. any characters that an XML processor 
 would recognize as markup are instead treated as literal text. See 
 also the method setAttribute on the Element 
 interface.
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public void setValue(String value) throws DOMException
getAttribute on the 
 Element interface.
 Text node with the unparsed 
 contents of the string. I.e. any characters that an XML processor 
 would recognize as markup are instead treated as literal text. See 
 also the method setAttribute on the Element 
 interface.
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.public Element getOwnerElement()
Element node this attribute is attached to or 
 null if this attribute is not in use.