/*------------------------------------------------------------------------------------
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.*;

public class DTDElementItemDefImpl extends DTDItemDefImpl implements DTDElementItemDef
{
/** @directed
 * @supplierCardinality 1
 * @label is of type*/
  private DTDElementDefImpl m_elementDef;
                     
  //--------------------------------------------------------------------
  public DTDElementItemDefImpl (DTDElementDefImpl elementDef, int cardinality)
  {
    super (cardinality);
    m_elementDef = elementDef;
  }
  
  //--------------------------------------------------------------------
  public DTDElementDef getElementDef()
  {
    return m_elementDef;
  }

  //--------------------------------------------------------------------
  public Vector getChildElementDefs()
  {
    Vector v = new Vector();
    v.addElement (m_elementDef);
    return v;
  }

  //--------------------------------------------------------------------
  public boolean containsChildElement (DTDElementDef elementDef)
  {
    return elementDef == m_elementDef;
  }

}


