public class CXMLElement extends CXMLContentItem
A XML element may contain other XML character data or other XML elements. XML elements not contained by other XML elements are called root-elements.
Modifier and Type | Class and Description |
---|---|
class |
CXMLElement.CXMLElementEnum
This class is used to enumerate the contents of a CXMLElement.
|
Modifier and Type | Field and Description |
---|---|
protected CXMLContentItem[] |
m_content
The XML element's content - an array of objects of type
CXMLContentItem.
|
protected int |
m_contentCount
This member represents the numer of content items.
|
char[] |
m_name
This member represents the element's name.
|
protected CXMLElement |
m_parent
Reference to the element containing this element.
|
Constructor and Description |
---|
CXMLElement(char[] name,
CXMLElement parent) |
Modifier and Type | Method and Description |
---|---|
void |
addToContent(CXMLContentItem obj) |
static CXMLElement |
alloc(char[] name,
CXMLElement parent) |
void |
free()
This function is used for managing freed objects,
which we reuse.
|
CXMLElement.CXMLElementEnum |
getEnum() |
char[] |
getFilteredName() |
char[] |
getName() |
CXMLElement |
getParent() |
java.lang.String |
getPath() |
protected CXMLElement m_parent
public char[] m_name
Example:
protected CXMLContentItem[] m_content
protected int m_contentCount
public CXMLElement(char[] name, CXMLElement parent) throws java.lang.Exception
java.lang.Exception
public final CXMLElement getParent()
public final char[] getName()
public char[] getFilteredName()
public final CXMLElement.CXMLElementEnum getEnum()
public void addToContent(CXMLContentItem obj)
public java.lang.String getPath()
public static CXMLElement alloc(char[] name, CXMLElement parent) throws java.lang.Exception
java.lang.Exception
public void free()
CXMLContentItem
free
in class CXMLContentItem