Class AttDef

public class AttDef
{
  // Fields
  public static final int CDATA;
  public static final int DEFAULT;
  public static final int ENTITIES;
  public static final int ENTITY;
  public static final int ENUMERATION;
  public static final int FIXED;
  public static final int ID;
  public static final int IDREF;
  public static final int IDREFS;
  public static final int IMPLIED;
  public static final int NMTOKEN;
  public static final int NMTOKENS;
  public static final int NOTATION;
  public static final int REQUIRED;

  // Methods
  public Object getDefault();
  public Name getName();
  public int getPresence();
  public int getType();
}

This object describes an attribute type and potential values. This encapsulates the information for one Attribute in an Attribute List in a DTD as described below:

Methods

getDefault 

public Object getDefault();

Return the default value for the attribute.

getName 

public Name getName();

Return the name of the attribute.

getPresence 

public int getPresence();

Return the precence type for the attribute.

getType 

public int getType();

Return the attribute type.

Fields 

CDATA
type of attribute
DEFAULT
presence of attribute
ENTITIES
ENTITY
ENUMERATION
FIXED
ID
IDREF
IDREFS
IMPLIED
NMTOKEN
NMTOKENS
NOTATION
REQUIRED