|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlElement
An interface describing the methods needed for simple interaction with XML data
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Method Summary | |
|---|---|
void |
addChild(XmlElement child)
Add the passed child to the implementing object |
java.lang.Object |
clone()
Produce a deep copy of this element |
XmlElement |
createElement(java.lang.String name)
Create a basic XmlElement of the type registered in the XmlParserFactory |
XmlElement |
elementAt(int i)
Retrieve the XmlElement at the requested position of the implementing object |
java.util.Enumeration |
enumerateAttributeNames()
Retrieve and Enumeration of the implementing object's attributes |
java.lang.String |
getAttribute(java.lang.String name)
Retrieve the named attribute of the implementing XmlElement |
int |
getAttributeCount()
Retrieve a count of the implementing classes attributes |
java.lang.String |
getAttributeNamespace(java.lang.String name)
Retrieve the namespace of the named attribute of the implementation object |
java.util.Properties |
getAttributes()
Retrieve the attributes set |
java.util.Vector |
getChildren()
Retrieve a Vector of child XmlElements contained in the implementing object |
java.util.Vector |
getChildren(java.lang.String path)
Retrieve a Vector of child XmlElements contained in the implementing object at the path specified by the path parameter |
java.lang.String |
getContent()
Retrieve the content of the implementing XmlElement |
XmlElement |
getFirstChildNamed(java.lang.String name)
Retrieve the first XmlElement found at the path specified by the name parameter of the implementing XmlElement |
java.lang.Object |
getImplementation()
Retrieve the XmlElement implementation object |
java.lang.String |
getName()
Retrieve the name of the implementing XmlElement object |
java.lang.String |
getNamespace()
Retrieve the namespace of the implementation object |
void |
remove(XmlElement child)
Remove the specified child element |
void |
removeAttribute(java.lang.String name)
Remove the specified child attribute |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value of the named attribute in the implementing XmlElement object |
void |
setContent(java.lang.String value)
Set the content of the implementing XmlElement |
void |
setName(java.lang.String name)
Set the name of the implementing XmlElement object |
| Method Detail |
|---|
java.lang.Object getImplementation()
java.lang.String getNamespace()
java.lang.String getAttributeNamespace(java.lang.String name)
name - The name of the attributes namespace
XmlElement elementAt(int i)
i - The index of the XmlElement required
XmlElement createElement(java.lang.String name)
name - The name of the new element
void addChild(XmlElement child)
child - The XmlElement to be added to the implementing objectjava.util.Vector getChildren()
java.util.Vector getChildren(java.lang.String path)
path - The path into the implementing object from which the return
Vector is to be made up
java.lang.String getName()
void setName(java.lang.String name)
name - The name to be applied to the implementing XmlElement objectXmlElement getFirstChildNamed(java.lang.String name)
name - The path to the element of the implementing XmlElement object's
to be found
java.lang.String getContent()
void setContent(java.lang.String value)
value - the implementing object's contentjava.lang.String getAttribute(java.lang.String name)
name - The name of the attribute to be retrieved
java.util.Properties getAttributes()
void setAttribute(java.lang.String name,
java.lang.String value)
name - The name of the attribute to be setvalue - The new value of the attributejava.util.Enumeration enumerateAttributeNames()
int getAttributeCount()
void remove(XmlElement child)
child - the child to be removedvoid removeAttribute(java.lang.String name)
name - the name of the attribute to be removedjava.lang.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||