CSenBaseAttribute Class Reference

#include <mw/SenBaseAttribute.h>

Link against: SenXML.dll

class CSenBaseAttribute : public CBase

Inherits from

  • CSenBaseAttribute

    Detailed Description

    Class offers basic implementation of an XML attribute XML attribute is a name-value pair type value object, which may or may not have a namespace prefix. Note that both name and value may contain a namespace prefix.
    Since
    Series60 3.0

    Constructor & Destructor Documentation

    CSenBaseAttribute ( )

    IMPORT_CCSenBaseAttribute()[protected]
    C++ default constructor
    Since
    Series60 3.0

    ~CSenBaseAttribute ( )

    IMPORT_C~CSenBaseAttribute()[virtual]

    Destructor.

    Member Function Documentation

    BaseConstructL ( const TDesC8 &, const TDesC8 & )

    IMPORT_C voidBaseConstructL(const TDesC8 &aName,
    const TDesC8 &aValue
    )[protected]
    Following BaseConstructL methods should be called from the deriving classes ConstructL() methods. Parameter info is found in the corresponding NewL-methods.
    Since
    Series60 3.0
    ParameterDescription
    aNameis the name of this attribute. Cannot contain characters that are illegal in XML (like basic entities in decoded form)
    aValueis the value of this attribute. Cannot contain characters that are illegal in XML (like basic entities in decoded form)

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

    IMPORT_C voidBaseConstructL(const TDesC8 &aName,
    const TDesC8 &aQName,
    const TDesC8 &aValue
    )[protected]
    Since
    Series60 3.0
    ParameterDescription
    aNameis the name of this attribute. Cannot contain characters that are illegal in XML (like basic entities in decoded form)
    aQNameis the qualified, prefixed name of this XML attribute. Cannot contain characters which are illegal in XML.
    aValueis the value of this attribute. Cannot contain characters that are illegal in XML (like basic entities in decoded form)

    Name ( )

    const TDesC8 &Name()const [virtual]
    Getter for the attribute name.
    Since
    Series60 3.0

    Returns: the attribute name.

    NewL ( const TDesC8 &, const TDesC8 & )

    IMPORT_C CSenBaseAttribute *NewL(const TDesC8 &aName,
    const TDesC8 &aValue
    )[static]
    Basic two-phased constructor.
    Since
    Series60 3.0

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

    IMPORT_C CSenBaseAttribute *NewL(const TDesC8 &aQName,
    const TDesC8 &aName,
    const TDesC8 &aValue
    )[static]
    Basic constructor.
    Since
    Series60 3.0

    SetValueL ( const TDesC8 & )

    const TDesC8 &SetValueL(const TDesC8 &aValue)[virtual]
    Setter for the attribute value.
    Since
    Series60 3.0

    Returns: the new value.

    Value ( )

    const TDesC8 &Value()const [virtual]
    Getter for the attribute value.
    Since
    Series60 3.0

    Returns: the attribute value.