Top Fields Methods
org.apache.xerces.dom3.as

public Interface ASElementDeclaration

extends ASObject

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.

Field Summary

Modifier and TypeField and Description
public static final short
ANY_CONTENTTYPE

Represents an ANY content type for an Element declaration.

public static final short
ELEMENTS_CONTENTTYPE

Represents an ELEMENTS only content type for an Element declaration.

public static final short
EMPTY_CONTENTTYPE

Represents an EMPTY content type for an Element declaration.

public static final short
MIXED_CONTENTTYPE

Represents a MIXED content type for an Element declaration.

Inherited from org.apache.xerces.dom3.as.ASObject:
AS_ATTRIBUTE_DECLARATIONAS_CONTENTMODELAS_ELEMENT_DECLARATIONAS_ENTITY_DECLARATIONAS_MODELAS_NOTATION_DECLARATION

Method Summary

Modifier and TypeMethod and Description
public void
addASAttributeDecl(ASAttributeDeclaration
The new attribute to add. If the attribute declaration already exists for the element, the call does not have any effect.
attributeDecl
)

Deprecated as a consequence of ASAttributeDeclaration being deprecated.
Adds an ASAttributeDeclaration for the element being declared.
public ASNamedObjectMap
getASAttributeDecls()

Deprecated as a consequence of ASNamedObjectMap being deprecated.
TheASNamedObjectMap containing ASAttributeDeclarations for all the attributes that can appear on this type of element.
public ASContentModel
getAsCM()

Deprecated as a consequence of ASContentModel being deprecated.
The content model of element.
public short
getContentType()

The content type of the element.

public ASDataType
getElementType()

Deprecated as a consequence of ASDataType being deprecated.
Datatype of the element.
public boolean
getIsPCDataOnly()

Boolean defining whether the element type contains child elements and PCDATA or PCDATA only for mixed element types.

public 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.

public String
getSystemId()

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

public ASAttributeDeclaration

Returns:

null if the attribute does not exist. Otherwise returns the attribute being removed.
removeASAttributeDecl
(ASAttributeDeclaration
The attribute declaraition to be removed. If the attribute declaration does not exist for the element, the call does not have any effect.
attributeDecl
)

Deprecated as a consequence of ASAttributeDeclaration being deprecated.
Removes an ASAttributeDeclaration from the element being declared.
public void
setASAttributeDecls(ASNamedObjectMap ASAttributeDecls)

Deprecated as a consequence of ASNamedObjectMap being deprecated.
TheASNamedObjectMap containing ASAttributeDeclarations for all the attributes that can appear on this type of element.
public void
setAsCM(ASContentModel asCM)

Deprecated as a consequence of ASContentModel being deprecated.
The content model of element.
public void
setContentType(short contentType)

The content type of the element.

public void
setElementType(ASDataType elementType)

Deprecated as a consequence of ASDataType being deprecated.
Datatype of the element.
public void
setIsPCDataOnly(boolean isPCDataOnly)

Boolean defining whether the element type contains child elements and PCDATA or PCDATA only for mixed element types.

public 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.

public void
setSystemId(String systemId)

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

Inherited from org.apache.xerces.dom3.as.ASObject:
cloneASObjectgetAsNodeTypegetLocalNamegetNamespaceURIgetNodeNamegetOwnerASModelgetPrefixsetLocalNamesetNamespaceURIsetNodeNamesetOwnerASModelsetPrefix

Field Detail

ANY_CONTENTTYPEback to summary
public static final short ANY_CONTENTTYPE

Represents an ANY content type for an Element declaration.

ELEMENTS_CONTENTTYPEback to summary
public static final short ELEMENTS_CONTENTTYPE

Represents an ELEMENTS only content type for an Element declaration.

EMPTY_CONTENTTYPEback to summary
public static final short EMPTY_CONTENTTYPE

Represents an EMPTY content type for an Element declaration.

MIXED_CONTENTTYPEback to summary
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.

Method Detail

addASAttributeDeclback to summary
public void addASAttributeDecl(ASAttributeDeclaration attributeDecl)

Deprecated

as a consequence of ASAttributeDeclaration being deprecated. See corresponding docs for further information.

Adds an ASAttributeDeclaration for the element being declared.

Parameters
attributeDecl:ASAttributeDeclaration

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

getASAttributeDeclsback to summary
public ASNamedObjectMap getASAttributeDecls()

Deprecated

as a consequence of ASNamedObjectMap being deprecated. See corresponding docs for further information.

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

getAsCMback to summary
public ASContentModel getAsCM()

Deprecated

as a consequence of ASContentModel being deprecated. See corresponding docs for further information.

The content model of element.

getContentTypeback to summary
public short getContentType()

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

getElementTypeback to summary
public ASDataType getElementType()

Deprecated

as a consequence of ASDataType being deprecated. See corresponding docs for further information.

Datatype of the element.

getIsPCDataOnlyback to summary
public 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.

getStrictMixedContentback to summary
public 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.

getSystemIdback to summary
public String getSystemId()

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

removeASAttributeDeclback to summary
public ASAttributeDeclaration removeASAttributeDecl(ASAttributeDeclaration attributeDecl)

Deprecated

as a consequence of ASAttributeDeclaration being deprecated. See corresponding docs for further information.

Removes an ASAttributeDeclaration from the element being declared.

Parameters
attributeDecl:ASAttributeDeclaration

The attribute declaraition to be removed. If the attribute declaration does not exist for the element, the call does not have any effect.

Returns:ASAttributeDeclaration

null if the attribute does not exist. Otherwise returns the attribute being removed.

setASAttributeDeclsback to summary
public void setASAttributeDecls(ASNamedObjectMap ASAttributeDecls)

Deprecated

as a consequence of ASNamedObjectMap being deprecated. See corresponding docs for further information.

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

setAsCMback to summary
public void setAsCM(ASContentModel asCM)

Deprecated

as a consequence of ASContentModel being deprecated. See corresponding docs for further information.

The content model of element.

setContentTypeback to summary
public void setContentType(short contentType)

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

setElementTypeback to summary
public void setElementType(ASDataType elementType)

Deprecated

as a consequence of ASDataType being deprecated. See corresponding docs for further information.

Datatype of the element.

setIsPCDataOnlyback to summary
public 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.

setStrictMixedContentback to summary
public 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.

setSystemIdback to summary
public void setSystemId(String systemId)

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