| org.apache.xerces.dom3.as.NodeEditAS
NodeEditAS | public interface NodeEditAS (Code) | | |
Field Summary | |
final public static short | NS_WF_CHECK Check for namespace well-formedness includes WF_CHECK . | final public static short | PARTIAL_VALIDITY_CHECK Checks for whether this node is partially valid. | final public static short | STRICT_VALIDITY_CHECK Checks for strict validity of the node with respect to active AS which
by definition includes NS_WF_CHECK . | final public static short | WF_CHECK Check for well-formedness of this node. |
Method Summary | |
public boolean | canAppendChild(Node newChild) Has the same arguments as AppendChild .
Parameters: newChild - Node to be appended. | public boolean | canInsertBefore(Node newChild, Node refChild) Determines whether the insertBefore operation from the
Node interface would make this document invalid with
respect to the currently active AS. | public boolean | canRemoveChild(Node oldChild) Has the same arguments as RemoveChild .
Parameters: oldChild - Node to be removed. | public boolean | canReplaceChild(Node newChild, Node oldChild) Has the same arguments as ReplaceChild .
Parameters: newChild - New Node . Parameters: oldChild - Node to be replaced. | public boolean | isNodeValid(boolean deep, short wFValidityCheckLevel) Determines if the Node is valid relative to currently active AS. |
NS_WF_CHECK | final public static short NS_WF_CHECK(Code) | | Check for namespace well-formedness includes WF_CHECK .
|
PARTIAL_VALIDITY_CHECK | final public static short PARTIAL_VALIDITY_CHECK(Code) | | Checks for whether this node is partially valid. It includes
NS_WF_CHECK .
|
STRICT_VALIDITY_CHECK | final public static short STRICT_VALIDITY_CHECK(Code) | | Checks for strict validity of the node with respect to active AS which
by definition includes NS_WF_CHECK .
|
WF_CHECK | final public static short WF_CHECK(Code) | | Check for well-formedness of this node.
|
canAppendChild | public boolean canAppendChild(Node newChild)(Code) | | Has the same arguments as AppendChild .
Parameters: newChild - Node to be appended. true if no reason it can't be done; false if it can't be done. |
canInsertBefore | public boolean canInsertBefore(Node newChild, Node refChild)(Code) | | Determines whether the 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.
Parameters: newChild - Node to be inserted. Parameters: refChild - Reference Node . true if no reason it can't be done; false if it can't be done. |
canRemoveChild | public boolean canRemoveChild(Node oldChild)(Code) | | Has the same arguments as RemoveChild .
Parameters: oldChild - Node to be removed. true if no reason it can't be done; false if it can't be done. |
canReplaceChild | public boolean canReplaceChild(Node newChild, Node oldChild)(Code) | | Has the same arguments as ReplaceChild .
Parameters: newChild - New Node . Parameters: oldChild - Node to be replaced. true if no reason it can't be done; false if it can't be done. |
isNodeValid | public boolean isNodeValid(boolean deep, short wFValidityCheckLevel) throws DOMASException(Code) | | Determines if the Node is valid relative to currently active AS. It
doesn't normalize before checking if the document is valid. To do so,
one would need to explicitly call a normalize method.
Parameters: 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. Parameters: 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. exception: 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 . |
|
|