1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
package com.jclark.xml.parse;
import java.util.Enumeration;
/**
* Information about the definition of an Attribute.
*
* @see ElementType#getAttributeDefinition
* @version $Revision: 1.1 $ $Date: 1998/06/25 04:41:53 $
*/
public interface AttributeDefinition {
/**
* Returns the normalized default value
* or null if no default value was specified.
*/
String getDefaultValue();
/**
* Returns the unnormalized default value
* or null if no default value was specified.
*/
String getDefaultUnnormalizedValue();
/**
* Returns true if the attribute was #REQUIRED or #FIXED.
*/
boolean isRequired();
static byte UNDECLARED = -1;
static byte CDATA = 0;
static byte ID = 1;
static byte IDREF = 2;
static byte IDREFS = 3;
static byte ENTITY = 4;
static byte ENTITIES = 5;
static byte NMTOKEN = 6;
static byte NMTOKENS = 7;
static byte ENUM = 8;
static byte NOTATION = 9;
/**
* Returns an integer corresponding to the type of the attribute.
*/
byte getType();
/**
* Returns an enumeration over the allowed values
* if this was declared as an enumerated type, and null otherwise.
*/
Enumeration allowedValues();
}
|