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
-
attributes
- A Hashtable of Attributes.
-
children
- A Hashtable of child ElementTypes.
-
content
- A Group representing the content model.
-
CONTENT_ANY
- Any content type.
-
CONTENT_ELEMENT
- Element content type.
-
CONTENT_EMPTY
- Empty content type.
-
CONTENT_MIXED
- "Mixed" content type.
-
CONTENT_PCDATA
- PCDATA-only content type.
-
CONTENT_UNKNOWN
- Unknown content type.
-
contentType
- The type of the content model.
-
name
- The XMLName of the element type.
-
parents
- A Hashtable of parent ElementTypes.
-
ElementType()
- Construct a new ElementType.
-
ElementType(String, String, String)
- Construct a new ElementType from its namespace URI, local name, and prefix.
-
ElementType(XMLName)
- Construct a new ElementType from an XMLName.
CONTENT_UNKNOWN
public static final int CONTENT_UNKNOWN
- Unknown content type.
CONTENT_EMPTY
public static final int CONTENT_EMPTY
- Empty content type.
CONTENT_ANY
public static final int CONTENT_ANY
- Any content type.
CONTENT_PCDATA
public static final int CONTENT_PCDATA
- PCDATA-only content type.
CONTENT_MIXED
public static final int CONTENT_MIXED
- "Mixed" content type.
The content model must include at least one child element type.
CONTENT_ELEMENT
public static final int CONTENT_ELEMENT
- Element content type.
name
public XMLName name
- The XMLName of the element type.
contentType
public int contentType
- The type of the content model.
This must be one of the CONTENT_* constants. The default
is CONTENT_UNKNOWN.
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.
attributes
public Hashtable attributes
- A Hashtable of Attributes.
Keyed by the attribute's XMLName. May be empty.
children
public Hashtable children
- A Hashtable of child ElementTypes.
Keyed by the child's XMLName. May be empty.
parents
public Hashtable parents
- A Hashtable of parent ElementTypes.
Keyed by the parent's XMLName. May be empty.
ElementType
public ElementType()
- Construct a new ElementType.
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.
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