CSenDomFragment Class Reference
#include
<mw/SenDomFragment.h>
class CSenDomFragment : public CSenBaseFragment |
Public Member Functions |
---|
virtual | ~CSenDomFragment() |
virtual IMPORT_C void | ExpandL(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 &) |
virtual IMPORT_C void | ParseWithL(CSenXmlReader &) |
virtual IMPORT_C void | ResumeParsingFromL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
virtual IMPORT_C void | SetAttributesL(const RAttributeArray &) |
Protected Member Functions |
---|
| CSenDomFragment() |
IMPORT_C void | BaseConstructL(const CSenElement &) |
IMPORT_C void | BaseConstructL(const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, CSenElement &) |
IMPORT_C void | BaseConstructL(CSenXmlReader &) |
virtual IMPORT_C void | CharactersL(const TDesC8 &, TInt, TInt) |
virtual IMPORT_C void | StartElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &) |
virtual IMPORT_C void | WriteEndElementL(const TDesC8 &, const TDesC8 &, const TDesC8 &) |
IMPORT_C void | WriteStartElementL(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() |
Detailed Description
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.
- Since
- Series60 3.0
Member Attribute Documentation
Constructor & Destructor Documentation
CSenDomFragment ( )
IMPORT_C | CSenDomFragment | ( | ) | [protected] |
~CSenDomFragment ( )
IMPORT_C | ~CSenDomFragment | ( | ) | [virtual] |
Member Function Documentation
BaseConstructL ( const CSenElement & )
IMPORT_C void | BaseConstructL | ( | const CSenElement & | aElement | ) | [protected] |
"ConstructL" method for calling the base classes ones.
- Since
- Series60 3.0
Parameter | Description | aElement | is the XML element of this fragment. |
BaseConstructL ( const TDesC8 & )
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aLocalName | ) | [protected] |
"ConstructL" method for calling the base classes ones.
- Since
- Series60 3.0
Parameter | Description | aLocalName | The local name of the element |
BaseConstructL ( const TDesC8 &, const TDesC8 & )
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
| const TDesC8 & | aLocalName |
| ) | [protected] |
"ConstructL" method for calling the base classes ones.
- Since
- Series60 3.0
Parameter | Description | aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
BaseConstructL ( const TDesC8 &, const TDesC8 &, const TDesC8 & )
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNsUri, |
| const TDesC8 & | aLocalName, |
| const TDesC8 & | aQName |
| ) | [protected] |
"ConstructL" method for calling the base classes ones.
- Since
- Series60 3.0
Parameter | Description | aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aQName | The qualified name of the element |
BaseConstructL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray & )
IMPORT_C void | BaseConstructL | ( | 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
Parameter | Description | aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aQName | The qualified name of the element |
aAttrs | The attributes of the element |
BaseConstructL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, CSenElement & )
IMPORT_C void | BaseConstructL | ( | 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
Parameter | Description | aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aQName | The qualified name of the element |
aAttrs | The attributes of the element |
aParent | The parent of the element |
BaseConstructL ( CSenXmlReader & )
"ConstructL" method for calling the base classes ones.
- Since
- Series60 3.0
Parameter | Description | aReader | is the XML reader for this fragment. |
CharactersL ( const TDesC8 &, TInt, TInt )
IMPORT_C void | CharactersL | ( | const TDesC8 & | aChars, |
| TInt | aStart, |
| TInt | aLength |
| ) | [protected, virtual] |
Callback functions which implement the XML content handler interface. This one is called when content is starting.
- Since
- Series60 3.0
Parameter | Description | aChars | The content characters. |
aStart | The starting index |
aLength | The length of the characters. |
ExpandL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray & )
IMPORT_C void | ExpandL | ( | 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
Parameter | Description | aNsUri | The namespace URI of the new element |
aLocalName | The local name of the new element |
aQName | The qualified name of the new element |
aAttrs | The attributes of the new element |
NewL ( )
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 & )
Basic constructor.
- Since
- Series60 3.0
Parameter | Description | aElement | Element to copy construction data from. |
NewL ( const TDesC8 & )
Basic constructor.
- Since
- Series60 3.0
Parameter | Description | aLocalName | is 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 & )
Basic constructor.
- Since
- Series60 3.0
Parameter | Description | aNsUri | is the XML namespace user of this fragment |
aLocalName | is 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 & )
Basic constructor.
- Since
- Series60 3.0
Parameter | Description | aNsUri | is the XML namespace user of this fragment |
aLocalName | is the XML localname of this fragment |
aQName | is 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 & )
Basic constructor.
- Since
- Series60 3.0
Parameter | Description | aNsUri | is the XML namespace of this fragment |
aLocalName | is the XML localname of this fragment |
aQName | is the qualifiedname of this fragment |
aAttrs | are 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 & )
Basic constructor.
- Since
- Series60 3.0
Parameter | Description | aNsUri | is the XML namespace of this fragment |
aLocalName | is the XML localname of this fragment |
aQName | is the qualifiedname of this fragment |
aAttrs | are the XML attributes of this fragment |
aParent | is 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 & )
Sets the reader for this fragment and sets this to be the content handler of the following SAX events.
- Since
- Series60 3.0
ResumeParsingFromL ( const TDesC8 &, const TDesC8 &, const TDesC8 & )
IMPORT_C void | ResumeParsingFromL | ( | 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
Parameter | Description | aNsUri | The namespace URI of the current element |
aLocalName | The local name of the current element |
aQName | The qualified name of the current element |
SetAttributesL ( const RAttributeArray & )
IMPORT_C void | SetAttributesL | ( | const RAttributeArray & | aAttrs | ) | [virtual] |
Sets the attributes for the fragment.
- Since
- Series60 3.0
Parameter | Description | aAttrs | the array of attributes. |
StartElementL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray & )
IMPORT_C void | StartElementL | ( | 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
Parameter | Description | aNsUri | The namespace URI of the element |
aLocalName | The local name of the element |
aQName | The qualified name of the element |
aAttrs | The attributes of the element |
WriteEndElementL ( const TDesC8 &, const TDesC8 &, const TDesC8 & )
IMPORT_C void | WriteEndElementL | ( | 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
Parameter | Description | aNsUri | not used |
aLocalName | not used |
aQName | not used |
WriteStartElementL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray & )
IMPORT_C void | WriteStartElementL | ( | 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
Parameter | Description | aNsUri | not used |
aLocalName | not used |
aQName | not used |
aAttrs | not used |