Node
from with additional methods
for guided document editing. The expectation is that an instance of the
DOMImplementationAS
interface can be obtained by using
binding-specific casting methods on an instance of the
DOMImplementation
interface when the DOM implementation
supports the feature "AS-DOC
".
See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.
public interface NodeEditAS
Modifier and Type | Field and Description |
---|---|
static short |
NS_WF_CHECK
Deprecated.
Check for namespace well-formedness includes
WF_CHECK . |
static short |
PARTIAL_VALIDITY_CHECK
Deprecated.
Checks for whether this node is partially valid.
|
static short |
STRICT_VALIDITY_CHECK
Deprecated.
Checks for strict validity of the node with respect to active AS which
by definition includes
NS_WF_CHECK . |
static short |
WF_CHECK
Deprecated.
Check for well-formedness of this node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAppendChild(Node newChild)
Deprecated.
Has the same arguments as
AppendChild . |
boolean |
canInsertBefore(Node newChild,
Node refChild)
Deprecated.
Determines whether the
insertBefore operation from the
Node interface would make this document invalid with
respect to the currently active AS. |
boolean |
canRemoveChild(Node oldChild)
Deprecated.
Has the same arguments as
RemoveChild . |
boolean |
canReplaceChild(Node newChild,
Node oldChild)
Deprecated.
Has the same arguments as
ReplaceChild . |
boolean |
isNodeValid(boolean deep,
short wFValidityCheckLevel)
Deprecated.
Determines if the Node is valid relative to currently active AS.
|
static final short WF_CHECK
static final short NS_WF_CHECK
WF_CHECK
.static final short PARTIAL_VALIDITY_CHECK
NS_WF_CHECK
.static final short STRICT_VALIDITY_CHECK
NS_WF_CHECK
.boolean canInsertBefore(Node newChild, Node refChild)
insertBefore
operation from the
Node
interface would make this document invalid with
respect to the currently active AS. Describe "valid" when referring
to partially completed documents.newChild
- Node
to be inserted.refChild
- Reference Node
.true
if no reason it can't be done;
false
if it can't be done.boolean canRemoveChild(Node oldChild)
RemoveChild
.oldChild
- Node
to be removed.true
if no reason it can't be done;
false
if it can't be done.boolean canReplaceChild(Node newChild, Node oldChild)
ReplaceChild
.newChild
- New Node
.oldChild
- Node
to be replaced.true
if no reason it can't be done;
false
if it can't be done.boolean canAppendChild(Node newChild)
AppendChild
.newChild
- Node
to be appended.true
if no reason it can't be done;
false
if it can't be done.boolean isNodeValid(boolean deep, short wFValidityCheckLevel) throws DOMASException
deep
- Setting the deep
flag on causes the
isNodeValid
method to check for the whole subtree of
the current node for validity. Setting it to false
only checks the current node and its immediate child nodes. The
validate
method on the DocumentAS
interface, however, checks to determine whether the entire document
is valid.wFValidityCheckLevel
- Flag to tell at what level validity and
well-formedness checking is done.true
if the node is valid/well-formed in the
current context and check level defined by
wfValidityCheckLevel
, false
if not.DOMASException
- NO_AS_AVAILABLE
: Raised if the
DocumentEditAS
related to this node does not have any
active ASModel
and wfValidityCheckLevel
is set to PARTIAL
or STRICT_VALIDITY_CHECK
.Copyright © 2016 JBoss by Red Hat. All rights reserved.