01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.ischema;
11:
12: /**
13: * Classes that implement this interface store information
14: * about objects that carry cardinality information.
15: * In DTDs, cardinality is defined using special characters
16: * ('?' for "0 to 1", '+' for "1 or more" and '*' for "0 or more".
17: * XML Schema allows precise definition of the cardinality
18: * by using minimum and maximum of occurences in the
19: * instance document. This is one of the reasons why
20: * it is not possible to create exact DTD representation
21: * of XML Schema grammar.
22: */
23: public interface ISchemaRepeatable {
24: /**
25: * Returns maximal number of occurences of the object in the
26: * instance document.
27: *
28: *@return maximal number of occurences in the document
29: */
30: public int getMaxOccurs();
31:
32: /**
33: * Returns minimal number of occurences of the object in the
34: * instance document.
35: *
36: *@return minimal number of occurences in the document
37: */
38: public int getMinOccurs();
39: }
|