Package | dom.validation |
Interface | public interface DocumentEditVAL extends NodeEditVAL |
Introduced in: | DOM 3 Validation |
See also
Property | Defined By | ||
---|---|---|---|
DOM 3 Validation continuousValidityChecking : Boolean
An attribute specifying whether the validity of the document is continuously enforced. | DocumentEditVAL | ||
DOM 3 Validation defaultValue : DOMString [read-only]
The default value specified in an attribute or an element declaration or null if unspecified. | NodeEditVAL | ||
DOM 3 Validation domConfig : DOMConfiguration [read-only]
This allows the setting of the error handler, as described in the [DOM Level 3 Core] DOMConfiguration interface. | DocumentEditVAL | ||
DOM 3 Validation enumeratedValues : DOMStringList [read-only]
A DOMStringList, as described in DOM Level 3 Core, of distinct values for an attribute or an element declaration or
null if unspecified. | NodeEditVAL |
Method | Defined By | ||
---|---|---|---|
Determines whether the Node.appendChild operation would make this document not compliant with the VAL_INCOMPLETE validity type. | NodeEditVAL | ||
Determines whether the Node.insertBefore operation would make this document not compliant with the VAL_INCOMPLETE validity type. | NodeEditVAL | ||
Determines whether the Node.removeChild operation would make this document not compliant with the VAL_INCOMPLETE validity type. | NodeEditVAL | ||
Determines whether the Node.replaceChild operation would make this document not compliant with the VAL_INCOMPLETE validity type. | NodeEditVAL | ||
Returns list of all element information item names of global declaration, belonging to the specified namespace. | DocumentEditVAL | ||
DOM 3 Validation nodeValidity(valType:Number):Number
Determines if the node is valid relative to the validation type specified in valType. | NodeEditVAL | ||
DOM 3 Validation validateDocument():Number
Validates the document against the schema, e.g., a DTD or an W3C XML schema or another. | DocumentEditVAL |
DOM 3 Validation continuousValidityChecking | property |
continuousValidityChecking:Boolean
Introduced in: | DOM 3 Validation |
An attribute specifying whether the validity of the document is continuously enforced. When the attribute is set to true, the implementation may raise certain exceptions, depending on the situation (see the following).
The default value is false
.
public function get continuousValidityChecking():Boolean
public function set continuousValidityChecking(value:Boolean):void
DOMException — NOT_SUPPORTED_ERR: Raised if the implementation does not support setting this attribute to true.
| |
ExceptionVAL — NO_SCHEMA_AVAILABLE_ERR: Raised if this attribute is set to true and a schema is unavailable.
| |
DOMException — VALIDATION_ERR: Raised if an operation makes this document not compliant with the VAL_INCOMPLETE
validity type or the document is invalid, and this attribute is set to true.
|
See also
DOM 3 Validation domConfig | property |
domConfig:DOMConfiguration
[read-only] Introduced in: | DOM 3 Validation |
This allows the setting of the error handler, as described in the [DOM Level 3 Core] DOMConfiguration interface. An object implementing this DocumentEditVAL interface and the DOM Level 3 Core Document interface, which also has a domConfig attribute, needs to only implement this attribute once.
public function get domConfig():DOMConfiguration
See also
DOM 3 Validation getDefinedElements | () | method |
public function getDefinedElements(namespaceURI:DOMString):NameList
Introduced in: | DOM 3 Validation |
Returns list of all element information item names of global declaration, belonging to the specified namespace.
Parameters
namespaceURI:DOMString — namespaceURI of namespace. For DTDs, this is null.
|
NameList — List of all element information item names belonging to the specified namespace or null if no schema is available.
|
See also
DOM 3 Validation validateDocument | () | method |
public function validateDocument():Number
Introduced in: | DOM 3 Validation |
Validates the document against the schema, e.g., a DTD or an W3C XML schema or another. Any attempt to modify any part of the document while validating results in implementation-dependent behavior. In addition, the validation operation itself cannot modify the document, e.g., for default attributes. This method makes use of the error handler, as described in the DOM Level 3 Core DOMConfiguration interface, with all errors being SEVERITY_ERROR as defined in the DOMError interface.
ReturnsNumber — A validation state constant.
|
See also