Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

xmltooling::AnyElementImpl Class Reference

Implements a smart wrapper around unknown or arbitrary DOM content. More...

#include <xmltooling/impl/AnyElement.h>

Inheritance diagram for xmltooling::AnyElementImpl:

xmltooling::ElementProxy xmltooling::AbstractDOMCachingXMLObject xmltooling::AbstractComplexElement xmltooling::AbstractAttributeExtensibleXMLObject xmltooling::AbstractXMLObjectMarshaller xmltooling::AbstractXMLObjectUnmarshaller xmltooling::AbstractXMLObject xmltooling::AbstractXMLObject xmltooling::AbstractXMLObject xmltooling::AttributeExtensibleXMLObject xmltooling::AbstractXMLObject xmltooling::AbstractXMLObject xmltooling::ElementExtensibleXMLObject xmltooling::AttributeExtensibleXMLObject List of all members.

Public Member Functions

virtual ~AnyElementImpl ()
 OFF
 AnyElementImpl (const XMLCh *nsURI, const XMLCh *localName, const XMLCh *prefix=NULL, const QName *schemaType=NULL)
XMLObject * clone () const
 Creates a copy of the object, along with all of its children.
xmltooling::XMLObjectChildrenList<
std::vector< xmltooling::XMLObject * > > 
getUnknownXMLObjects ()
 Gets a mutable list of child objects.
const std::vector< xmltooling::XMLObject * > & getUnknownXMLObjects () const
 Gets an immutable list of child objects.
void marshallAttributes (xercesc::DOMElement *domElement) const
 Marshalls the attributes from the XMLObject into the given DOM element.
void processChildElement (XMLObject *childXMLObject, const xercesc::DOMElement *childRoot)
 Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.
void processAttribute (const xercesc::DOMAttr *attribute)
 Called after an attribute has been unmarshalled so that it can be added to the XMLObject.

Protected Member Functions

 AnyElementImpl (const AnyElementImpl &src)

Protected Attributes

std::vector< xmltooling::XMLObject * > m_UnknownXMLObjects

Detailed Description

Implements a smart wrapper around unknown or arbitrary DOM content.


Member Function Documentation

XMLObject* xmltooling::AnyElementImpl::clone (   )  const [virtual]
 

Creates a copy of the object, along with all of its children.

The new object tree will be completely distinct and independent of the original in all respects.

Reimplemented from xmltooling::AbstractDOMCachingXMLObject.

const std::vector<xmltooling::XMLObject*>& xmltooling::AnyElementImpl::getUnknownXMLObjects (   )  const [inline, virtual]
 

Gets an immutable list of child objects.

Returns:
immutable list of child objects

Implements xmltooling::ElementExtensibleXMLObject.

xmltooling::XMLObjectChildrenList< std::vector< xmltooling::XMLObject *> > xmltooling::AnyElementImpl::getUnknownXMLObjects (   )  [inline, virtual]
 

Gets a mutable list of child objects.

Returns:
mutable list of child objects

Implements xmltooling::ElementExtensibleXMLObject.

void xmltooling::AnyElementImpl::marshallAttributes (  xercesc::DOMElement *  domElement  )  const [virtual]
 

Marshalls the attributes from the XMLObject into the given DOM element.

Parameters:
domElement the DOM Element into which attributes will be marshalled
Exceptions:
MarshallingException thrown if there is a problem marshalling an attribute

Reimplemented from xmltooling::AbstractXMLObjectMarshaller.

void xmltooling::AnyElementImpl::processAttribute (  const xercesc::DOMAttr *  attribute  )  [virtual]
 

Called after an attribute has been unmarshalled so that it can be added to the XMLObject.

Parameters:
attribute the attribute being unmarshalled
Exceptions:
UnmarshallingException thrown if there is a problem adding the attribute to the XMLObject

Reimplemented from xmltooling::AbstractXMLObjectUnmarshaller.

void xmltooling::AnyElementImpl::processChildElement (  XMLObject *  childXMLObject,
const xercesc::DOMElement *  childRoot
)  [virtual]
 

Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.

Parameters:
child pointer to the child XMLObject
childRoot root element of the child (must not be stored, just a hint)
Exceptions:
UnmarshallingException thrown if there is a problem adding the child to the parent

Reimplemented from xmltooling::AbstractXMLObjectUnmarshaller.


The documentation for this class was generated from the following file:
Generated on Wed Jun 17 16:50:44 2009 for xmltooling by  doxygen 1.3.9.1