|
||||||||||
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 |
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.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 |
setAttribute(java.lang.String name, java.lang.String value) Set the value of the named attribute in the implementing XmlElement object |
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 namespaceXmlElement elementAt(int i)
i
- The index of the XmlElement requiredXmlElement createElement(java.lang.String name)
name
- The name of the new elementvoid 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 upjava.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 foundjava.lang.String getContent()
java.lang.String getAttribute(java.lang.String name)
name
- The name of the attribute to be retrievedvoid 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |