package convert.xml.infer;


import convert.xml.util.Name;

import java.util.Map;
import java.util.HashMap;

public class ElementDecl {
  private Particle contentModel;
  private Name datatype;
  private final Map<Name, AttributeDecl> attributeDecls = new HashMap<Name, AttributeDecl>();

  public Map<Name, AttributeDecl> getAttributeDecls() {
    return attributeDecls;
  }

  public Particle getContentModel() {
    return contentModel;
  }

  public void setContentModel(Particle contentModel) {
    this.datatype = null;
    this.contentModel = contentModel;
  }

  public Name getDatatype() {
    return datatype;
  }

  public void setDatatype(Name datatype) {
    this.contentModel = null;
    this.datatype = datatype;
  }

}
