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

xmltooling::UnknownElementImpl Class Reference

off More...

#include <xmltooling/impl/UnknownElement.h>

Inheritance diagram for xmltooling::UnknownElementImpl:

xmltooling::AbstractSimpleElement xmltooling::AbstractDOMCachingXMLObject xmltooling::AbstractXMLObject xmltooling::AbstractXMLObject xmltooling::XMLObject xmltooling::XMLObject List of all members.

Public Member Functions

 UnknownElementImpl (const XMLCh *namespaceURI=NULL, const XMLCh *elementLocalName=NULL, const XMLCh *namespacePrefix=NULL)
void releaseDOM () const
 Releases the DOM representation of this XMLObject, if there is one.
XMLObject * clone () const
 Creates a copy of the object, along with all of its children.
const XMLCh * getTextContent (unsigned int position=0) const
 Returns the text content at the specified position relative to any child elements.
void setTextContent (const XMLCh *, unsigned int position=0)
 Sets (or clears) text content relative to a child element's position.
xercesc::DOMElement * marshall (xercesc::DOMDocument *document=NULL, const std::vector< xmlsignature::Signature * > *sigs=NULL, const Credential *credential=NULL) const
 Marshalls the XMLObject, and its children, into a DOM element.
xercesc::DOMElement * marshall (xercesc::DOMElement *parentElement, const std::vector< xmlsignature::Signature * > *sigs=NULL, const Credential *credential=NULL) const
 Marshalls the XMLObject and appends it as a child of the given parent element.
XMLObject * unmarshall (xercesc::DOMElement *element, bool bindDocument=false)
 Unmarshalls the given W3C DOM element into the XMLObject.

Protected Member Functions

void setDocumentElement (xercesc::DOMDocument *document, xercesc::DOMElement *element) const
void serialize (std::string &s) const

Protected Attributes

std::string m_xml

Detailed Description

off


Member Function Documentation

XMLObject* xmltooling::UnknownElementImpl::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 XMLCh* xmltooling::UnknownElementImpl::getTextContent (  unsigned int  position = 0  )  const [inline, virtual]
 

Returns the text content at the specified position relative to any child elements.

A zero represents leading text, 1 comes after the first child, and so forth.

Parameters:
position the relative child element position of the text
Returns:
the designated text value

Reimplemented from xmltooling::AbstractSimpleElement.

xercesc::DOMElement* xmltooling::UnknownElementImpl::marshall (  xercesc::DOMElement *  parentElement,
const std::vector< xmlsignature::Signature * > *  sigs = NULL,
const Credential *  credential = NULL
)  const [virtual]
 

Marshalls the XMLObject and appends it as a child of the given parent element.

NOTE: The given Element must be within a DOM tree rooted in the Document owning the given Element.

Parameters:
parentElement the parent element to append the resulting DOM tree
sigs ordered array of signatures to create after marshalling is complete
credential optional credential to supply signing key and related info
Returns:
the marshalled element tree
Exceptions:
MarshallingException thrown if the given XMLObject can not be marshalled.
SignatureException thrown if a problem occurs during signature creation

Implements xmltooling::XMLObject.

xercesc::DOMElement* xmltooling::UnknownElementImpl::marshall (  xercesc::DOMDocument *  document = NULL,
const std::vector< xmlsignature::Signature * > *  sigs = NULL,
const Credential *  credential = NULL
)  const [virtual]
 

Marshalls the XMLObject, and its children, into a DOM element.

If a document is supplied, then it will be used to create the resulting elements. If the document does not have a Document Element set, then the resulting element will be set as the Document Element. If no document is supplied, then a new document will be created and bound to the lifetime of the root object being marshalled, unless an existing DOM can be reused without creating a new document.

Parameters:
document the DOM document the marshalled element will be placed in, or NULL
sigs ordered array of signatures to create after marshalling is complete
credential optional credential to supply signing key and related info
Returns:
the DOM element representing this XMLObject
Exceptions:
MarshallingException thrown if there is a problem marshalling the given object
SignatureException thrown if a problem occurs during signature creation

Implements xmltooling::XMLObject.

void xmltooling::UnknownElementImpl::setTextContent (  const XMLCh *  ,
unsigned int  position = 0
)  [inline, virtual]
 

Sets (or clears) text content relative to a child element's position.

Parameters:
value value to set, or NULL to clear
position position relative to child element

Reimplemented from xmltooling::AbstractSimpleElement.

XMLObject* xmltooling::UnknownElementImpl::unmarshall (  xercesc::DOMElement *  element,
bool  bindDocument = false
)  [virtual]
 

Unmarshalls the given W3C DOM element into the XMLObject.

The root of a given XML construct should be unmarshalled with the bindDocument parameter set to true.

Parameters:
element the DOM element to unmarshall
bindDocument true iff the resulting XMLObject should take ownership of the DOM's Document
Returns:
the unmarshalled XMLObject
Exceptions:
UnmarshallingException thrown if an error occurs unmarshalling the DOM element into the XMLObject

Implements xmltooling::XMLObject.


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