All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.schemas.dtds.Attribute

java.lang.Object
   |
   +----org.xmlmiddleware.schemas.dtds.Attribute

public class Attribute
extends Object
Class representing an attribute.

Version:
2.0
Author:
Ronald Bourret

Variable Index

 o defaultValue
The attribute's default value.
 o enums
The legal values for attributes with a type of TYPE_ENUMERATED or TYPE_NOTATION.
 o name
The XMLName of the attribute.
 o required
Whether the attribute is required and has a default.
 o REQUIRED_DEFAULT
Attribute is optional and has a default.
 o REQUIRED_FIXED
Attribute has a fixed default.
 o REQUIRED_OPTIONAL
Attribute is optional, no default.
 o REQUIRED_REQUIRED
Attribute is required, no default.
 o REQUIRED_UNKNOWN
Default type unknown.
 o type
The attribute type.
 o TYPE_CDATA
Attribute type CDATA.
 o TYPE_ENTITIES
Attribute type ENTITIES.
 o TYPE_ENTITY
Attribute type ENTITY.
 o TYPE_ENUMERATED
Enumerated attribute type.
 o TYPE_ID
Attribute type ID.
 o TYPE_IDREF
Attribute type IDREF.
 o TYPE_IDREFS
Attribute type IDREFS.
 o TYPE_NMTOKEN
Attribute type NMTOKEN.
 o TYPE_NMTOKENS
Attribute type NMTOKENS.
 o TYPE_NOTATION
Notation attribute type.
 o TYPE_UNKNOWN
Attribute type unknown.

Constructor Index

 o Attribute()
Construct a new Attribute.
 o Attribute(String, String, String)
Construct a new Attribute from its namespace URI, local name, and prefix.
 o Attribute(XMLName)
Construct a new Attribute from an XMLName.

Variables

 o TYPE_UNKNOWN
 public static final int TYPE_UNKNOWN
Attribute type unknown.

 o TYPE_CDATA
 public static final int TYPE_CDATA
Attribute type CDATA.

 o TYPE_ID
 public static final int TYPE_ID
Attribute type ID.

 o TYPE_IDREF
 public static final int TYPE_IDREF
Attribute type IDREF.

 o TYPE_IDREFS
 public static final int TYPE_IDREFS
Attribute type IDREFS.

 o TYPE_ENTITY
 public static final int TYPE_ENTITY
Attribute type ENTITY.

 o TYPE_ENTITIES
 public static final int TYPE_ENTITIES
Attribute type ENTITIES.

 o TYPE_NMTOKEN
 public static final int TYPE_NMTOKEN
Attribute type NMTOKEN.

 o TYPE_NMTOKENS
 public static final int TYPE_NMTOKENS
Attribute type NMTOKENS.

 o TYPE_ENUMERATED
 public static final int TYPE_ENUMERATED
Enumerated attribute type.

 o TYPE_NOTATION
 public static final int TYPE_NOTATION
Notation attribute type.

 o REQUIRED_UNKNOWN
 public static final int REQUIRED_UNKNOWN
Default type unknown.

 o REQUIRED_REQUIRED
 public static final int REQUIRED_REQUIRED
Attribute is required, no default. Corresponds to #REQUIRED.

 o REQUIRED_OPTIONAL
 public static final int REQUIRED_OPTIONAL
Attribute is optional, no default. Corresponds to #IMPLIED.

 o REQUIRED_FIXED
 public static final int REQUIRED_FIXED
Attribute has a fixed default. Corresponds to #FIXED "<default>".

 o REQUIRED_DEFAULT
 public static final int REQUIRED_DEFAULT
Attribute is optional and has a default. Corresponds to "<default>".

 o name
 public XMLName name
The XMLName of the attribute.

 o type
 public int type
The attribute type.

 o required
 public int required
Whether the attribute is required and has a default.

 o defaultValue
 public String defaultValue
The attribute's default value. May be null.

 o enums
 public Vector enums
The legal values for attributes with a type of TYPE_ENUMERATED or TYPE_NOTATION. Otherwise null.

Constructors

 o Attribute
 public Attribute()
Construct a new Attribute.

 o Attribute
 public Attribute(String uri,
                  String localName,
                  String prefix)
Construct a new Attribute from its namespace URI, local name, and prefix.

Parameters:
uri - Namespace URI of the attribute. May be null.
localName - Local name of the attribute.
prefix - Namespace prefix of the attribute. May be null.
 o Attribute
 public Attribute(XMLName name)
Construct a new Attribute from an XMLName.

Parameters:
name - XMLName of the attribute.

All Packages  Class Hierarchy  This Package  Previous  Next  Index