01: package net.xoetrope.xml;
02:
03: import java.util.Vector;
04: import java.util.Enumeration;
05:
06: /**
07: * <p>An interface describing the methods needed for simple
08: * interaction with XML data</p>
09: * <p>Copyright (c) Xoetrope Ltd., 1998-2003<br>
10: * License: see license.txt
11: * @version $Revision: 1.10 $
12: */
13: public interface XmlElement {
14: public Object getImplementation();
15:
16: public String getNamespace();
17:
18: public String getAttributeNamespace(String name);
19:
20: public XmlElement elementAt(int i);
21:
22: public XmlElement createElement(String name);
23:
24: public void addChild(XmlElement child);
25:
26: public Vector getChildren();
27:
28: public Vector getChildren(String path);
29:
30: public String getName();
31:
32: public void setName(String name);
33:
34: public XmlElement getFirstChildNamed(String name);
35:
36: public String getContent();
37:
38: public String getAttribute(String name);
39:
40: public void setAttribute(String name, String value);
41:
42: public Enumeration enumerateAttributeNames();
43:
44: public int getAttributeCount();
45: }
|