|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface similar to org.w3c.dom.Element used for SVG XML serialization.
This interface allows the com.nwoods.jgo package to provide methods that manipulate org.w3c.dom.Element objects while not requiring the org.w3c.dom.Element class to be present in order to build com.nwoods.jgo.
Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Retrieves an attribute value by name. |
java.lang.String |
getLocalName()
Get the local name of the element. |
java.lang.String |
getNamespaceURI()
Get the NamespaceURI of the element. |
java.lang.String |
getPrefix()
Get the prefix of the element. |
java.lang.String |
getSubAttribute(java.lang.String attribute,
java.lang.String subAttribute)
Parses the attribute to return the value following "attribute:" and preceding either ";" or the end of the string. |
java.lang.String |
getTagName()
Get the tag name of the element. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Adds a new attribute. |
Methods inherited from interface com.nwoods.jgo.DomNode |
appendChild, elementCast, getFirstChild, getFirstChildElement, getFirstChildText, getNextSibling, getNextSiblingElement, getNextSiblingJGoClassElement, getNextSiblingText, getParentNode, isElement |
Method Detail |
public void setAttribute(java.lang.String name, java.lang.String value)
name
- the name of the attribute to create or alter.value
- the value to set in string formpublic java.lang.String getAttribute(java.lang.String name)
name
- of the attribute to retrieve.
public java.lang.String getSubAttribute(java.lang.String attribute, java.lang.String subAttribute)
attribute
- the attribute string to parse.subAttribute
- the subattribute whose value is to be returned.
public java.lang.String getTagName()
public java.lang.String getLocalName()
public java.lang.String getNamespaceURI()
public java.lang.String getPrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |