Name
LzDataNode — The base class for a node of hierarchical data.
Description
LzDataNode
is the base class for the classes
that represent OpenLaszlo's hierarchical data format.
Development Note
LzDataNode is the abstract baseclass for LzDataElement and LzDataText.
N.B.: LzDataNode may or may not be an LzNode, so _if_ it were
to have an initialize method, it would have to match
LzNode.initialize's signature.Also N.B.: If this _does_ descend from LzNode and has initial
data, childNodes will have already been set by applyArgs, so
don't set it here!
Superclass Chain
LzDataNode
Details
Static Properties (5)
-
DOCUMENT_NODE
-
static public var DOCUMENT_NODE = 9;
-
ELEMENT_NODE
-
static public var ELEMENT_NODE = 1;
-
__LZescapechars
-
static private var __LZescapechars = { ... };
this is similar to the escape routine in LzText, but that one's shorter
since flash it's just for escaping ><
-
TEXT_NODE
-
static public var TEXT_NODE = 3;
-
whitespaceChars
-
static public var whitespaceChars = { ... };
Static Methods (2)
-
stringToLzData()
-
static public function stringToLzData(str : String, trimwhitespace : boolean, nsprefix : boolean) : LzDataElement;
Converts string to XML data.
-
trim()
-
static private function trim(str);
trim whitespace from start and end of string
Properties (1)
-
nodeType
-
public abstract var nodeType : Number;
The type of this node -- ELEMENT_NODE or TEXT_NODE
Methods (7)
-
childOf()
-
public function childOf(el : LzDataElement, allowself : Boolean);
Tells whether the given node is above this one in the node hierarchy.
-
getNextSibling()
-
public function getNextSibling() : LzDataNode;
Returns the sibling after this one this node's parentNodes List of children
-
getPreviousSibling()
-
public function getPreviousSibling() : LzDataNode;
Returns the sibling before this one this node's parentNodes List of children
-
__LZlockFromUpdate()
-
private function __LZlockFromUpdate(locker);
-
__LZunlockFromUpdate()
-
private function __LZunlockFromUpdate(locker);
-
__LZXMLescape()
-
private function __LZXMLescape(t);
-
setOwnerDocument()
-
public function setOwnerDocument(ownerDoc : LzDataNode);
Sets the LzDataNode which is the ownerDocument for this node.
Events (1)
-
onownerDocument
-
public event onownerDocument;
JavaScript Synopsis
public
LzDataNode {
static public function
stringToLzData
(
str : String,
trimwhitespace : boolean,
nsprefix : boolean) :
LzDataElement;
static private function
trim
(
str);
prototype public function
childOf
(
el : LzDataElement,
allowself : Boolean);
}