Class mozile.rng.Element
Object
|
+--mozile.rng.Node
|
+--mozile.rng.Element
- class
mozile.rng.Element
- extends mozile.rng.Node
Defined in rng.js
Field Summary |
String |
getLocalName
Gets the local part of the qualified name of the element. |
String |
getName
Gets the full name of the element. |
String |
getPrefix
Gets the prefix part of the qualified name of the element. |
Methods inherited from class mozile.rng.Node |
toString, getType, getSchema, getGrammar, getParentNode, getParentElement, getNextSibling, getChildNodes, getChildNode, appendChild, removeChild, getDescendants, mustContain, mayContain, reset, resetAll, selfValidate, selfValidateAll
|
getLocalName
String getLocalName
Gets the local part of the qualified name of the element.
getName
String getName
Gets the full name of the element. Strips leading and trailing whitespace.
getPrefix
String getPrefix
Gets the prefix part of the qualified name of the element.
mozile.rng.Element
mozile.rng.Element()
Represents an RNG "element" element.
Parameters:
element
- The RNG element to represent.
getNamespace
String getNamespace()
Gets the namespace for the element.
If the element has an "ns" attribute, that is returned.
If the element's name has a prefix, the namespace for that prefix is looked up and returned.
The element's ancestor elements are checked for an "ns" attribute.
If no namespace is found, null is returned.
Specification
mayHave
Boolean mayHave(<String> type)
True if this is an element. False otherwise since the element is the basic unit of validation.
Parameters:
type
- The type to be matched.
mustHave
Boolean mustHave(<String> type)
True if this is an element. False otherwise since the element is the basic unit of validation.
Parameters:
type
- The type to be matched.
validate
mozile.rng.Validation validate(<Node> node, <mozile.rng.Validation> validation)
Validates the node.
Operates in stages, first checking that the node itself is valid, then checking the contents of the node.
Parameters:
node
- The node to be validated.
validation
- Optional. The validation object for this validation operation.
Documentation generated by
JSDoc on Wed Aug 23 18:45:51 2006