Packagedom.validation
Interfacepublic interface NodeEditVAL

Introduced in: DOM 3 Validation 

This interface is similar to the DOM Level 3 Core Node interface, with methods for guided document editing.

See also

W3C - NodeEditVAL


Public Properties
 PropertyDefined By
  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 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
Public Methods
 MethodDefined By
  
DOM 3 Validation canAppendChild(newChild:Node):Number
Determines whether the Node.appendChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation canInsertBefore(newChild:Node, refChild:Node):Number
Determines whether the Node.insertBefore operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation canRemoveChild(oldChild:Node):Number
Determines whether the Node.removeChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation canReplaceChild(newChild:Node, oldChild:Node):Number
Determines whether the Node.replaceChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation nodeValidity(valType:Number):Number
Determines if the node is valid relative to the validation type specified in valType.
NodeEditVAL
Property Detail
DOM 3 Validation defaultValueproperty
defaultValue:DOMString  [read-only]

Introduced in: DOM 3 Validation 

The default value specified in an attribute or an element declaration or null if unspecified. If the schema is a W3C XML schema, this is the canonical lexical representation of the default value.


Implementation
    public function get defaultValue():DOMString

See also

DOM 3 Validation enumeratedValuesproperty 
enumeratedValues:DOMStringList  [read-only]

Introduced in: DOM 3 Validation 

A DOMStringList, as described in DOM Level 3 Core, of distinct values for an attribute or an element declaration or null if unspecified. If the schema is a W3C XML schema, this is a list of strings which are lexical representations corresponding to the values in the [value] property of the enumeration component for the type of the attribute or element. It is recommended that the canonical lexical representations of the values be used.


Implementation
    public function get enumeratedValues():DOMStringList

See also

Method Detail
DOM 3 Validation canAppendChild()method
public function canAppendChild(newChild:Node):Number

Introduced in: DOM 3 Validation 

Determines whether the Node.appendChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.

Parameters

newChild:Node — Node to be appended.

Returns
Number — A validation state constant.

See also

DOM 3 Validation canInsertBefore()method 
public function canInsertBefore(newChild:Node, refChild:Node):Number

Introduced in: DOM 3 Validation 

Determines whether the Node.insertBefore operation would make this document not compliant with the VAL_INCOMPLETE validity type.

Parameters

newChild:Node — Node to be inserted.
 
refChild:Node — Reference Node.

Returns
Number — A validation state constant.

See also

DOM 3 Validation canRemoveChild()method 
public function canRemoveChild(oldChild:Node):Number

Introduced in: DOM 3 Validation 

Determines whether the Node.removeChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.

Parameters

oldChild:Node — Node to be removed.

Returns
Number — A validation state constant.

See also

DOM 3 Validation canReplaceChild()method 
public function canReplaceChild(newChild:Node, oldChild:Node):Number

Introduced in: DOM 3 Validation 

Determines whether the Node.replaceChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.

Parameters

newChild:Node — New Node.
 
oldChild:Node — Node to be replaced.

Returns
Number — A validation state constant.

See also

DOM 3 Validation nodeValidity()method 
public function nodeValidity(valType:Number):Number

Introduced in: DOM 3 Validation 

Determines if the node is valid relative to the validation type specified in valType. This operation doesn't normalize before checking if it is valid. To do so, one would need to explicitly call a normalize method. The difference between this method and the DocumentEditVAL.validateDocument method is that the latter method only checks to determine whether the entire document is valid.

Parameters

valType:Number — Flag to indicate the validation type checking to be done.

Returns
Number — A validation state constant.

See also