KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgap > data > IDataElement


1 /*
2  * This file is part of JGAP.
3  *
4  * JGAP offers a dual license model containing the LGPL as well as the MPL.
5  *
6  * For licencing information please see the file license.txt included with JGAP
7  * or have a look at the top of class org.jgap.Chromosome which representatively
8  * includes the JGAP license policy applicable for any file delivered with JGAP.
9  */

10 package org.jgap.data;
11
12 import java.util.*;
13
14 /**
15  * The IDataElement interface represents an entity comparable to
16  * org.w3c.dom.Element
17  *
18  * @author Klaus Meffert
19  * @since 2.0
20  */

21 public interface IDataElement {
22   /** String containing the CVS revision. Read out via reflection!*/
23   final static String JavaDoc CVS_REVISION = "$Revision: 1.3 $";
24
25   void setAttribute(String JavaDoc a_name, String JavaDoc a_value)
26       throws Exception JavaDoc;
27
28   void appendChild(IDataElement a_newChild)
29       throws Exception JavaDoc;
30
31   String JavaDoc getTagName();
32
33   IDataElementList getElementsByTagName(String JavaDoc a_name);
34
35   IDataElementList getChildNodes();
36
37   String JavaDoc getAttribute(String JavaDoc a_name);
38
39   Map getAttributes();
40 }
41
Popular Tags