|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--mozile.rng.Node
|
+--mozile.rng.Grammar
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> type)
True if the type is "grammar". |
Boolean
|
mustHave(<String> type)
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, mustContain, mayContain, reset, resetAll, selfValidate, selfValidateAll
|
| Constructor Detail |
mozile.rng.Grammar()
element - The RNG element to represent.
| Method Detail |
mozile.rng.Define addDefinition(<mozile.rng.Define> definition)
definition - The definition to be added.
mozile.rng.Node appendChild(<mozile.rng.Node> child)
child - The child to be appended.
mozile.rng.Define getDefinition(<String> name)
name - The name of the definition.
mozile.rng.Grammar getParentGrammar()
mozile.rng.Start getStart()
Boolean mayHave(<String> type)
type - The type to be matched.
Boolean mustHave(<String> type)
type - The type to be matched.
mozile.rng.Start setStart(start)
mozile.rng.Validation validate(<Node> node, <mozile.rng.Validation> validation)
node - The node to be validated.
validation - Optional. The validation object for this validation operation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||