CSenDomFragment Class Reference

class CSenDomFragment : public CSenBaseFragment
Class implements DOM fragment functionality The implementation further extends CSenBaseFragment functionality. 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 fragmet. SenXML.dll
Since
Series60 3.0

Inherits from

Public Member Functions
~CSenDomFragment()
IMPORT_C voidExpandL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
IMPORT_C CSenDomFragment *NewL()
IMPORT_C CSenDomFragment *NewL(const CSenElement &)
IMPORT_C CSenDomFragment *NewL(const TDesC8 &)
IMPORT_C CSenDomFragment *NewL(const TDesC8 &, const TDesC8 &)
IMPORT_C CSenDomFragment *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C CSenDomFragment *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
IMPORT_C CSenDomFragment *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, CSenElement &)
IMPORT_C voidParseWithL(CSenXmlReader &)
IMPORT_C voidResumeParsingFromL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C voidSetAttributesL(const RAttributeArray &)
Protected Member Functions
CSenDomFragment()
IMPORT_C voidBaseConstructL(const CSenElement &)
IMPORT_C voidBaseConstructL(const TDesC8 &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, CSenElement &)
IMPORT_C voidBaseConstructL(CSenXmlReader &)
IMPORT_C voidCharactersL(const TDesC8 &, TInt, TInt)
IMPORT_C voidStartElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
IMPORT_C voidWriteEndElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C voidWriteStartElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSenBaseFragment::AllocContentSaverL()
CSenBaseFragment::AsElement()
CSenBaseFragment::AsXmlL()
CSenBaseFragment::AsXmlUnicodeL()
CSenBaseFragment::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenBaseFragment::BaseConstructL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,CSenElement &)
CSenBaseFragment::BuildFrom(const TDesC8 &)
CSenBaseFragment::CSenBaseFragment()
CSenBaseFragment::ConsistsOfL(MSenFragment &)
CSenBaseFragment::Content()
CSenBaseFragment::ContentOf(const TDesC8 &)
CSenBaseFragment::DelegateParsingL(MSenFragment &)
CSenBaseFragment::DelegateParsingL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenBaseFragment::DetachL()
CSenBaseFragment::EndElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &)
CSenBaseFragment::EnsureNamespace(const TDesC8 &)
CSenBaseFragment::ExtractElement()
CSenBaseFragment::LocalName()const
CSenBaseFragment::Namespace(const TDesC8 &)
CSenBaseFragment::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenBaseFragment::NewL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &,CSenElement &)
CSenBaseFragment::NsPrefix()const
CSenBaseFragment::NsUri()const
CSenBaseFragment::ParseL(const TDesC8 &)
CSenBaseFragment::Reader()
CSenBaseFragment::ResetContentL()
CSenBaseFragment::SaveNamespacesL(const RAttributeArray &,TBool)
CSenBaseFragment::SetAttributesL(const RAttributeArray &)
CSenBaseFragment::SetContentOfL(const TDesC8 &,const TDesC8 &)
CSenBaseFragment::SetOwner(MSenFragment &)
CSenBaseFragment::SetReader(CSenXmlReader &)
CSenBaseFragment::StartElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenBaseFragment::StartEntity(TDesC8 &)
CSenBaseFragment::WriteAsXMLToL(RWriteStream &)
CSenBaseFragment::WriteStartElementL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const RAttributeArray &)
CSenBaseFragment::~CSenBaseFragment()
Protected Attributes
CSenDomFragment *ipDomDelegate
Inherited Attributes
CSenBaseFragment::iState
CSenBaseFragment::iWs
CSenBaseFragment::iXmlReader
CSenBaseFragment::ipElement
CSenBaseFragment::ipOwner

Constructor & Destructor Documentation

CSenDomFragment()

IMPORT_CCSenDomFragment()[protected]

C++ default constructor.

~CSenDomFragment()

IMPORT_C~CSenDomFragment()[virtual]

Destructor.

Member Functions Documentation

BaseConstructL(const CSenElement &)

IMPORT_C voidBaseConstructL(const CSenElement &aElement)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 3.0

Parameters

const CSenElement & aElementis the XML element of this fragment.

BaseConstructL(const TDesC8 &)

IMPORT_C voidBaseConstructL(const TDesC8 &aLocalName)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 3.0

Parameters

const TDesC8 & aLocalNameThe local name of the element

BaseConstructL(const TDesC8 &, const TDesC8 &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element

BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aQNameThe qualified name of the element

BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName,
const RAttributeArray &aAttrs
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aQNameThe qualified name of the element
const RAttributeArray & aAttrsThe attributes of the element

BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, CSenElement &)

IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName,
const RAttributeArray &aAttrs,
CSenElement &aParent
)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aQNameThe qualified name of the element
const RAttributeArray & aAttrsThe attributes of the element
CSenElement & aParentThe parent of the element

BaseConstructL(CSenXmlReader &)

IMPORT_C voidBaseConstructL(CSenXmlReader &aReader)[protected]
"ConstructL" method for calling the base classes ones.
Since
Series60 3.0

Parameters

