286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Licensed to the Apache Software Foundation (ASF) under one or more
286N/A * contributor license agreements. See the NOTICE file distributed with
286N/A * this work for additional information regarding copyright ownership.
286N/A * The ASF licenses this file to You under the Apache License, Version 2.0
286N/A * (the "License"); you may not use this file except in compliance with
286N/A * the License. You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.impl.xs.models;
286N/A
286N/A/**
286N/A * A compound content model leaf node which carries occurence information.
286N/A *
286N/A * @xerces.internal
286N/A *
286N/A * @author Michael Glavassevich, IBM
286N/A * @version $Id: XSCMRepeatingLeaf.java,v 1.1 2010/08/06 23:49:43 joehw Exp $
286N/A */
286N/Apublic final class XSCMRepeatingLeaf extends XSCMLeaf {
286N/A
286N/A private final int fMinOccurs;
286N/A private final int fMaxOccurs;
286N/A
286N/A public XSCMRepeatingLeaf(int type, Object leaf,
286N/A int minOccurs, int maxOccurs, int id, int position) {
286N/A super(type, leaf, id, position);
286N/A fMinOccurs = minOccurs;
286N/A fMaxOccurs = maxOccurs;
286N/A }
286N/A
286N/A final int getMinOccurs() {
286N/A return fMinOccurs;
286N/A }
286N/A
286N/A final int getMaxOccurs() {
286N/A return fMaxOccurs;
286N/A }
286N/A}