Java Reference
In-Depth Information
The getAttribute() Method
public java.lang.Object getAttribute(java.lang.String name)
This method returns the passed-in name's value. getAttribute() throws no exceptions.
It takes one parameter:
java.lang.String
It returns this value:
java.lang.Object
The getAttributeString() Method
public java.lang.String getAttributeString(java.lang.String name)
This method returns the value of an attribute as a java.lang.String . getAttributeString()
throws no exceptions.
It takes one parameter:
java.lang.String
It returns this value:
java.lang.String
Th getId() Method
public java.lang.String getId()
This method returns the value of the id attribute or null. getID() has no parameters and
throws no exceptions.
E
It returns this value:
java.lang.String
The setAttribute() Method
public void setAttribute(java.lang.String name,
java.lang.Object value)
This method sets the value of an attribute/value pair. setAttribute() returns no value and
throws no exceptions.
It takes two parameters:
java.lang.String
java.lang.Object
 
Search WWH ::




Custom Search