|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BasicElement
A Class that represents an XML element and its contents
Constructor Summary | |
BasicElement()
Construct a Basic Element |
|
BasicElement(long element_id,
java.lang.String tagname,
long parent_id)
Construct a Basic Element |
|
BasicElement(java.lang.String tagname,
long parent_id)
Construct a Basic Element |
Method Summary | |
void |
appendContent(char[] cbuf,
int start,
int len)
Append to the content of the element |
void |
appendContent(java.lang.String new_content)
Append to the content of the element |
java.lang.String |
getAttribute(java.lang.String attName)
Get an attribute value by name |
java.lang.String |
getAttributes()
Get the attributes as a string |
java.lang.String |
getContent()
Get the content of the element |
long |
getElementID()
Get the id of this element |
long |
getParentID()
Get the parent id of this element |
java.lang.String |
getTagName()
Get the name of this element |
void |
setAttribute(java.lang.String attName,
java.lang.String attValue)
Add a new attribute to this element, or set its value |
void |
setElementID(long element_id)
Set the id of this element |
void |
setParentID(long parent_id)
Set the parent id of this element |
void |
setTagName(java.lang.String tagname)
Set the tagname of this element |
java.lang.String |
toString()
convert the element to a string representation for display |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BasicElement()
public BasicElement(java.lang.String tagname, long parent_id)
tagname
- the name of the elementparent_id
- the id number of the parent elementpublic BasicElement(long element_id, java.lang.String tagname, long parent_id)
element_id
- the id number of the elementtagname
- the name of the elementparent_id
- the id number of the parent elementMethod Detail |
public java.lang.String toString()
public long getElementID()
public void setElementID(long element_id)
public long getParentID()
public void setParentID(long parent_id)
public java.lang.String getTagName()
public void setTagName(java.lang.String tagname)
public java.lang.String getAttributes()
public void setAttribute(java.lang.String attName, java.lang.String attValue)
public java.lang.String getAttribute(java.lang.String attName)
public void appendContent(char[] cbuf, int start, int len)
public void appendContent(java.lang.String new_content)
public java.lang.String getContent()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |