    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface com.jclark.xml.parse.AttributeDefinition

public interface AttributeDefinition

Information about the definition of an Attribute.

See Also:
  getAttributeDefinition

##

CDATA
ENTITIES
ENTITY
ENUM
ID
IDREF
IDREFS
NMTOKEN
NMTOKENS
NOTATION
UNDECLARED

##

allowedValues()
  Returns an enumeration over the allowed values if this was declared as an enumerated type, and null otherwise.
getDefaultUnnormalizedValue()
  Returns the unnormalized default value or null if no default value was specified.
getDefaultValue()
  Returns the normalized default value or null if no default value was specified.
getType()
  Returns an integer corresponding to the type of the attribute.
isRequired()
  Returns true if the attribute was #REQUIRED or #FIXED.

##

UNDECLARED

     public static final byte UNDECLARED

CDATA

     public static final byte CDATA

ID

     public static final byte ID

IDREF

     public static final byte IDREF

IDREFS

     public static final byte IDREFS

ENTITY

     public static final byte ENTITY

ENTITIES

     public static final byte ENTITIES

NMTOKEN

     public static final byte NMTOKEN

NMTOKENS

     public static final byte NMTOKENS

ENUM

     public static final byte ENUM

NOTATION

     public static final byte NOTATION

##

getDefaultValue

     public abstract String getDefaultValue()

  Returns the normalized default value or null if no default value was specified.

getDefaultUnnormalizedValue

     public abstract String getDefaultUnnormalizedValue()

  Returns the unnormalized default value or null if no default value was specified.

isRequired

     public abstract boolean isRequired()

  Returns true if the attribute was #REQUIRED or #FIXED.

getType

     public abstract byte getType()

  Returns an integer corresponding to the type of the attribute.

allowedValues

     public abstract Enumeration allowedValues()

  Returns an enumeration over the allowed values if this was declared as an enumerated type, and null otherwise.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index