cmlabs::XMLNode Class Reference

#include <XMLNode.h>

Inheritance diagram for cmlabs::XMLNode:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::XMLNode:

Collaboration graph
[legend]

List of all members.

Public Member Functions

XMLNodegetNodeWithAttrValue (Collection &attrPath, const JString &attrValue)
 XMLNode (const JString &s)
Objectclone () const
void deleteAllChildNodes ()
JString asXMLChildrenOnly ()
JString asXMLWithCRs ()
JString toXML ()
JString toXMLChildrenOnly ()
JString toHTML ()
JString asXMLOpenTag ()
JString asXMLCloseTag ()
Collection getPath () const
XMLNodegetParent () const
void setParent (XMLNode *p)
ObjectCollectiongetChildTags ()
ObjectCollection getAllNodes (const JString &childPath)
XMLNodegetFirstChildNode ()
XMLNodegetChildNode (const JString &childPath)
XMLNodegetChildNode (Collection &childPath)
ObjectCollection getChildNodes (const JString &childPath)
ObjectCollection getChildNodes (Collection &childPath)
JString findAttr (const JString &attr) const
DictionarygetAttributes ()
bool hasAttribute (const JString &attr) const
 Checks for attribute attr in tag <tag attr="xxx">.
JString getAttribute (const JString &attr) const
 Returns the attribute value in tag <tag attr="xxx">.
JString getText () const
 Returns text content, if content is XML returns "" (use getTextContent() then).
void setText (const JString &t)
JString getTextContent ()
 Returns text content even if content is XML format.
bool isEmpty () const
bool setComment (const JString &t)
bool setPreComment (const JString &t)
bool setPostComment (const JString &t)
JString getComment () const
JString getPreComment () const
JString getPostComment () const
bool isCommentNode () const
bool setDirective (const JString &t)
JString getDirective () const
bool isDirectiveNode () const
void setTag (const JString &t)
JString getTag () const
 XMLNode ()
virtual ~XMLNode ()
bool isUTF ()
void addAttribute (const JString &attr, const JString &attrValue)
void addChildTag (Object *childValue)
JString indent (int nestLevel)
JString asXML (int nestLevel, bool withCRs)
JString asXML ()

Public Attributes

XMLNodeparent
JString tag
JString text
Dictionaryattributes
ObjectCollectionchildTags
JString preComment
JString postComment
JString directive
bool isXMLUTF
int lineno
int charno


Detailed Description

Definition at line 45 of file XMLNode.h.


Constructor & Destructor Documentation

cmlabs::XMLNode::XMLNode ( const JString s  ) 

Definition at line 42 of file XMLNode.cpp.

cmlabs::XMLNode::XMLNode (  ) 

Definition at line 33 of file XMLNode.cpp.

cmlabs::XMLNode::~XMLNode (  )  [virtual]

Definition at line 52 of file XMLNode.cpp.


Member Function Documentation

XMLNode * cmlabs::XMLNode::getNodeWithAttrValue ( Collection attrPath,
const JString attrValue 
)

Definition at line 482 of file XMLNode.cpp.

Object * cmlabs::XMLNode::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 58 of file XMLNode.cpp.

void cmlabs::XMLNode::deleteAllChildNodes (  ) 

Definition at line 78 of file XMLNode.cpp.

JString cmlabs::XMLNode::asXMLChildrenOnly (  ) 

Definition at line 298 of file XMLNode.cpp.

JString cmlabs::XMLNode::asXMLWithCRs (  ) 

Definition at line 332 of file XMLNode.cpp.

JString cmlabs::XMLNode::toXML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 324 of file XMLNode.cpp.

JString cmlabs::XMLNode::toXMLChildrenOnly (  ) 

Definition at line 328 of file XMLNode.cpp.

JString cmlabs::XMLNode::toHTML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 165 of file XMLNode.cpp.

JString cmlabs::XMLNode::asXMLOpenTag (  ) 

Definition at line 526 of file XMLNode.cpp.

JString cmlabs::XMLNode::asXMLCloseTag (  ) 

Definition at line 560 of file XMLNode.cpp.

Collection cmlabs::XMLNode::getPath (  )  const

Definition at line 514 of file XMLNode.cpp.

XMLNode * cmlabs::XMLNode::getParent (  )  const

Definition at line 509 of file XMLNode.cpp.

void cmlabs::XMLNode::setParent ( XMLNode p  ) 

Definition at line 504 of file XMLNode.cpp.

ObjectCollection * cmlabs::XMLNode::getChildTags (  ) 

Definition at line 354 of file XMLNode.cpp.

ObjectCollection cmlabs::XMLNode::getAllNodes ( const JString childPath  ) 

Definition at line 460 of file XMLNode.cpp.

XMLNode * cmlabs::XMLNode::getFirstChildNode (  ) 

