org.apache.xerces.dom3.as
Interface DocumentAS
public interface DocumentAS
addAS
public void addAS(ASModel as)
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.
as - ASModel to be associated with the document.
getActiveASModel
public ASModel getActiveASModel()
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.
getBoundASModels
public ASObjectList getBoundASModels()
A list of ASObjects of type AS_MODELs
associated with a document. The addAS method associates
a ASModel with a document.
getElementDeclaration
public ASElementDeclaration getElementDeclaration()
throws DOMException Gets the AS editing object describing this elementThis method needs to
be changed and others added.
- ASElementDeclaration object if the implementation supports "
AS-EDIT" feature. Otherwise null.
getInternalAS
public ASModel getInternalAS()
Retrieve the internal ASModel of a document.
ASModel.
removeAS
public void removeAS(ASModel as)
Removes a ASModel associated with a document. Can be
invoked multiple times to remove a number of these in the list of
ASModels.
as - The ASModel to be removed.
setActiveASModel
public void setActiveASModel(ASModel activeASModel)
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.
setBoundASModels
public void setBoundASModels(ASObjectList boundASModels)
A list of ASObjects of type AS_MODELs
associated with a document. The addAS method associates
a ASModel with a document.
setInternalAS
public void setInternalAS(ASModel as)
Sets the internal subset ASModel of a document. This could
be null as a mechanism for "removal".
as - ASModel to be the internal subset of the
document.
Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.