Statistics
| Revision:

svn-gvsig-desktop / branches / v10 / libraries / libGPE / src / org / gvsig / xmlschema / som / IXSElementDeclaration.java @ 18288

History | View | Annotate | Download (3.24 KB)

1
package org.gvsig.xmlschema.som;
2

    
3

    
4

    
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
6
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
9
 * This program is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU General Public License
11
 * as published by the Free Software Foundation; either version 2
12
 * of the License, or (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
44
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id: IXSElementDeclaration.java 162 2007-06-29 12:19:48Z jorpiell $
48
 * $Log$
49
 * Revision 1.3  2007/06/29 12:19:14  jorpiell
50
 * The schema validation is made independently of the concrete writer
51
 *
52
 * Revision 1.2  2007/06/22 12:20:48  jorpiell
53
 * The typeNotFoundException has been deleted. It never was thrown
54
 *
55
 * Revision 1.1  2007/06/14 16:15:03  jorpiell
56
 * builds to create the jars generated and add the schema code to the libGPEProject
57
 *
58
 * Revision 1.1  2007/06/14 13:50:07  jorpiell
59
 * The schema jar name has been changed
60
 *
61
 * Revision 1.4  2007/06/08 11:35:16  jorpiell
62
 * IXSSchema interface updated
63
 *
64
 * Revision 1.3  2007/06/07 14:54:13  jorpiell
65
 * Add the schema support
66
 *
67
 * Revision 1.2  2007/05/30 12:25:48  jorpiell
68
 * Add the element collection
69
 *
70
 * Revision 1.1  2007/05/25 11:55:00  jorpiell
71
 * First update
72
 *
73
 *
74
 */
75
/**
76
 * This interface represents a XML schema element declaration. 
77
 * Example:
78
 * <p>
79
 * <pre>
80
 * <code>
81
 * &lt;xs:element name="PurchaseOrder" type="PurchaseOrderType"/&gt;
82
 * </code>
83
 * </pre>
84
 * </p> 
85
 * @see http://www.w3.org/TR/xmlschema-1/#cElement_Declarations
86
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
87
 */
88
public interface IXSElementDeclaration extends IXSComponent{
89
        public static final int MAX_OCCURS_UNBOUNDED = -1;
90
        public static final int MIN_OCCURS_UNBOUNDED = -1;
91
        
92
        public IXSTypeDefinition getTypeDefinition();
93
        
94
        public String getTypeName();
95
        
96
        public boolean isNillable();
97
        
98
        public int getMinOccurs();
99
        
100
        public int getMaxOccurs();
101
        
102
        public IXSElementDeclaration getSubElementByName(String name);
103
        
104
        /**
105
         * Add a new XML schema Complex type
106
         * @param type
107
         * See the IXSComplexType interface for possible values
108
         * @param contentType
109
         * A complex content or a simple content
110
         * See the IXSContentType for possible values
111
         * @param contentTypeRestriction
112
         * A extension or a restriction
113
         * @return
114
         * A xML schema complex type
115
         */
116
        public IXSComplexTypeDefinition addComplexType(String type, String contentType, String contentTypeRestriction);
117
}
118