|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: StringType attribute Value. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <osn/osnnew.h> |
|
20 #include <alf/alfdataexception.h> |
|
21 |
|
22 #include "alfstringvalue.h" |
|
23 |
|
24 namespace Alf |
|
25 { |
|
26 |
|
27 // ======== MEMBER FUNCTIONS ======== |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // Constructor. |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 AlfStringValue::AlfStringValue(const UString& aValue) |
|
34 { |
|
35 mString = aValue; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // Destructor. |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 AlfStringValue::~AlfStringValue() |
|
43 { |
|
44 |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // Gets the string value. |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 const UString& AlfStringValue::stringValue() const |
|
52 { |
|
53 return mString; |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // Gets the type of the atrribute value. |
|
58 // --------------------------------------------------------------------------- |
|
59 // |
|
60 AlfAttributeValueType::Type AlfStringValue::type() const |
|
61 { |
|
62 return EString; |
|
63 } |
|
64 |
|
65 // --------------------------------------------------------------------------- |
|
66 // Gets the unit. |
|
67 // --------------------------------------------------------------------------- |
|
68 // |
|
69 TAlfUnit AlfStringValue::unit() const |
|
70 { |
|
71 ALF_THROW(AlfDataException,EInvalidAttributeValue,"AlfStringValue") |
|
72 } |
|
73 |
|
74 } // Alf |