|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Extends IHTMLElement to handle attributes.
This class extends IHTMLElement with the capabilities to handle
element attributes which can appear in start elements.
It is possible to change the attributes of an element, to remove attributes and to add new ones. Note that namespace declarations will appear as normal attributes on an element. The name of an attribute is the Qualified Name . So it will include possible namespace prefixes.
Copyright (c) SAP AG 2001-2003
| Method Summary | |
void |
addAttribute(java.lang.String name,
java.lang.String value)
Add a new attribute with given name and value. |
int |
getIndexOf(java.lang.String attributeName)
Find the index of the attribute of given name or -1 . |
java.lang.String |
getNameOf(int attributeIndex)
Retrieve the name of the attribute with given index. |
int |
getNumberOfAttributes()
Return the number of attributes this element has. |
java.lang.String |
getValueOf(int attributeIndex)
Retrieve the value of the attribute with given index. |
boolean |
isEmpty()
Determines if this element is an empty element, e.g. ending with '/>'. |
void |
removeAttribute(int attributeIndex)
Remove attribute with given index. |
void |
setValueOf(int attributeIndex,
java.lang.String value)
Set the value of attribute with given index to a new value. |
| Methods inherited from interface com.sapportals.wcm.util.html.IHTMLElement |
copyTo, getName, getNameLength, hasName, length, writeTo |
| Method Detail |
public boolean isEmpty()
public int getNumberOfAttributes()
public int getIndexOf(java.lang.String attributeName)
-1 .attributeName - of attribute to find-1 if not foundpublic java.lang.String getNameOf(int attributeIndex)
attributeIndex - of attributepublic java.lang.String getValueOf(int attributeIndex)
attributeIndex - of attribute
public void setValueOf(int attributeIndex,
java.lang.String value)
attributeIndex - of attributevalue - new valuepublic void removeAttribute(int attributeIndex)
attributeIndex - of attribute
public void addAttribute(java.lang.String name,
java.lang.String value)
throws HTMLException
name - of new attributevalue - of new attributeHTMLException - if attribute with same name already exists
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||