/*------------------------------------------------------------------------------------
Copyright (c)2000 TogetherSoft Corporation. Patents pending. All rights reserved. 
------------------------------------------------------------------------------------*/ 

package com.togethersoft.modules.xmleditor.dtd.impl;

import java.util.*;
import com.togethersoft.modules.xmleditor.dtd.*;

abstract public class DTDItemDefImpl implements DTDItemDef
{
/** cardinality operator*/
  private int m_cardinality = DTDItemDef.CARDINALITY_ONCE;
  
  //--------------------------------------------------------------------
  public DTDItemDefImpl (int cardinality)
  {
    m_cardinality = cardinality;
  }
  
  //--------------------------------------------------------------------
  public int getCardinality()
  {
    return m_cardinality; 
  }

  //--------------------------------------------------------------------
  public abstract Vector getChildElementDefs();
  public abstract boolean containsChildElement (DTDElementDef elementDef);

}
