Class mozile.rng.Node

Object
   |
   +--mozile.rng.Node
Direct Known Subclasses:
mozile.rng.Empty, mozile.rng.Interleave, mozile.rng.Element, mozile.rng.OneOrMore, mozile.rng.Include, mozile.rng.ZeroOrMore, mozile.rng.Define, mozile.rng.Data, mozile.rng.Group, mozile.rng.Ref, mozile.rng.Param, mozile.rng.Value, mozile.rng.Start, mozile.rng.Text, mozile.rng.Grammar, mozile.rng.Optional, mozile.rng.Attribute, mozile.rng.Div, mozile.rng.Choice

class mozile.rng.Node

Defined in rng.js


Constructor Summary
mozile.rng.Node ()
            Represents any element from a RelaxNG grammar.
 
Method Summary
 mozile.rng.Node appendChild(<mozile.rng.Node> child)
           Appends the child to this object's list of child nodes and sets its parentNode.
 String generateKey(<String|Element> type, <String> name)
           True if the current element must contain at least one child of the given type.
 mozile.rng.Node getChildNode(<Integer> index)
           Gets the child nodes at the given index.
 Array getChildNodes()
           Gets an array of the node's child nodes.
 Array getDescendants(types, <Boolean> deep)
           Gets an array of all the elements which descend from this node.
 mozile.rng.Grammar getGrammar()
           Gets the mozile.rng.Node's parent mozile.rng.Grammar.
 String getNextSibling()
           Gets the element's parentNode.
 mozile.rng.Element getParentElement()
           Gets the element's first ancestor which is an mozile.rng.Element.
 mozile.rng.Node getParentNode()
           Gets the element's parentNode.
 mozile.rng.Schema getSchema()
           Gets the mozile.rng.Node's owner mozile.rng.Schema.
 String getType()
           Gets the element's localName.
 Boolean mayContain(<String|Element> type, <String> name)
           True if the current element may contain at least one child of the given type.
 Boolean mayHave(<String|Element> type, <String> name)
           True if the current element is of the given type or may contain at least one child of the given type.
 Boolean mustContain(<String|Element> type, <String> name)
           True if the current element must contain at least one child of the given type.
 Boolean mustHave(<String|Element> type, <String> name)
           True if the current element is of the given type or must contain at least one child of the given type.
 mozile.rng.Node removeChild(<mozile.rng.Node> child)
           Removes the child from this object's list of child node, and unsets its parentNode.
 Void reset()
           Resets all cached data in this node.
 Void resetAll()
           Resets all cached data for this node and all children.
 mozile.rng.Validation selfValidate(validation)
           Validates this RNG object.
 mozile.rng.Validation selfValidateAll(validation)
           Validates this RNG object and its children.
 String toString()
           Returns the identifier "[object mozile.rng.Node]".
 mozile.rng.Validation validate(<Node> node, <mozile.rng.Validation> validation)
           Validates the node.

Constructor Detail

mozile.rng.Node

mozile.rng.Node()

Method Detail

appendChild

mozile.rng.Node appendChild(<mozile.rng.Node> child)

generateKey

String generateKey(<String|Element> type, <String> name)

getChildNode

mozile.rng.Node getChildNode(<Integer> index)

getChildNodes

Array getChildNodes()

getDescendants

Array getDescendants(types, <Boolean> deep)

getGrammar

mozile.rng.Grammar getGrammar()

getNextSibling

String getNextSibling()

getParentElement

mozile.rng.Element getParentElement()

getParentNode

mozile.rng.Node getParentNode()

getSchema

mozile.rng.Schema getSchema()

getType

String getType()

mayContain

Boolean mayContain(<String|Element> type, <String> name)

mayHave

Boolean mayHave(<String|Element> type, <String> name)

mustContain

Boolean mustContain(<String|Element> type, <String> name)

mustHave

Boolean mustHave(<String|Element> type, <String> name)

removeChild

mozile.rng.Node removeChild(<mozile.rng.Node> child)

reset

Void reset()

resetAll

Void resetAll()

selfValidate

mozile.rng.Validation selfValidate(validation)

selfValidateAll

mozile.rng.Validation selfValidateAll(validation)

toString

String toString()

validate

mozile.rng.Validation validate(<Node> node, <mozile.rng.Validation> validation)


Documentation generated by JSDoc on Wed Feb 20 13:25:28 2008