crashanalysercmd/Libraries/File Formats/Plugins/CrashXmlPlugin/FileFormat/Versions/CXmlVersionText.cs
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 using System; |
|
18 using System.Text; |
|
19 using System.Xml; |
|
20 using System.Collections.Generic; |
|
21 using CrashXmlPlugin.FileFormat.Node; |
|
22 |
|
23 namespace CrashXmlPlugin.FileFormat.Versions |
|
24 { |
|
25 internal class CXmlVersionText : CXmlNode |
|
26 { |
|
27 #region Constructors |
|
28 public CXmlVersionText() |
|
29 : this( string.Empty ) |
|
30 { |
|
31 } |
|
32 |
|
33 public CXmlVersionText( string aText ) |
|
34 : base( Constants.Version_Text ) |
|
35 { |
|
36 iText = aText; |
|
37 } |
|
38 #endregion |
|
39 |
|
40 #region API |
|
41 public static void WriteVersionTextListStart( XmlWriter aWriter ) |
|
42 { |
|
43 aWriter.WriteStartElement( Constants.CmnLinkList ); |
|
44 } |
|
45 |
|
46 public static void WriteVersionTextListEnd( XmlWriter aWriter ) |
|
47 { |
|
48 aWriter.WriteEndElement(); |
|
49 } |
|
50 #endregion |
|
51 |
|
52 #region From CXmlNode |
|
53 protected override void XmlSerializeContent( CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters ) |
|
54 { |
|
55 aParameters.Writer.WriteString( this.ToString() ); |
|
56 } |
|
57 #endregion |
|
58 |
|
59 #region Properties |
|
60 public string Text |
|
61 { |
|
62 get { return iText; } |
|
63 set { iText = value; } |
|
64 } |
|
65 #endregion |
|
66 |
|
67 #region From System.Object |
|
68 public override string ToString() |
|
69 { |
|
70 return iText; |
|
71 } |
|
72 #endregion |
|
73 |
|
74 #region Data members |
|
75 private string iText = string.Empty; |
|
76 #endregion |
|
77 } |
|
78 } |