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, generateKey, 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|Element> type, <String> name)
True if the type is "text". False otherwise since text cannot have child nodes.
Parameters:
type - Either the type of node to be matched or the exact node to be matched.
name - Optional. The name to be matched.
mustHave
Boolean mustHave(<String|Element> type, <String> name)
True if the type is "text". False otherwise since text cannot have child nodes.
Parameters:
type - Either the type of node to be matched or the exact node to be matched.
name - Optional. The name 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 Feb 20 13:25:28 2008