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: * This interface is intended to represent a Sequence in an XML Schema. This
21: * shildren of this sequence are ElementGroupings which may involve Element
22: * declarations, Choices, Groups ... or even another Sequence. We recommend
23: * flattening child Sequences with the parent, creating a semantically
24: * equivalent sequence in it's place.
25: * </p>
26: *
27: * @author dzwiers www.refractions.net
28: *
29: * @see ElementGrouping
30: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/xml/src/main/java/org/geotools/xml/schema/Sequence.java $
31: */
32: public interface Sequence extends ElementGrouping {
33: /**
34: * <p>
35: * This method returns an ORDERED list of children. The children in the
36: * list may be singular elements, sequences, choices, ... , or groups.
37: * </p>
38: *
39: */
40: public ElementGrouping[] getChildren();
41:
42: /**
43: * <p>
44: * The Schema ID for this sequence definition.
45: * </p>
46: *
47: */
48: public String getId();
49:
50: /**
51: * @see org.geotools.xml.xsi.ElementGrouping#getMaxOccurs()
52: */
53: public int getMaxOccurs();
54:
55: /**
56: * @see org.geotools.xml.xsi.ElementGrouping#getMinOccurs()
57: */
58: public int getMinOccurs();
59: }
|