jeffliu | ec1c478 | 2006-05-24 14:16:24 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
amywu | ecebb04 | 2007-04-10 20:07:35 +0000 | [diff] [blame] | 2 | * Copyright (c) 2002, 2006 IBM Corporation and others. |
jeffliu | ec1c478 | 2006-05-24 14:16:24 +0000 | [diff] [blame] | 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
amywu | ecebb04 | 2007-04-10 20:07:35 +0000 | [diff] [blame] | 7 | * |
jeffliu | ec1c478 | 2006-05-24 14:16:24 +0000 | [diff] [blame] | 8 | * Contributors: |
| 9 | * IBM Corporation - initial API and implementation |
| 10 | * Jens Lukowski/Innoopract - initial renaming/restructuring |
| 11 | * |
| 12 | *******************************************************************************/ |
david_williams | c06c86f | 2005-03-18 18:23:41 +0000 | [diff] [blame] | 13 | package org.eclipse.wst.xml.core.internal.contentmodel; |
david_williams | 95990ef | 2005-03-18 07:20:23 +0000 | [diff] [blame] | 14 | |
| 15 | public interface CMContent extends CMNode |
| 16 | { |
| 17 | /** |
| 18 | * getMaxOccur method |
| 19 | * @return int |
| 20 | * |
| 21 | * If -1, it's UNBOUNDED. |
| 22 | */ |
| 23 | int getMaxOccur(); |
| 24 | /** |
| 25 | * getMinOccur method |
| 26 | * @return int |
| 27 | * |
| 28 | * If 0, it's OPTIONAL. |
| 29 | * If 1, it's REQUIRED. |
| 30 | */ |
| 31 | int getMinOccur(); |
| 32 | } |