DzDomNode Class Reference
[DOM and XML Objects]

DAZ Script DOM base class. More...

Inheritance diagram for DzDomNode:

DzDomAttr DzDomBasicNode DzDomCharacterData DzDomDocument DzDomDocumentFragment DzDomDocumentType DzDomElement DzDomEntity DzDomEntityReference DzDomNotation DzDomProcessingInstruction List of all members.

Enumerations

enum  NodeType {
  ElementNode, AttributeNode, TextNode, CDATASectionNode,
  EntityReferenceNode, EntityNode, ProcessingInstructionNode, CommentNode,
  DocumentNode, DocumentTypeNode, DocumentFragmentNode, NotationNode,
  BaseNode, CharacterDataNode
}

Properties

String localName
String namespaceURI
String nodeName
NodeType nodeType
String nodeValue
String prefix

Methods

void appendChild (DzDomNode child)
Boolean clear ()
DzDomNode cloneNode (Boolean deep=true)
DzDomNode firstChild ()
Boolean hasAttributes ()
Boolean hasChildNodes ()
void insertAfter (DzDomNode newChild, DzDomNode refChild)
void insertBefore (DzDomNode newChild, DzDomNode refChild)
Boolean isAttr ()
Boolean isCDATASection ()
Boolean isCharacterData ()
Boolean isComment ()
Boolean isDocument ()
Boolean isDocumentFragment ()
Boolean isDocumentType ()
Boolean isElement ()
Boolean isEntity ()
Boolean isEntityReference ()
Boolean isNotation ()
Boolean isNull ()
Boolean isProcessingInstruction ()
Boolean isSupported (String feature, String version)
Boolean isText ()
DzDomNode lastChild ()
DzDomNode namedItem (String name)
DzDomNode nextSibling ()
void normalize ()
DzDomNode ownerDocument ()
DzDomNode parentNode ()
DzDomNode previousSibling ()
void removeChild (DzDomNode oldChild)
void replaceChild (DzDomNode newChild, DzDomNode oldChild)

Detailed Description

DAZ Script DOM base class.

This is an abstract base class that provides general functionality for DAZ Script DOM components.


Member Enumeration Documentation

enum DzDomNode::NodeType

Enumerated DOM node types

Enumerator:
ElementNode  A DOM Element
See also:
DzDomElement
AttributeNode  A DOM Attribute
See also:
DzDomAttr
TextNode  Plain Text in the DOM
See also:
DzDomText
CDATASectionNode  Character DATA node in the DOM
See also:
DzDomCDATASection
EntityReferenceNode  A Reference to a DOM Entity
See also:
DzDomEntityReference
EntityNode  A DOM Entity
See also:
DzDomEntity
ProcessingInstructionNode  A DOM Processing Instruction
See also:
DzDomProcessingInstruction
CommentNode  A DOM Comment
See also:
DzDomComment
DocumentNode  A DOM Document
See also:
DzDomDocument
DocumentTypeNode  A DOM Document Type
See also:
DzDomDocumentType
DocumentFragmentNode  A DOM Document Fragment
See also:
DzDomDocumentFragment
NotationNode  A DOM Notation
See also:
DzDomNotation
BaseNode  A basic node
See also:
DzDomBasicNode
CharacterDataNode  A Character Data node
See also:
DzDomCharacterData


Member Function Documentation

void DzDomNode::appendChild ( DzDomNode  child  ) 

Appends child to the end of this node's child list

void DzDomNode::clear (  ) 

Converts the node into an invalid (Null) node. Its type and contents are cleared.

DzDomNode DzDomNode::cloneNode ( Boolean  deep = true  ) 

Returns:
A new node that is a (deep) copy of this node. If deep is true, it will recursively copy the node's children as well.

DzDomNode DzDomNode::firstChild (  ) 

Returns:
This node's first child node. If this node has no children, it will return and invalid (Null) node.

Boolean DzDomNode::hasAttributes (  ) 

Returns:
true if the node has attributes, otherwise false.

Boolean DzDomNode::hasChildNodes (  ) 

