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
-
defaultValue
- The attribute's default value.
-
enums
- The legal values for attributes with a type of TYPE_ENUMERATED or
TYPE_NOTATION.
-
name
- The XMLName of the attribute.
-
required
- Whether the attribute is required and has a default.
-
REQUIRED_DEFAULT
- Attribute is optional and has a default.
-
REQUIRED_FIXED
- Attribute has a fixed default.
-
REQUIRED_OPTIONAL
- Attribute is optional, no default.
-
REQUIRED_REQUIRED
- Attribute is required, no default.
-
REQUIRED_UNKNOWN
- Default type unknown.
-
type
- The attribute type.
-
TYPE_CDATA
- Attribute type CDATA.
-
TYPE_ENTITIES
- Attribute type ENTITIES.
-
TYPE_ENTITY
- Attribute type ENTITY.
-
TYPE_ENUMERATED
- Enumerated attribute type.
-
TYPE_ID
- Attribute type ID.
-
TYPE_IDREF
- Attribute type IDREF.
-
TYPE_IDREFS
- Attribute type IDREFS.
-
TYPE_NMTOKEN
- Attribute type NMTOKEN.
-
TYPE_NMTOKENS
- Attribute type NMTOKENS.
-
TYPE_NOTATION
- Notation attribute type.
-
TYPE_UNKNOWN
- Attribute type unknown.
-
Attribute()
- Construct a new Attribute.
-
Attribute(String, String, String)
- Construct a new Attribute from its namespace URI, local name, and prefix.
-
Attribute(XMLName)
- Construct a new Attribute from an XMLName.
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN
- Attribute type unknown.
TYPE_CDATA
public static final int TYPE_CDATA
- Attribute type CDATA.
TYPE_ID
public static final int TYPE_ID
- Attribute type ID.
TYPE_IDREF
public static final int TYPE_IDREF
- Attribute type IDREF.
TYPE_IDREFS
public static final int TYPE_IDREFS
- Attribute type IDREFS.
TYPE_ENTITY
public static final int TYPE_ENTITY
- Attribute type ENTITY.
TYPE_ENTITIES
public static final int TYPE_ENTITIES
- Attribute type ENTITIES.
TYPE_NMTOKEN
public static final int TYPE_NMTOKEN
- Attribute type NMTOKEN.
TYPE_NMTOKENS
public static final int TYPE_NMTOKENS
- Attribute type NMTOKENS.
TYPE_ENUMERATED
public static final int TYPE_ENUMERATED
- Enumerated attribute type.
TYPE_NOTATION
public static final int TYPE_NOTATION
- Notation attribute type.
REQUIRED_UNKNOWN
public static final int REQUIRED_UNKNOWN
- Default type unknown.
REQUIRED_REQUIRED
public static final int REQUIRED_REQUIRED
- Attribute is required, no default. Corresponds to #REQUIRED.
REQUIRED_OPTIONAL
public static final int REQUIRED_OPTIONAL
- Attribute is optional, no default. Corresponds to #IMPLIED.
REQUIRED_FIXED
public static final int REQUIRED_FIXED
- Attribute has a fixed default. Corresponds to #FIXED "<default>".
REQUIRED_DEFAULT
public static final int REQUIRED_DEFAULT
- Attribute is optional and has a default. Corresponds to "<default>".
name
public XMLName name
- The XMLName of the attribute.
type
public int type
- The attribute type.
required
public int required
- Whether the attribute is required and has a default.
defaultValue
public String defaultValue
- The attribute's default value. May be null.
enums
public Vector enums
- The legal values for attributes with a type of TYPE_ENUMERATED or
TYPE_NOTATION. Otherwise null.
Attribute
public Attribute()
- Construct a new Attribute.
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.
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