01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.xml.schema;
17:
18: /**
19: * <p>
20: * Instances of this interface are intended to represent the 'all' construct in
21: * an XML Schema.
22: * </p>
23: *
24: * @author dzwiers www.refractions.net
25: *
26: * @see Element
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/xml/src/main/java/org/geotools/xml/schema/All.java $
28: */
29: public interface All extends ElementGrouping {
30: /**
31: * <p>
32: * The list of elements represented within this 'all' declaration. We
33: * should not that as per the Schema definition of the 'all' declaration,
34: * the return order in the array should not have an effect on the instance
35: * document.
36: * </p>
37: *
38: */
39: public Element[] getElements();
40:
41: /**
42: * <p>
43: * Returns the element declaration's id for this schema element.
44: * </p>
45: *
46: */
47: public String getId();
48:
49: /**
50: * @see org.geotools.xml.xsi.ElementGrouping#getMaxOccurs()
51: */
52: public int getMaxOccurs();
53:
54: /**
55: * @see org.geotools.xml.xsi.ElementGrouping#getMinOccurs()
56: */
57: public int getMinOccurs();
58: }
|