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.
|