#include <mw/SenFragmentBase.h>
class CSenFragmentBase : public CBase |
IMPORT_C void | AddAttributesL | ( | const RAttributeArray & | apAttrs | ) | [protected, virtual] |
Adds new XML attributes to this fragment. Can be overridden to replace old attributes.
IMPORT_C void | AddAttributesToElementL | ( | TXmlEngElement | element, |
const RAttributeArray & | apAttrs | |||
) | [protected, virtual] |
Adds new XML attributes to specified element. Can be overridden to replace old attributes.
IMPORT_C void | AddContentL | ( | const TDesC8 & | aContent | ) | [protected, virtual] |
Parameter | Description |
---|---|
aContent | Content to be set. |
IMPORT_C void | AddNamespacesL | ( | ) | [protected, virtual] |
IMPORT_C RSenDocument & | AsDocumentL | ( | ) | [virtual] |
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)
Returns: reference to the element of this fragment
IMPORT_C TXmlEngElement | AsElementL | ( | ) | [virtual] |
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)
Returns: reference to the element of this fragment
IMPORT_C HBufC8 * | AsXmlL | ( | ) | [virtual] |
Returns: fragment as XML. Caller takes ownership.
IMPORT_C HBufC * | AsXmlUnicodeL | ( | ) | [virtual] |
Returns: fragment as XML. Caller takes ownership.
IMPORT_C void | BaseConstructL | ( | const TXmlEngElement & | aSrc | ) | [protected] |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aLocalName | ) | [protected] |
Parameter | Description |
---|---|
aLocalName | XML localname for this fragment |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI for this fragment |
aLocalName | XML localname for this fragment |
aAttrs | XML attributes for this fragment |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs, | |||
TXmlEngElement & | aParent | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI for this fragment |
aLocalName | XML localname for this fragment |
aAttrs | XML attributes for this fragment |
aParent | parent to be set for this fragmemt |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | aAttrs, | |||
TXmlEngElement & | aParent, | |||
RSenDocument & | aOwnerDocument | |||
) | [protected] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI for this fragment |
aLocalName | XML localname for this fragment |
aAttrs | XML attributes for this fragment |
aParent | Parent to be set for this fragmemt |
aOwnerDocument | The document which will be the owner of the elements of this fragment |
IMPORT_C void | BaseConstructL | ( | TXmlEngElement & | aRootElement, |
RSenDocument & | aOwnerDocument | |||
) | [protected] |
Parameter | Description |
---|---|
aRootElement | The element which will be the root element of this fragment |
aOwnerDocument | The document which will be the owner of the elements of this fragment |
IMPORT_C TBool | ConsistsOfL | ( | CSenFragmentBase & | aCandidate | ) | [virtual] |
Parameter | Description |
---|---|
aCandidate | The pattern to be matched. Must contain same or less data for match to come true. |
Returns: ETrue if content and possible children match exactly to given pattern. EFalse otherwise.
IMPORT_C TBool | ConsistsOfL | ( | TXmlEngElement & | aElement, |
TXmlEngElement & | aCandidate | |||
) | [protected, virtual] |
IMPORT_C TPtrC8 | ContentL | ( | ) | [virtual] |
Returns: content as UTF-8 form XML.
IMPORT_C TXmlEngElement | ExtractElement | ( | ) | [virtual] |
Returns: the current object as element. May return NULL. Ownership IS TRANSFERRED to the caller.
IMPORT_C TPtrC8 | LocalName | ( | ) | const [virtual] |
Returns: the localname of this fragment as UTF-8 form descriptor
IMPORT_C TXmlEngNamespace | Namespace | ( | const TDesC8 & | aPrefix | ) | [virtual] |
Returns: namespace with the given prefix. If not found or given prefix is zero length, will return NULL.
IMPORT_C CSenFragmentBase * | NewL | ( | const TXmlEngElement & | aElement | ) | [static] |
Parameter | Description |
---|---|
aElement | is the element where construction data will be copied from. |
IMPORT_C CSenFragmentBase * | NewL | ( | const TDesC8 & | aLocalName | ) | [static] |
IMPORT_C CSenFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName | |||
) | [static] |
IMPORT_C CSenFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix | |||
) | [static] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI |
aLocalName | XML localname |
aPrefix | XML prefix |
IMPORT_C CSenFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | apAttrs | |||
) | [static] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI |
aLocalName | XML localname |
aPrefix | XML prefix |
apAttrs | XML attributes |
IMPORT_C CSenFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | apAttrs, | |||
TXmlEngElement & | aParent | |||
) | [static] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI |
aLocalName | XML localname |
aPrefix | XML prefix |
apAttrs | XML attributes |
aParent | Parent element |
IMPORT_C CSenFragmentBase * | NewL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aPrefix, | |||
const RAttributeArray & | apAttrs, | |||
TXmlEngElement & | aParent, | |||
RSenDocument & | aOwnerDocument | |||
) | [static] |
Parameter | Description |
---|---|
aNsUri | XML namespace URI |
aLocalName | XML localname |
aPrefix | XML prefix |
apAttrs | XML attributes |
aParent | Parent element |
aOwnerDocument | The document which will be the owner of the elements of this fragment |
IMPORT_C CSenFragmentBase * | NewL | ( | TXmlEngElement & | aRootElement, |
RSenDocument & | aOwnerDocument | |||
) | [static] |
Parameter | Description |
---|---|
aRootElement | The element which will be the root element of this fragment. |
aOwnerDocument | The document which will be the owner of the elements of this fragment |
IMPORT_C TPtrC8 | NsPrefix | ( | ) | const [virtual] |
Returns: namespace prefix or KNullDesC if not set.
IMPORT_C TPtrC8 | NsUri | ( | ) | const [virtual] |
Returns: Namespace URI or KNullDesC if not set.
IMPORT_C void | OnDelegateParsingL | ( | CSenFragmentBase & | aDelegate | ) | [virtual] |
Parameter | Description |
---|---|
aDelegate | is the fragment to start handling the SAX events. |
IMPORT_C void | OnDelegateParsingL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes, | |||
TInt | aErrorCode | |||
) | [virtual] |
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
aAttributes | The attributes of the new element |
aErrorCode | Error code |
IMPORT_C void | OnEndDocumentL | ( | TInt | aErrorCode | ) | [virtual] |
See also: MContentHandler
IMPORT_C void | OnError | ( | TInt | aErrorCode | ) | [virtual] |
See also: MContentHandler
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
aErrorCode | Error code |
IMPORT_C void | OnStartDocumentL | ( | const RDocumentParameters & | aDocParam, |
TInt | aErrorCode | |||
) | [virtual] |
See also: MContentHandler
IMPORT_C void | OnStartElementL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes, | |||
TInt | aErrorCode | |||
) | [virtual] |
See also: MContentHandler
IMPORT_C void | OnWriteEndElementL | ( | const RTagInfo & | aElement | ) |
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
IMPORT_C void | OnWriteStartElementL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes | |||
) |
Parameter | Description |
---|---|
aElement | The RTagInfo class holding information that describes the element. |
aAttributes | The attributes of the new element |
Method renames the XML properties of this fragment.
Parameter | Description |
---|---|
aLocalName | XML localname for this fragment |
aPrefix | XML namespace prefix for this fragment |
aNamespace | XML namespace URI for this fragment Method leaves with if there is not enough memory (OOM) |
void | RenameLocalNameL | ( | const TDesC8 & | aLocalName | ) | [protected] |
Renames local name for this XML fragment.
Parameter | Description |
---|---|
aLocalName | XML localname for this fragment Method leaves with if there is not enough memory (OOM) |
void | RenameNamespaceL | ( | const TDesC8 & | aNamespace | ) | [protected] |
Renames namespace URI for this XML fragment.
Parameter | Description |
---|---|
aNamespace | XML namespace URI for this fragment Method leaves with if there is not enough memory(OOM) |
Renames namespace prefix and namespace URI for this XML fragment.
Parameter | Description |
---|---|
aPrefix | XML namespace prefix for this fragment |
aNamespace | XML namespace URI for this fragment Method leaves with if there is not enough memory (OOM) |
void | RenamePrefixL | ( | const TDesC8 & | aPrefix | ) | [protected] |
Renames namespace prefix for this XML fragment.
Parameter | Description |
---|---|
aPrefix | XML namespace prefix for this fragment Method leaves with if there is not enough memory (OOM) |
IMPORT_C void | ResetContentL | ( | ) | [virtual] |
Returns: Detaches this fragment from its owner. All namespace references from possible parent fragments are declared in the scope of this fragment prior detaching. Resets the content of the fragment, and resets the namespaces.
IMPORT_C void | SetContentHandler | ( | CSenFragmentBase & | aContentHandler | ) |
IMPORT_C void | SetContentL | ( | const TDesC8 & | aContent | ) | [protected, virtual] |
Parameter | Description |
---|---|
aContent | Content to be set. |
IMPORT_C TXmlEngElement | SetContentOfL | ( | const TDesC8 & | aLocalName, |
const TDesC8 & | aContent | |||
) | [protected] |
Parameter | Description |
---|---|
aLocalName | The local name of element which content is about to be set |
aContent | Content to be set. |
Returns: the element where content was set. Leave codes: KErrSenInvalidCharacters if aLocalName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName is zero length.
IMPORT_C void | SetDocument | ( | RSenDocument & | aDocument | ) |
Sets the RSenDocument
IMPORT_C void | SetOwner | ( | CSenFragmentBase & | aFragment | ) | [virtual] |
IMPORT_C void | StartSavingContent | ( | ) | [protected] |
StartSavingContent changes the internal SAX parsing state of this fragment to KSenStateSave, which means that next call to OnStartElementL is treated as data, and not ignored (in DOM fragment implementation, it would be "extended" into a DOM object).
IMPORT_C void | WriteAsXMLToL | ( | RWriteStream & | aWs | ) | [virtual] |
Parameter | Description |
---|---|
aWs | is the stream into which the UTF-8 form XML will be written. |