|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.rng.Node
Defined in rng.js
Constructor Summary | |
mozile.rng.Node
()
Represents any element from a RelaxNG grammar. |
Method Summary | |
mozile.rng.Node
|
appendChild(<mozile.rng.Node> child)
Appends the child to this object's list of child nodes and sets its parentNode. |
mozile.rng.Node
|
getChildNode(<Integer> index)
Gets the child nodes at the given index. |
Array
|
getChildNodes()
Gets an array of the node's child nodes. |
Array
|
getDescendants(types, <Boolean> deep)
Gets an array of all the elements which descend from this node. |
mozile.rng.Grammar
|
getGrammar()
Gets the mozile.rng.Node's parent mozile.rng.Grammar. |
String
|
getNextSibling()
Gets the element's parentNode. |
mozile.rng.Element
|
getParentElement()
Gets the element's first ancestor which is an mozile.rng.Element. |
mozile.rng.Node
|
getParentNode()
Gets the element's parentNode. |
mozile.rng.Schema
|
getSchema()
Gets the mozile.rng.Node's owner mozile.rng.Schema. |
String
|
getType()
Gets the element's localName. |
Boolean
|
mayContain(<String> type)
True if the current element may contain at least one child of the given type. |
Boolean
|
mayHave(<String> type)
True if the current element is of the given type or may contain at least one child of the given type. |
Boolean
|
mustContain(<String> type)
True if the current element must contain at least one child of the given type. |
Boolean
|
mustHave(<String> type)
True if the current element is of the given type or must contain at least one child of the given type. |
mozile.rng.Node
|
removeChild(<mozile.rng.Node> child)
Removes the child from this object's list of child node, and unsets its parentNode. |
Void
|
reset()
Resets all cached data in this node. |
Void
|
resetAll()
Resets all cached data for this node and all children. |
mozile.rng.Validation
|
selfValidate(validation)
Validates this RNG object. |
mozile.rng.Validation
|
selfValidateAll(validation)
Validates this RNG object and its children. |
String
|
toString()
Returns the identifier "[object mozile.rng.Node]". |
mozile.rng.Validation
|
validate(<Node> node, <mozile.rng.Validation> validation)
Validates the node. |
Constructor Detail |
mozile.rng.Node()
element
- The RNG element to represent.
Method Detail |
mozile.rng.Node appendChild(<mozile.rng.Node> child)
child
- The child to be appended.
mozile.rng.Node getChildNode(<Integer> index)
index
-
Array getChildNodes()
Array getDescendants(types, <Boolean> deep)
types
- The RNG element type(s) of search for. Can be a string or an array of strings. E.g. "element".
deep
- Optional. If the current node is an element and "deep" is true, then its children are included.
mozile.rng.Grammar getGrammar()
String getNextSibling()
mozile.rng.Element getParentElement()
mozile.rng.Node getParentNode()
mozile.rng.Schema getSchema()
String getType()
Boolean mayContain(<String> type)
type
- The type to be matched.
Boolean mayHave(<String> type)
type
- The type to be matched.
Boolean mustContain(<String> type)
type
- The type to be matched.
Boolean mustHave(<String> type)
type
- The type to be matched.
mozile.rng.Node removeChild(<mozile.rng.Node> child)
child
- The child to be removed.
Void reset()
Void resetAll()
mozile.rng.Validation selfValidate(validation)
mozile.rng.Validation selfValidateAll(validation)
String toString()
mozile.rng.Validation validate(<Node> node, <mozile.rng.Validation> validation)
node
- The node to be validated.
validation
- The validation object for this validation operation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |