blob: 30ac6ac69c4b5e31881775ceadfd873c348a19d3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jsp.core.internal.contentmodel;
import org.eclipse.wst.xml.core.internal.contentmodel.CMContent;
import org.eclipse.wst.xml.core.internal.contentmodel.CMNode;
public class CMContentWrapperImpl extends CMNodeWrapperImpl implements CMContent {
private CMContent fCMContent = null;
/**
* CMContentWrapper constructor comment.
* @param prefix java.lang.String
* @param node org.eclipse.wst.xml.core.internal.contentmodel.CMNode
*/
public CMContentWrapperImpl(String prefix, org.eclipse.wst.xml.core.internal.contentmodel.CMContent node) {
super(prefix, node);
fCMContent = node;
}
/**
* getMaxOccur method
* @return int
*
* If -1, it's UNBOUNDED.
*/
public int getMaxOccur() {
return fCMContent.getMaxOccur();
}
/**
* getMinOccur method
* @return int
*
* If 0, it's OPTIONAL.
* If 1, it's REQUIRED.
*/
public int getMinOccur() {
return fCMContent.getMinOccur();
}
public CMNode getOriginNode() {
return fCMContent;
}
}