Top Methods
org.apache.xerces.dom3.as

public Interface DocumentAS

Imports
org.w3c.dom.DOMException

Deprecated

This interface extends the Document interface with additional methods for both document and AS editing.

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

Method Summary

Modifier and TypeMethod and Description
public void
addAS(ASModel
ASModel to be associated with the document.
as
)

Deprecated as a consequence of ASModel being deprecated.
Associate a ASModel with a document.
public ASModel
getActiveASModel()

Deprecated as a consequence of ASModel being deprecated.
The active external ASModel.
public ASObjectList
getBoundASModels()

Deprecated as a consequence of ASObjectList being deprecated.
A list of ASObjects of type AS_MODELs associated with a document.
public ASElementDeclaration

Returns:

ASElementDeclaration object if the implementation supports " AS-EDIT" feature. Otherwise null.
getElementDeclaration
()

Deprecated as a consequence of ASElementDeclaration being deprecated.
Gets the AS editing object describing this elementThis method needs to be changed and others added.
public ASModel

Returns:

ASModel.
getInternalAS
()

Deprecated as a consequence of ASModel being deprecated.
Retrieve the internal ASModel of a document.
public void
removeAS(ASModel
The ASModel to be removed.
as
)

Deprecated as a consequence of ASModel being deprecated.
Removes a ASModel associated with a document.
public void
setActiveASModel(ASModel activeASModel)

Deprecated as a consequence of ASModel being deprecated.
The active external ASModel.
public void
setBoundASModels(ASObjectList boundASModels)

Deprecated as a consequence of ASObjectList being deprecated.
A list of ASObjects of type AS_MODELs associated with a document.
public void
setInternalAS(ASModel
ASModel to be the internal subset of the document.
as
)

Deprecated as a consequence of ASModel being deprecated.
Sets the internal subset ASModel of a document.
public void
validate()

Validates the document against the ASModel.

Method Detail

addASback to summary
public void addAS(ASModel as)

Deprecated

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

Associate a ASModel with a document. Can be invoked multiple times to result in a list of ASModels. Note that only one internal ASModel is associated with the document, however, and that only one of the possible list of ASModels is active at any one time.

Parameters
as:ASModel

ASModel to be associated with the document.

getActiveASModelback to summary
public ASModel getActiveASModel()

Deprecated

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

The active external ASModel. Note that the active external ASModel is responsible for consulting the internal ASModel, so if an attribute is declared in the internal ASModel and the corresponding ownerElements points to a ASElementDeclarations defined in the active external ASModel, changing the active external ASModel will cause the ownerElements to be recomputed. If the ownerElements is not defined in the newly active external ASModel, the ownerElements will be an empty node list.

getBoundASModelsback to summary
public ASObjectList getBoundASModels()

Deprecated

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

A list of ASObjects of type AS_MODELs associated with a document. The addAS method associates a ASModel with a document.

getElementDeclarationback to summary
public ASElementDeclaration getElementDeclaration() throws DOMException

Deprecated

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

Gets the AS editing object describing this elementThis method needs to be changed and others added.

Returns:ASElementDeclaration

ASElementDeclaration object if the implementation supports " AS-EDIT" feature. Otherwise null.

Exceptions
DOMException:
NOT_FOUND_ERR: Raised if no ASModel is present.
getInternalASback to summary
public ASModel getInternalAS()

Deprecated

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

Retrieve the internal ASModel of a document.

Returns:ASModel

ASModel.

removeASback to summary
public void removeAS(ASModel as)

Deprecated

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

Removes a ASModel associated with a document. Can be invoked multiple times to remove a number of these in the list of ASModels.

Parameters
as:ASModel

The ASModel to be removed.

setActiveASModelback to summary
public void setActiveASModel(ASModel activeASModel)

Deprecated

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

The active external ASModel. Note that the active external ASModel is responsible for consulting the internal ASModel, so if an attribute is declared in the internal ASModel and the corresponding ownerElements points to a ASElementDeclarations defined in the active external ASModel, changing the active external ASModel will cause the ownerElements to be recomputed. If the ownerElements is not defined in the newly active external ASModel, the ownerElements will be an empty node list.

setBoundASModelsback to summary
public void setBoundASModels(ASObjectList boundASModels)

Deprecated

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

A list of ASObjects of type AS_MODELs associated with a document. The addAS method associates a ASModel with a document.

setInternalASback to summary
public void setInternalAS(ASModel as)

Deprecated

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

Sets the internal subset ASModel of a document. This could be null as a mechanism for "removal".

Parameters
as:ASModel

ASModel to be the internal subset of the document.

validateback to summary
public void validate() throws DOMASException

Validates the document against the ASModel.