Revision 24846 branches/v2_0_0_prep/libraries/libTools/src/org/gvsig/tools/dynobject/DynClass.java

View differences:

DynClass.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Gobernment (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2008 {DiSiD Technologies}  {Create DynObjects implementation}
26
 */
1 27
package org.gvsig.tools.dynobject;
2 28

  
3
import java.util.Collection;
4 29
import java.util.Iterator;
5
import java.util.List;
6 30

  
31
/**
32
 * @author <a href="mailto:jjdelcerro@gvsig.org">Joaqu?n Jos? del Cerro</a>
33
 * @author <a href="mailto:cordin@disid.com">C?sar Ordi?ana</a>
34
 */
7 35
public interface DynClass {
8 36

  
9
	public String getName();
37
    String getName();
10 38

  
11
	public String getDescription();
39
    String getDescription();
40
    
41
    DynObject newInstance();
12 42

  
13
	public DynAttributeDescriptor getAttributeDescriptor(String name);
43
    // Iterator iterator();
14 44

  
15
	public Iterator iterator();
45
    // List getFieldNames();
46
    //
47
    // int getFieldCount();
16 48

  
17
	public List getAttributeNames();
49
    // Collection getBaseClassNames();
18 50

  
19
	public int getAttributeCount();
51
    /***************************/
52
    /* Parent DynClass objects */
53
    /***************************/
20 54

  
21
	public DynObject newInstance();
55
    void extend(DynClass dynClass);
22 56

  
23
	public void extendsDynClass(DynClass dynClass);
57
    void extend(String dynClassName);
58
    
59
    DynClass[] getSuperDynClasses();
60
    
61
    Iterator allParentDynClassesIterator();
62
    
63
    boolean isInstance(DynObject dynObject);
64
    
65
    /*************/
66
    /* DynFields */
67
    /*************/
68
    
69
    DynField getDynField(String name);
70
    
71
    DynField getDeclaredDynField(String name);
72
    
73
    DynField[] getDynFields();
24 74

  
25
	public void extendsDynClass(String dynClassName);
75
    DynField[] getDeclaredDynFields();
26 76

  
27
	public Collection getBaseClassNames();
77
    DynField addDynField(String name);
28 78

  
29
	public List getBaseClases();
30

  
31
	DynAttributeDescriptor add(String name);
32

  
33
	void remove(String name);
34
}
79
    void removeDynField(String name);
80
    
81
    /**************/
82
    /* DynMethods */
83
    /**************/
84
}

Also available in: Unified diff