Class mozile.rng.Empty
Object
|
+--mozile.rng.Node
|
+--mozile.rng.Empty
- class
mozile.rng.Empty
- 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.Empty
mozile.rng.Empty()
Represents an RNG "empty" element.
An empty element indicates that the element can have no child nodes of any kind, including attributes and non-whitespace text.
Specification
Parameters:
element
- The RNG element to represent.
mayHave
Boolean mayHave(<String> type)
True if the type is "empty". False otherwise since empty can't have children.
Parameters:
type
- The type to be matched.
mustHave
Boolean mustHave(<String> type)
True if the type is "empty". False otherwise since empty can't have children.
Parameters:
type
- The type to be matched.
selfValidate
mozile.rng.Validation selfValidate(validation)
Validates this RNG object. Empty 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