Definition at line 359 of file XMLNode.cpp.

XMLNode * cmlabs::XMLNode::getChildNode ( const JString childPath  ) 

Definition at line 396 of file XMLNode.cpp.

XMLNode * cmlabs::XMLNode::getChildNode ( Collection childPath  ) 

Definition at line 385 of file XMLNode.cpp.

ObjectCollection cmlabs::XMLNode::getChildNodes ( const JString childPath  ) 

Definition at line 434 of file XMLNode.cpp.

ObjectCollection cmlabs::XMLNode::getChildNodes ( Collection childPath  ) 

Definition at line 420 of file XMLNode.cpp.

JString cmlabs::XMLNode::findAttr ( const JString attr  )  const

Definition at line 375 of file XMLNode.cpp.

Dictionary * cmlabs::XMLNode::getAttributes (  ) 

Definition at line 337 of file XMLNode.cpp.

bool cmlabs::XMLNode::hasAttribute ( const JString attr  )  const

Checks for attribute attr in tag <tag attr="xxx">.

Definition at line 342 of file XMLNode.cpp.

JString cmlabs::XMLNode::getAttribute ( const JString attr  )  const

Returns the attribute value in tag <tag attr="xxx">.

Definition at line 348 of file XMLNode.cpp.

JString cmlabs::XMLNode::getText (  )  const

Returns text content, if content is XML returns "" (use getTextContent() then).

Definition at line 118 of file XMLNode.cpp.

void cmlabs::XMLNode::setText ( const JString t  ) 

Definition at line 123 of file XMLNode.cpp.

JString cmlabs::XMLNode::getTextContent (  ) 

Returns text content even if content is XML format.

Definition at line 128 of file XMLNode.cpp.

bool cmlabs::XMLNode::isEmpty (  )  const

Definition at line 159 of file XMLNode.cpp.

bool cmlabs::XMLNode::setComment ( const JString t  ) 

Definition at line 572 of file XMLNode.cpp.

bool cmlabs::XMLNode::setPreComment ( const JString t  ) 

Definition at line 576 of file XMLNode.cpp.

bool cmlabs::XMLNode::setPostComment ( const JString t  ) 

Definition at line 584 of file XMLNode.cpp.

JString cmlabs::XMLNode::getComment (  )  const

Definition at line 592 of file XMLNode.cpp.

JString cmlabs::XMLNode::getPreComment (  )  const

Definition at line 596 of file XMLNode.cpp.

JString cmlabs::XMLNode::getPostComment (  )  const

Definition at line 600 of file XMLNode.cpp.

bool cmlabs::XMLNode::isCommentNode (  )  const

Definition at line 604 of file XMLNode.cpp.

bool cmlabs::XMLNode::setDirective ( const JString t  ) 

Definition at line 608 of file XMLNode.cpp.

JString cmlabs::XMLNode::getDirective (  )  const

Definition at line 613 of file XMLNode.cpp.

bool cmlabs::XMLNode::isDirectiveNode (  )  const

Definition at line 617 of file XMLNode.cpp.

void cmlabs::XMLNode::setTag ( const JString t  ) 

Definition at line 111 of file XMLNode.cpp.

JString cmlabs::XMLNode::getTag (  )  const

Definition at line 106 of file XMLNode.cpp.

bool cmlabs::XMLNode::isUTF (  ) 

Definition at line 102 of file XMLNode.cpp.

void cmlabs::XMLNode::addAttribute ( const JString attr,
const JString attrValue 
)

Definition at line 137 of file XMLNode.cpp.

void cmlabs::XMLNode::addChildTag ( Object childValue  ) 

Definition at line 145 of file XMLNode.cpp.

JString cmlabs::XMLNode::indent ( int  nestLevel  ) 

Definition at line 151 of file XMLNode.cpp.

JString cmlabs::XMLNode::asXML ( int  nestLevel,
bool  withCRs 
)

Definition at line 226 of file XMLNode.cpp.

JString cmlabs::XMLNode::asXML (  ) 

Definition at line 320 of file XMLNode.cpp.


Member Data Documentation

Definition at line 123 of file XMLNode.h.

Definition at line 124 of file XMLNode.h.

Definition at line 125 of file XMLNode.h.

Definition at line 127 of file XMLNode.h.

Definition at line 128 of file XMLNode.h.

Definition at line 129 of file XMLNode.h.

Definition at line 130 of file XMLNode.h.

Definition at line 131 of file XMLNode.h.

Definition at line 133 of file XMLNode.h.

Definition at line 134 of file XMLNode.h.

Definition at line 135 of file XMLNode.h.


The documentation for this class was generated from the following files:

Generated on Tue Jul 7 16:24:25 2009 for CoreLibrary by  doxygen 1.5.6