Class mozile.rng.Text
Object
|
+--mozile.rng.Node
|
+--mozile.rng.Text
- class
mozile.rng.Text
- extends mozile.rng.Node
Defined in rng.js
Methods inherited from class mozile.rng.Node |
toString, getType, getSchema, getGrammar, getParentNode, getParentElement, getNextSibling, getChildNodes, getChildNode, appendChild, removeChild, getDescendants, mustContain, mayContain, reset, resetAll, selfValidateAll
|
mozile.rng.Text
mozile.rng.Text()
Represents an RNG "text" element.
Parameters:
element
- The RNG element to represent.
mayHave
Boolean mayHave(<String> type)
True if the type is "text". False otherwise since text cannot have child nodes.
Parameters:
type
- The type to be matched.
mustHave
Boolean mustHave(<String> type)
True if the type is "text". False otherwise since text cannot have child nodes.
Parameters:
type
- The type to be matched.
selfValidate
mozile.rng.Validation selfValidate(validation)
Validates this RNG object. Text elements are not allowed to have children.
validate
mozile.rng.Validation validate(<Node> node, <mozile.rng.Validation> validation)
Parameters:
node
- The node to be validated.
validation
- The mozile.rng.Validation object for this validation operation.
Documentation generated by
JSDoc on Wed Aug 23 18:45:51 2006