public interface

ASElementDeclaration

implements ASObject
org.apache.xerces.dom3.as.ASElementDeclaration

This interface is deprecated.
The element name along with the content specification in the context of an ASObject.

See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.

Summary

Constants
short ANY_CONTENTTYPE Represents an ANY content type for an Element declaration.
short ELEMENTS_CONTENTTYPE Represents an ELEMENTS only content type for an Element declaration.
short EMPTY_CONTENTTYPE Represents an EMPTY content type for an Element declaration.
short MIXED_CONTENTTYPE Represents a MIXED content type for an Element declaration.
[Expand]
Inherited Constants
From interface org.apache.xerces.dom3.as.ASObject
Public Methods
abstract void addASAttributeDecl(ASAttributeDeclaration attributeDecl)
Adds an ASAttributeDeclaration for the element being declared.
abstract ASNamedObjectMap getASAttributeDecls()
TheASNamedObjectMap containing ASAttributeDeclarations for all the attributes that can appear on this type of element.
abstract ASContentModel getAsCM()
The content model of element.
abstract short getContentType()
The content type of the element.
abstract ASDataType getElementType()
Datatype of the element.
abstract boolean getIsPCDataOnly()
Boolean defining whether the element type contains child elements and PCDATA or PCDATA only for mixed element types.
abstract boolean getStrictMixedContent()
A boolean defining whether the element order and number of the child elements for mixed content type has to be respected or not.
abstract String getSystemId()
the URI reference representing the system identifier for the notation declaration, if present, null otherwise.
abstract ASAttributeDeclaration removeASAttributeDecl(ASAttributeDeclaration attributeDecl)
Removes an ASAttributeDeclaration from the element being declared.
abstract void setASAttributeDecls(ASNamedObjectMap ASAttributeDecls)
TheASNamedObjectMap containing ASAttributeDeclarations for all the attributes that can appear on this type of element.
abstract void setAsCM(ASContentModel asCM)
The content model of element.
abstract void setContentType(short contentType)
The content type of the element.
abstract void setElementType(ASDataType elementType)
Datatype of the element.
abstract void setIsPCDataOnly(boolean isPCDataOnly)
Boolean defining whether the element type contains child elements and PCDATA or PCDATA only for mixed element types.
abstract void setStrictMixedContent(boolean strictMixedContent)
A boolean defining whether the element order and number of the child elements for mixed content type has to be respected or not.
abstract void setSystemId(String systemId)
the URI reference representing the system identifier for the notation declaration, if present, null otherwise.
[Expand]
Inherited Methods
From interface org.apache.xerces.dom3.as.ASObject

Constants

public static final short ANY_CONTENTTYPE

Represents an ANY content type for an Element declaration.

Constant Value: 2 (0x00000002)

public static final short ELEMENTS_CONTENTTYPE

Represents an ELEMENTS only content type for an Element declaration.

Constant Value: 4 (0x00000004)

public static final short EMPTY_CONTENTTYPE

Represents an EMPTY content type for an Element declaration.

Constant Value: 1 (0x00000001)

public static final short MIXED_CONTENTTYPE

Represents a MIXED content type for an Element declaration. Note that isPCDataOnly would also need to checked, in addition to this, if an element's content model was simply text, as an example.

Constant Value: 3 (0x00000003)

Public Methods

public abstract void addASAttributeDecl (ASAttributeDeclaration attributeDecl)

Adds an ASAttributeDeclaration for the element being declared.

Parameters
attributeDecl The new attribute to add. If the attribute declaration already exists for the element, the call does not have any effect.

public abstract ASNamedObjectMap getASAttributeDecls ()

TheASNamedObjectMap containing ASAttributeDeclarations for all the attributes that can appear on this type of element.

public abstract ASContentModel getAsCM ()

The content model of element.

public abstract short getContentType ()

The content type of the element. One of EMPTY_CONTENTTYPE, ANY_CONTENTTYPE, MIXED_CONTENTTYPE, ELEMENTS_CONTENTTYPE.

public abstract ASDataType getElementType ()

Datatype of the element.

public abstract boolean getIsPCDataOnly ()

Boolean defining whether the element type contains child elements and PCDATA or PCDATA only for mixed element types. true if the element is of type PCDATA only. Relevant only for mixed content type elements.

public abstract boolean getStrictMixedContent ()

A boolean defining whether the element order and number of the child elements for mixed content type has to be respected or not. For example XML Schema defined mixed content types the order is important and needs to be respected whether for DTD based AS the order and number of child elements are not important.

public abstract String getSystemId ()

the URI reference representing the system identifier for the notation declaration, if present, null otherwise.

public abstract ASAttributeDeclaration removeASAttributeDecl (ASAttributeDeclaration attributeDecl)

Removes an ASAttributeDeclaration from the element being declared.

Parameters
attributeDecl The attribute declaraition to be removed. If the attribute declaration does not exist for the element, the call does not have any effect.
Returns
  • null if the attribute does not exist. Otherwise returns the attribute being removed.

public abstract void setASAttributeDecls (ASNamedObjectMap ASAttributeDecls)

TheASNamedObjectMap containing ASAttributeDeclarations for all the attributes that can appear on this type of element.

public abstract void setAsCM (ASContentModel asCM)

The content model of element.

public abstract void setContentType (short contentType)

The content type of the element. One of EMPTY_CONTENTTYPE, ANY_CONTENTTYPE, MIXED_CONTENTTYPE, ELEMENTS_CONTENTTYPE.

public abstract void setElementType (ASDataType elementType)

Datatype of the element.

public abstract void setIsPCDataOnly (boolean isPCDataOnly)

Boolean defining whether the element type contains child elements and PCDATA or PCDATA only for mixed element types. true if the element is of type PCDATA only. Relevant only for mixed content type elements.

public abstract void setStrictMixedContent (boolean strictMixedContent)

A boolean defining whether the element order and number of the child elements for mixed content type has to be respected or not. For example XML Schema defined mixed content types the order is important and needs to be respected whether for DTD based AS the order and number of child elements are not important.

public abstract void setSystemId (String systemId)

the URI reference representing the system identifier for the notation declaration, if present, null otherwise.