01: /*
02: * RepeatableSchemaConstruct.java
03: *
04: * Created on October 9, 2006, 5:08 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.modules.e2e.api.schema;
11:
12: import javax.xml.namespace.QName;
13:
14: /**
15: *
16: * @author Michal Skvor
17: */
18: public class RepeatableSchemaConstruct extends SchemaConstruct {
19:
20: public static final int UNBOUNDED = Integer.MAX_VALUE;
21:
22: private int minOccurs;
23: private int maxOccurs;
24:
25: public RepeatableSchemaConstruct(
26: SchemaConstruct.ConstructType constructType) {
27: super (constructType);
28: }
29:
30: public RepeatableSchemaConstruct(
31: SchemaConstruct.ConstructType constructType, QName name) {
32: super (constructType, name);
33: }
34:
35: public void setMinOccurs(int minOccurs) {
36: this .minOccurs = minOccurs;
37: }
38:
39: public int getMinOccurs() {
40: return minOccurs;
41: }
42:
43: public void setMaxOccurs(int maxOccurs) {
44: this .maxOccurs = maxOccurs;
45: }
46:
47: public int getMaxOccurs() {
48: return maxOccurs;
49: }
50: }
|