class PdxType implements DataSerializable {

  public void addField(PdxField ft) {
    if (this.fieldsMap.put(ft.getFieldName(), ft) != null) {
      throw new PdxFieldAlreadyExistsException(
          "The field \"" + ft.getFieldName() + "\" already exists.");
    }
    this.fields.add(ft);
  }

  public  PdxType();
  public  PdxType(String name, boolean expectDomainClass);
  public  PdxType(PdxType copy);

}