edu.ucsb.adl.reports
Class XmlDtd.Attribute

java.lang.Object
  |
  +--edu.ucsb.adl.reports.XmlDtd.Attribute
Enclosing class:
XmlDtd

public static final class XmlDtd.Attribute
extends java.lang.Object

Represents an attribute. Attribute names and definitions are local to elements.


Field Summary
 java.lang.String defaultValue
          The attribute's default value, or null if it has no default.
 java.lang.String name
          The attribute's name.
 boolean required
          Indicates if the attribute is required.
 java.util.Hashtable values
          The possible values for the attribute (expressed as hash table keys; the hash table values are unused), or null if the attribute's domain is unconstrained (i.e., content type CDATA).
 
Constructor Summary
XmlDtd.Attribute(java.lang.String name, boolean required, java.util.Hashtable values, java.lang.String defaultValue)
          Creates an Attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
The attribute's name. Attribute names are unique within an element.


required

public final boolean required
Indicates if the attribute is required.


values

public final java.util.Hashtable values
The possible values for the attribute (expressed as hash table keys; the hash table values are unused), or null if the attribute's domain is unconstrained (i.e., content type CDATA).


defaultValue

public final java.lang.String defaultValue
The attribute's default value, or null if it has no default.

Constructor Detail

XmlDtd.Attribute

public XmlDtd.Attribute(java.lang.String name,
                        boolean required,
                        java.util.Hashtable values,
                        java.lang.String defaultValue)
Creates an Attribute.

Parameters:
name - The attribute's name.
required - Indicates if the attribute is required.
values - The possible values for the attribute, or null.
defaultValue - The attribute's default value, or null.