package convert.xml.infer;

import convert.xml.util.Name;

public class AttributeDecl {
  private final Name datatype;
  private final boolean optional;

  public AttributeDecl(Name datatype, boolean optional) {
    this.datatype = datatype;
    this.optional = optional;
  }

  /**
   * @return null for anything
   */
  public Name getDatatype() {
    return datatype;
  }

  public boolean isOptional() {
    return optional;
  }
}