CSenXmlReader & aReaderis the XML reader for this fragment.

CharactersL(const TDesC8 &, TInt, TInt)

IMPORT_C voidCharactersL(const TDesC8 &aChars,
TIntaStart,
TIntaLength
)[protected, virtual]
Callback functions which implement the XML content handler interface. This one is called when content is starting.
Since
Series60 3.0

Parameters

const TDesC8 & aCharsThe content characters.
TInt aStartThe starting index
TInt aLengthThe length of the characters.

ExpandL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)

IMPORT_C voidExpandL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName,
const RAttributeArray &aAttrs
)[virtual]
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.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the new element
const TDesC8 & aLocalNameThe local name of the new element
const TDesC8 & aQNameThe qualified name of the new element
const RAttributeArray & aAttrsThe attributes of the new element

NewL()

IMPORT_C CSenDomFragment *NewL()[static]
Basic contructor. Should be used only for parsing new fragments etc. Constructing DomFragments for other use should be done with at least localname parameter.
Since
Series60 3.0

NewL(const CSenElement &)

IMPORT_C CSenDomFragment *NewL(const CSenElement &aElement)[static]
Basic constructor.
Since
Series60 3.0

Parameters

const CSenElement & aElementElement to copy construction data from.

NewL(const TDesC8 &)

IMPORT_C CSenDomFragment *NewL(const TDesC8 &aLocalName)[static]
Basic constructor.
Since
Series60 3.0

Parameters

const TDesC8 & aLocalNameis the XML localname of this fragment Leave codes: KErrSenInvalidCharacters if aLocalName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName is zero length.

NewL(const TDesC8 &, const TDesC8 &)

IMPORT_C CSenDomFragment *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName
)[static]
Basic constructor.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriis the XML namespace user of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment Leave codes: KErrSenInvalidCharacters if aLocalName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName is zero length.

NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

IMPORT_C CSenDomFragment *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName
)[static]
Basic constructor.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriis the XML namespace user of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment
const TDesC8 & aQNameis the XML qualifiedname of this fragment Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.

NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)

IMPORT_C CSenDomFragment *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName,
const RAttributeArray &aAttrs
)[static]
Basic constructor.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriis the XML namespace of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment
const TDesC8 & aQNameis the qualifiedname of this fragment
const RAttributeArray & aAttrsare the XML attributes of this fragment Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.

NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, CSenElement &)

IMPORT_C CSenDomFragment *NewL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName,
const RAttributeArray &aAttrs,
CSenElement &aParent
)[static]
Basic constructor.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriis the XML namespace of this fragment
const TDesC8 & aLocalNameis the XML localname of this fragment
const TDesC8 & aQNameis the qualifiedname of this fragment
const RAttributeArray & aAttrsare the XML attributes of this fragment
CSenElement & aParentis the parent XML element of this fragment Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.

ParseWithL(CSenXmlReader &)

IMPORT_C voidParseWithL(CSenXmlReader &aReader)[virtual]
Sets the reader for this fragment and sets this to be the content handler of the following SAX events.
Since
Series60 3.0

Parameters

CSenXmlReader & aReader

ResumeParsingFromL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

IMPORT_C voidResumeParsingFromL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName
)[virtual]
Resumes the parsing. Usually called by the delegate fragment which was parsing itself after DelegateParsingL().
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the current element
const TDesC8 & aLocalNameThe local name of the current element
const TDesC8 & aQNameThe qualified name of the current element

SetAttributesL(const RAttributeArray &)

IMPORT_C voidSetAttributesL(const RAttributeArray &aAttrs)[virtual]
Sets the attributes for the fragment.
Since
Series60 3.0

Parameters

const RAttributeArray & aAttrsthe array of attributes.

StartElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)

IMPORT_C voidStartElementL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName,
const RAttributeArray &aAttrs
)[protected, virtual]
Callback functions which implement the XML content handler interface. Inheriting classes can override these.
Since
Series60 3.0

Parameters

const TDesC8 & aNsUriThe namespace URI of the element
const TDesC8 & aLocalNameThe local name of the element
const TDesC8 & aQNameThe qualified name of the element
const RAttributeArray & aAttrsThe attributes of the element

WriteEndElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

IMPORT_C voidWriteEndElementL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName
)[protected, virtual]
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded).
Since
Series60 3.0

Parameters

const TDesC8 & aNsUrinot used
const TDesC8 & aLocalNamenot used
const TDesC8 & aQNamenot used

WriteStartElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)

IMPORT_C voidWriteStartElementL(const TDesC8 &aNsUri,
const TDesC8 &aLocalName,
const TDesC8 &aQName,
const RAttributeArray &aAttrs
)[protected]
Overriding content writing from CSenBaseFragment to do nothing in DOM fragment (because the tree is expanded).
Since
Series60 3.0

Parameters

const TDesC8 & aNsUrinot used
const TDesC8 & aLocalNamenot used
const TDesC8 & aQNamenot used
const RAttributeArray & aAttrsnot used

Member Data Documentation

CSenDomFragment * ipDomDelegate

CSenDomFragment *ipDomDelegate[protected]