Link against: senfragment.lib
#include <SenDomFragmentBase.h>
Inherits CSenFragmentBase.
Inherited by CSenSoapFault2.
In DOM fragment, all child elements are parsed into separate element objects. This makes it possible to reference any child which offer methods declared in XML element interface. Any such element can also be easily extracted (detached) from this root DOM fragment.
Public Member Functions |
|
virtual IMPORT_C | ~CSenDomFragmentBase () |
Destructor. |
|
virtual IMPORT_C void | ExpandL (const RTagInfo &aElement, const RAttributeArray &aAttributes, TInt aErrorCode) |
Initiates the parsing chain where new delegate will be created with given parameters and parsing will be delegated to it.
|
|
virtual IMPORT_C void | OnResumeParsingFromL (const RTagInfo &aElement, TInt aErrorCode) |
Resumes the parsing. |
|
virtual IMPORT_C void | AddAttributesL (const RAttributeArray &aAttrs) |
Sets the attributes for the fragment. |
|
virtual IMPORT_C HBufC8 * | AsXmlL () |
Gets the fragment data as an UTF-8 form XML. |
|
virtual IMPORT_C void | OnStartElementL (const RTagInfo &aElement, const RAttributeArray &aAttributes, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnContentL (const TDesC8 &aBytes, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
IMPORT_C void | OnWriteStartElementL (const RTagInfo &aElement, const RAttributeArray &aAttributes) |
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded). |
|
IMPORT_C void | OnWriteEndElementL (const RTagInfo &aElement) |
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded). |
|
virtual IMPORT_C void | OnEndElementL (const RTagInfo &aElement, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnStartDocumentL (const RDocumentParameters &aDocParam, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnEndDocumentL (TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnStartPrefixMappingL (const RString &aPrefix, const RString &aUri, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnEndPrefixMappingL (const RString &aPrefix, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnIgnorableWhiteSpaceL (const TDesC8 &aBytes, TInt ErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnSkippedEntityL (const RString &aName, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnProcessingInstructionL (const TDesC8 &aTarget, const TDesC8 &aData, TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C void | OnError (TInt aErrorCode) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C TAny * | GetExtendedInterface (const TInt32 aUid) |
Callback function implementing the XML content handler interface. |
|
virtual IMPORT_C TPtrC8 | ContentL () |
Getter for the content,which is returned as UTF-8 form XML. |
|
virtual IMPORT_C TXmlEngNamespace | Namespace (const TDesC8 &aPrefix) |
Gets the namespace object with a given prefix. |
|
virtual IMPORT_C void | ResetContentL () |
Resets the content of the fragment, and resets the namespaces. |
|
virtual IMPORT_C TPtrC8 | LocalName () const |
virtual IMPORT_C TPtrC8 | NsUri () const |
Getter for Fragment's namespace URI. |
|
virtual IMPORT_C TPtrC8 | NsPrefix () const |
Getter for namespace prefix of this fragment. |
|
virtual IMPORT_C TXmlEngElement | AsElementL () |
Returns the current XML element of this fragment. |
|
virtual IMPORT_C RSenDocument & | AsDocumentL () |
Returns the current XML element of this fragment. |
|
virtual IMPORT_C TXmlEngElement | ExtractElement () |
Etracts the XML element from the fragment, leaving the fragment empty. |
|
virtual IMPORT_C void | OnDelegateParsingL (CSenFragmentBase &aDelegate) |
Let the delegate MSenFragment handle the following SAX events. |
|
virtual IMPORT_C void | OnDelegateParsingL (const RTagInfo &aElement, const RAttributeArray &aAttributes, TInt aErrorCode) |
Creates a new fragment and lets the created MSenFragment handle the following SAX events. |
|
virtual IMPORT_C void | SetOwner (CSenFragmentBase &aFragment) |
Sets a new parent for this fragment. |
|
virtual IMPORT_C HBufC * | AsXmlUnicodeL () |
Gets the fragment data as an unicode XML. |
|
virtual IMPORT_C void | WriteAsXMLToL (RWriteStream &aWs) |
Invokes AsElement().WriteAsXMLToL(aWs);. |
|
virtual IMPORT_C TBool | ConsistsOfL (CSenFragmentBase &aCandidate) |
Checks if fragment matches to another fragment by its content and child elements. |
|
IMPORT_C void | SetContentHandler (CSenFragmentBase &aContentHandler) |
Static Public Member Functions |
|
static IMPORT_C CSenDomFragmentBase * | NewL () |
Basic contructor. |
|
static IMPORT_C CSenDomFragmentBase * | NewL (const TXmlEngElement &aElement) |
Basic constructor. |
|
static IMPORT_C CSenDomFragmentBase * | NewL (const TDesC8 &aLocalName) |
Basic constructor. |
|
static IMPORT_C CSenDomFragmentBase * | NewL (const TDesC8 &aNsUri, const TDesC8 &aLocalName) |
Basic constructor. |
|
static IMPORT_C CSenDomFragmentBase * | NewL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix) |
Basic constructor. |
|
static IMPORT_C CSenDomFragmentBase * | NewL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix, const RAttributeArray &aAttrs) |
Basic constructor. |
|
static IMPORT_C CSenDomFragmentBase * | NewL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix, const RAttributeArray &aAttrs, TXmlEngElement &aParent) |
Basic constructor. |
|
static IMPORT_C CSenDomFragmentBase * | NewL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix, const RAttributeArray &aAttrs, TXmlEngElement &aParent, RSenDocument &aOwnerDocument) |
Basic constructor. |
|
Protected Member Functions |
|
void | RenameL (const TDesC8 &aLocalName, const TDesC8 &aPrefix, const TDesC8 &aNamespace) |
Method renames the XML properties of this fragment. |
|
void | RenameL (const TDesC8 &aLocalName, const TDesC8 &aNamespace) |
Method renames the XML properties of this fragment. |
|
void | RenameLocalNameL (const TDesC8 &aLocalName) |
Renames local name for this XML fragment. |
|
void | RenameNamespaceL (const TDesC8 &aNamespace) |
Renames namespace URI for this XML fragment. |
|
void | RenamePrefixL (const TDesC8 &aPrefix) |
Renames namespace prefix for this XML fragment. |
|
void | RenameNamespaceL (const TDesC8 &aPrefix, const TDesC8 &aNamespace) |
Renames namespace prefix and namespace URI for this XML fragment. |
|
IMPORT_C TXmlEngElement | SetContentOfL (const TDesC8 &aLocalName, const TDesC8 &aContent) |
Sets content to a child element. |
|
IMPORT_C TPtrC8 | ContentOf (const TDesC8 &aLocalName) |
Gets the content of a given element. |
|
virtual IMPORT_C TBool | ConsistsOfL (TXmlEngElement &aElement, TXmlEngElement &aCandidate) |
virtual IMPORT_C void | AddNamespacesL () |
Adds namespaces from internal array for the fragment. |
|
IMPORT_C | CSenDomFragmentBase () |
C++ default constructor. |
|
IMPORT_C void | BaseConstructL () |
"ConstructL" method for calling the base classes ones. |
|
IMPORT_C void | BaseConstructL (const TXmlEngElement &aElement) |
"ConstructL" method for calling the base classes ones. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aLocalName) |
"ConstructL" method for calling the base classes ones. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aNsUri, const TDesC8 &aLocalName) |
"ConstructL" method for calling the base classes ones. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix) |
"ConstructL" method for calling the base classes ones. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix, const RAttributeArray &aAttrs) |
"ConstructL" method for calling the base classes ones. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix, const RAttributeArray &aAttrs, TXmlEngElement &aParent) |
"ConstructL" method for calling the base classes ones. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aPrefix, const RAttributeArray &aAttrs, TXmlEngElement &aParent, RSenDocument &aOwnerDocument) |
"ConstructL" method for calling the base classes ones. |
|
Protected Attributes |
|
CSenDomFragmentBase * | ipDomDelegate |
Callback functions which implement the XML content handler interface. |
|
Destructor. |
|
C++ default constructor. |
|
Sets the attributes for the fragment.
Reimplemented from CSenFragmentBase. |
|
Adds namespaces from internal array for the fragment.
Reimplemented from CSenFragmentBase. |
|
Returns the current XML element of this fragment. If element has not been set, this method will initialize new, un-initialized element. Method leaves with if there is not enough memory (OOM)
Reimplemented from CSenFragmentBase. |
|
Returns the current XML element of this fragment. If element has not been set, this method will initialize new, un-initialized element. Method leaves with if there is not enough memory (OOM)
Reimplemented from CSenFragmentBase. |
|
Gets the fragment data as an UTF-8 form XML.
Reimplemented from CSenFragmentBase. |
|
Gets the fragment data as an unicode XML.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
Reimplemented from CSenFragmentBase. |
|
"ConstructL" method for calling the base classes ones.
|
|
Reimplemented from CSenFragmentBase. |
|
Checks if fragment matches to another fragment by its content and child elements. Fragment can contain more data than the given candidate.
Reimplemented from CSenFragmentBase. |
|
Getter for the content,which is returned as UTF-8 form XML.
Reimplemented from CSenFragmentBase. |
|
Gets the content of a given element.
Reimplemented from CSenFragmentBase. |
|
Initiates the parsing chain where new delegate will be created with given parameters and parsing will be delegated to it. Should not be called externally.
|
|
Etracts the XML element from the fragment, leaving the fragment empty. Note(!): the return value (CSenElement) STRONGLY suggests that subclasses INHERIT CSenFragment in order properly comply the requirement of the ExtractElement() implementation.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Reimplemented from CSenFragmentBase. |
|
Gets the namespace object with a given prefix.
Reimplemented from CSenFragmentBase. |
|
Basic constructor.
Reimplemented from CSenFragmentBase. Reimplemented in CSenSoapFault2. |
|
Basic constructor.
Reimplemented from CSenFragmentBase. |
|
Basic constructor.
Reimplemented from CSenFragmentBase. |
|
Basic constructor.
Reimplemented from CSenFragmentBase. |
|
Basic constructor.
Reimplemented from CSenFragmentBase. |
|
Basic constructor.
Reimplemented from CSenFragmentBase. |
|
Basic constructor.
Reimplemented from CSenFragmentBase. |
|
Basic contructor. Should be used only for parsing new fragments etc. Constructing DomFragments for other use should be done with at least localname parameter.
|
|
Getter for namespace prefix of this fragment.
Reimplemented from CSenFragmentBase. |
|
Getter for Fragment's namespace URI.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Creates a new fragment and lets the created MSenFragment handle the following SAX events. This fragment is made the owner of the delegate and the delegate is expected to make this MSenFragment act as receiver for SAX events (callbacks) once it has seen the end element for itself.
Reimplemented from CSenFragmentBase. |
|
Let the delegate MSenFragment handle the following SAX events. This fragment is made the owner of the delegate and the delegate is expected to make this MSenFragment the receiver of SAX events once it has seen the end element for itself.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Resumes the parsing. Usually called by the delegate fragment which was parsing itself after DelegateParsingL().
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Callback function implementing the XML content handler interface. Inheriting classes can override these.
Reimplemented from CSenFragmentBase. |
|
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded).
Reimplemented from CSenFragmentBase. |
|
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded).
Reimplemented from CSenFragmentBase. |
|
Method renames the XML properties of this fragment.
Reimplemented from CSenFragmentBase. |
|
Method renames the XML properties of this fragment.
Reimplemented from CSenFragmentBase. |
|
Renames local name for this XML fragment.
Reimplemented from CSenFragmentBase. |
|
Renames namespace prefix and namespace URI for this XML fragment.
Reimplemented from CSenFragmentBase. |
|
Renames namespace URI for this XML fragment.
Reimplemented from CSenFragmentBase. |
|
Renames namespace prefix for this XML fragment.
Reimplemented from CSenFragmentBase. |
|
Resets the content of the fragment, and resets the namespaces.
Reimplemented from CSenFragmentBase. |
|
Reimplemented from CSenFragmentBase. |
|
Sets content to a child element. If no element with given local name is not found, new one is added and content is set to that one.
Reimplemented from CSenFragmentBase. |
|
Sets a new parent for this fragment.
Reimplemented from CSenFragmentBase. |
|
Invokes AsElement().WriteAsXMLToL(aWs);.
Reimplemented from CSenFragmentBase. |
|
Callback functions which implement the XML content handler interface. Inheriting classes can override these. |