Class mozile.rng.Grammar

Object
   |
   +--mozile.rng.Node
         |
         +--mozile.rng.Grammar

class mozile.rng.Grammar
extends mozile.rng.Node

Defined in rng.js


Constructor Summary
mozile.rng.Grammar ()
            Represents an RNG "grammar" element.
 
Method Summary
 mozile.rng.Define addDefinition(<mozile.rng.Define> definition)
           Adds the definition to the associative array of definitions.
 mozile.rng.Node appendChild(<mozile.rng.Node> child)
           Appends the given child to this object's list of children.
 mozile.rng.Define getDefinition(<String> name)
           Given a name, returns a definition object.
 mozile.rng.Grammar getParentGrammar()
           Gets the grammar's first ancestor which is an mozile.rng.Grammar.
 mozile.rng.Start getStart()
           Gets the start element.
 Boolean mayHave(<String|Element> type, <String> name)
           True if the type is "grammar".
 Boolean mustHave(<String|Element> type, <String> name)
           True if the type is "grammar".
 mozile.rng.Start setStart(start)
           Sets the start element.
 mozile.rng.Validation validate(<Node> node, <mozile.rng.Validation> validation)
           Validates the node by calling the grammar's start node's validation method.
 
Methods inherited from class mozile.rng.Node
toString, getType, getSchema, getGrammar, getParentNode, getParentElement, getNextSibling, getChildNodes, getChildNode, removeChild, getDescendants, generateKey, mustContain, mayContain, reset, resetAll, selfValidate, selfValidateAll
 

Constructor Detail

mozile.rng.Grammar

mozile.rng.Grammar()

Method Detail

addDefinition

mozile.rng.Define addDefinition(<mozile.rng.Define> definition)

appendChild

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

getDefinition

mozile.rng.Define getDefinition(<String> name)

getParentGrammar

mozile.rng.Grammar getParentGrammar()

getStart

mozile.rng.Start getStart()

mayHave

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

mustHave

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

setStart

mozile.rng.Start setStart(start)

validate

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


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