Returns:
true if this node has children, otherwise false

void DzDomNode::insertAfter ( DzDomNode  newChild,
DzDomNode  refChild 
)

Inserts newChild into this node's child list following refChild

void DzDomNode::insertBefore ( DzDomNode  newChild,
DzDomNode  refChild 
)

Inserts newChild into this node's child list in front of refChild

Boolean DzDomNode::isAttr (  ) 

Returns:
true if the node is an attribute.
See also:
DzDomAttr

Boolean DzDomNode::isCDATASection (  ) 

Returns:
true if the node is an CDATA section.
See also:
DzDomCDATASection

Boolean DzDomNode::isCharacterData (  ) 

Returns:
true if the node is a character data.
See also:
DzDomCharacterData

Boolean DzDomNode::isComment (  ) 

Returns:
true if the node is a comment.
See also:
DzDomComment

Boolean DzDomNode::isDocument (  ) 

Returns:
true if the node is a document.
See also:
DzDomDocument

Boolean DzDomNode::isDocumentFragment (  ) 

Returns:
true if the node is a document fragment.
See also:
DzDomDocumentFragment

Boolean DzDomNode::isDocumentType (  ) 

Returns:
true if the node is a document type.
See also:
DzDomDocumentType

Boolean DzDomNode::isElement (  ) 

Returns:
true if the node is an element.
See also:
DzDomElement

Boolean DzDomNode::isEntity (  ) 

Returns:
true if the node is an entity.
See also:
DzDomEntity

Boolean DzDomNode::isEntityReference (  ) 

Returns:
true if the node is an entity reference.
See also:
DzDomEntityReference

Boolean DzDomNode::isNotation (  ) 

Returns:
true if the node is a notation.
See also:
DzDomNotation

Boolean DzDomNode::isNull (  ) 

Returns:
true if this node is invalid (Null)

Boolean DzDomNode::isProcessingInstruction (  ) 

Returns:
true if the node is a processing instruction.
See also:
DzDomProcessingInstruction

Boolean DzDomNode::isSupported ( String  feature,
String  version 
)

Returns:
true if the DOM implementation supports the given feature, otherwise, returns false.

Boolean DzDomNode::isText (  ) 

Returns:
true if the node is text.
See also:
DzDomText

DzDomNode DzDomNode::lastChild (  ) 

Returns:
This node's last child node. If this node has no children, it will return an invalid (Null) node.

DzDomNode DzDomNode::namedItem ( String  name  ) 

Returns:
The first direct child node with a matching name. If none is found, returns an invalid (Null) node.

DzDomNode DzDomNode::nextSibling (  ) 

Returns:
This node's next sibling. If this node does not have a next sibling, it returns an invalid (Null) node.

void DzDomNode::normalize (  ) 

Converts all the node's children into standard form (e.g. adjacent text nodes will be merged )

DzDomNode DzDomNode::ownerDocument (  ) 

Returns:
The document that this node belongs to, or an invalid (Null) node if this node is not part of a document.

DzDomNode DzDomNode::parentNode (  ) 

Returns:
This node's parent node. If this node is top level it will return an invalid (Null) node.

DzDomNode DzDomNode::previousSibling (  ) 

Returns:
This node's previous sibling. If this node does not have a previous sibling, it returns an invalid (Null) node.

void DzDomNode::removeChild ( DzDomNode  oldChild  ) 

Removes oldChild from this node's child list

void DzDomNode::replaceChild ( DzDomNode  newChild,
DzDomNode  oldChild 
)

Inserts newChild into this node's child list in place of refChild


Member Data Documentation

QString DzDomNode::localName

(Read Only) The local name of the node

QString DzDomNode::namespaceURI

(Read Only) The namespace of the node

QString DzDomNode::nodeName

(Read Only) The name of the node

DzDomNode::NodeType DzDomNode::nodeType

(Read Only) The type of the node

QString DzDomNode::nodeValue

The node value

QString DzDomNode::prefix

The node prefix


Generated on Thu Sep 24 12:21:11 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.