All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.schemas.dtds.ElementType

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

public class ElementType
extends Object
Class representing an element type.

Version:
2.0
Author:
Ronald Bourret

Variable Index

 o attributes
A Hashtable of Attributes.
 o children
A Hashtable of child ElementTypes.
 o content
A Group representing the content model.
 o CONTENT_ANY
Any content type.
 o CONTENT_ELEMENT
Element content type.
 o CONTENT_EMPTY
Empty content type.
 o CONTENT_MIXED
"Mixed" content type.
 o CONTENT_PCDATA
PCDATA-only content type.
 o CONTENT_UNKNOWN
Unknown content type.
 o contentType
The type of the content model.
 o name
The XMLName of the element type.
 o parents
A Hashtable of parent ElementTypes.

Constructor Index

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

Variables

 o CONTENT_UNKNOWN
 public static final int CONTENT_UNKNOWN
Unknown content type.

 o CONTENT_EMPTY
 public static final int CONTENT_EMPTY
Empty content type.

 o CONTENT_ANY
 public static final int CONTENT_ANY
Any content type.

 o CONTENT_PCDATA
 public static final int CONTENT_PCDATA
PCDATA-only content type.

 o CONTENT_MIXED
 public static final int CONTENT_MIXED
"Mixed" content type.

The content model must include at least one child element type.

 o CONTENT_ELEMENT
 public static final int CONTENT_ELEMENT
Element content type.

 o name
 public XMLName name
The XMLName of the element type.

 o contentType
 public int contentType
The type of the content model.

This must be one of the CONTENT_* constants. The default is CONTENT_UNKNOWN.

 o content
 public Group content
A Group representing the content model.

Must be null if the content type is not CONTENT_ELEMENT or CONTENT_MIXED. In the latter case, it must be a choice group with no child Groups.

 o attributes
 public Hashtable attributes
A Hashtable of Attributes.

Keyed by the attribute's XMLName. May be empty.

 o children
 public Hashtable children
A Hashtable of child ElementTypes.

Keyed by the child's XMLName. May be empty.

 o parents
 public Hashtable parents
A Hashtable of parent ElementTypes.

Keyed by the parent's XMLName. May be empty.

Constructors

 o ElementType
 public ElementType()
Construct a new ElementType.

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

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

Parameters:
name - XMLName of the element type.

All Packages  Class Hierarchy  This Package  Previous  Next  Index