Class Index | File Index

Classes


Class xmldom.RelaxNG2


Defined in: RelaxNG2.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<inner>  
<inner>  
qName(node)
 
validate(walker, callback)
Validate the elements pointed to by the TreeWalker
<inner>  
validateAttribute(elementdef, walker, element)
<inner>  
validateChoice(elementdef, walker, element, data)
<inner>  
validateElement(elementdef, walker)
Validate an element.
<inner>  
validateGroup(elementdef, walker, element)
<inner>  
validateInterleave(elementdef, walker, element)
<inner>  
validateOneOrMore(elementdef, walker, element)
<inner>  
validatePattern(elementdef, walker, element, data)
<inner>  
validateText(elementdef, walker, element)
<inner>  
validateTop(elementdef, walker, element)
Class Detail
xmldom.RelaxNG2()
Method Detail
<inner> {!boolean} isWhitespace(node)
Parameters:
{!Node} node
Returns:
{!boolean}

<inner> {!string} qName(node)
Parameters:
{!Node} node
Returns:
{!string}

{undefined} validate(walker, callback)
Validate the elements pointed to by the TreeWalker
Parameters:
{!TreeWalker} walker
{!function(Array.):undefined} callback
Returns:
{undefined}

<inner> {Array.} validateAttribute(elementdef, walker, element)
Parameters:
elementdef
walker
{Element} element
Returns:
{Array.}

<inner> {Array.} validateChoice(elementdef, walker, element, data)
Parameters:
elementdef
walker
{Element} element
{string=} data
Returns:
{Array.}

<inner> {Array.} validateElement(elementdef, walker)
Validate an element. Function forwards the walker until an element is met. If element if of the right type, it is entered and the validation continues inside the element. After validation, regardless of whether an error occurred, the walker is at the same depth in the dom tree.
Parameters:
elementdef
walker
Returns:
{Array.}

<inner> {Array.} validateGroup(elementdef, walker, element)
Parameters:
elementdef
walker
{Element} element
Returns:
{Array.}

<inner> {Array.} validateInterleave(elementdef, walker, element)
Parameters:
elementdef
walker
{Element} element
Returns:
{Array.}

<inner> {Array.} validateOneOrMore(elementdef, walker, element)
Parameters:
elementdef
walker
{Element} element
Returns:
{Array.}

<inner> {Array.} validatePattern(elementdef, walker, element, data)
Parameters:
elementdef
walker
{Element} element
{string=} data
Returns:
{Array.}

<inner> {Array.} validateText(elementdef, walker, element)
Parameters:
elementdef
walker
{Element} element
Returns:
{Array.}

<inner> {Array.} validateTop(elementdef, walker, element)
Parameters:
elementdef
walker
{Element} element
Returns:
{Array.}

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jan 28 2014 15:10:26 GMT+0100 (CET)