Revision 12439 trunk/libraries/libGPE/src/org/gvsig/xmlschema/som/IXSSchema.java
IXSSchema.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.OutputStream; |
4 | 4 |
import java.util.Collection; |
5 |
import java.util.Enumeration; |
|
5 | 6 |
|
6 | 7 |
import org.gvsig.xmlschema.exceptions.SchemaWrittingException; |
7 | 8 |
import org.gvsig.xmlschema.utils.SchemaObjectsMapping; |
... | ... | |
51 | 52 |
* |
52 | 53 |
* $Id$ |
53 | 54 |
* $Log$ |
54 |
* Revision 1.2 2007-06-22 12:20:48 jorpiell |
|
55 |
* Revision 1.3 2007-07-02 09:57:35 jorpiell |
|
56 |
* The generated xsd schemas have to be valid |
|
57 |
* |
|
58 |
* Revision 1.2 2007/06/22 12:20:48 jorpiell |
|
55 | 59 |
* The typeNotFoundException has been deleted. It never was thrown |
56 | 60 |
* |
57 | 61 |
* Revision 1.1 2007/06/14 16:15:03 jorpiell |
... | ... | |
97 | 101 |
public String getTargetNamespace(); |
98 | 102 |
|
99 | 103 |
/** |
104 |
* @return The prefix for the target namespace. |
|
105 |
*/ |
|
106 |
public String getTargetNamespacePrefix(); |
|
107 |
|
|
108 |
/** |
|
109 |
* It retusn a namespace prefix |
|
110 |
* @param namespaceURI |
|
111 |
* Namespace URI |
|
112 |
* @return |
|
113 |
* The namespace prefix |
|
114 |
*/ |
|
115 |
public String getNamespacePrefix(String namespaceURI); |
|
116 |
|
|
117 |
/** |
|
100 | 118 |
* @return the DOM document that contains the |
101 | 119 |
* schema information. It can be used by others |
102 | 120 |
* applications to modify the schema |
... | ... | |
146 | 164 |
* @throws SchemaWrittingException |
147 | 165 |
*/ |
148 | 166 |
public void write(OutputStream os) throws SchemaWrittingException ; |
149 |
|
|
167 |
|
|
150 | 168 |
/** |
151 | 169 |
* Add a new XML schema element |
152 | 170 |
* @param name |
153 | 171 |
* Element name |
154 | 172 |
* @param type |
155 | 173 |
* Element type |
156 |
* @param nillable |
|
157 |
* If the element can be nillable |
|
158 |
* @param minOccurs |
|
159 |
* The minimum number of elements |
|
160 |
* @param maxOccurs |
|
161 |
* Teh maximum number of elements |
|
174 |
* @param substitutionGroup |
|
175 |
* A top-level element definition. |
|
162 | 176 |
* @return |
163 | 177 |
* A XML schema element |
164 | 178 |
*/ |
165 |
public IXSElementDeclaration addElement(String name, String type, boolean nillable, int minOccurs, int maxOccurs);
|
|
179 |
public IXSElementDeclaration addElement(String name, String type, String substitutionGroup);
|
|
166 | 180 |
|
167 | 181 |
/** |
168 | 182 |
* Add a new XML schema element |
Also available in: Unified diff