Changeset 3935 for trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml
- Timestamp:
- 06/21/10 15:58:31 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlGenerator.cs
r3742 r3935 40 40 public class XmlGenerator : GeneratorBase<string> { 41 41 42 pr ivateint depth;43 pr ivateint Depth {42 protected int depth; 43 protected int Depth { 44 44 get { 45 45 return depth; … … 51 51 } 52 52 53 pr ivatestring prefix;53 protected string prefix; 54 54 55 55 … … 61 61 } 62 62 63 pr ivateenum NodeType { Start, End, Inline } ;64 65 pr ivatestatic void AddXmlTagContent(StringBuilder sb, string name, Dictionary<string, object> attributes) {63 protected enum NodeType { Start, End, Inline } ; 64 65 protected static void AddXmlTagContent(StringBuilder sb, string name, Dictionary<string, object> attributes) { 66 66 sb.Append(name); 67 67 foreach (var attribute in attributes) { … … 76 76 } 77 77 78 pr ivatestatic void AddXmlStartTag(StringBuilder sb, string name, Dictionary<string, object> attributes) {78 protected static void AddXmlStartTag(StringBuilder sb, string name, Dictionary<string, object> attributes) { 79 79 sb.Append('<'); 80 80 AddXmlTagContent(sb, name, attributes); … … 82 82 } 83 83 84 pr ivatestatic void AddXmlInlineTag(StringBuilder sb, string name, Dictionary<string, object> attributes) {84 protected static void AddXmlInlineTag(StringBuilder sb, string name, Dictionary<string, object> attributes) { 85 85 sb.Append('<'); 86 86 AddXmlTagContent(sb, name, attributes); … … 88 88 } 89 89 90 pr ivatestatic void AddXmlEndTag(StringBuilder sb, string name) {90 protected static void AddXmlEndTag(StringBuilder sb, string name) { 91 91 sb.Append("</"); 92 92 sb.Append(name); … … 94 94 } 95 95 96 pr ivatestring CreateNodeStart(string name, Dictionary<string, object> attributes) {96 protected string CreateNodeStart(string name, Dictionary<string, object> attributes) { 97 97 StringBuilder sb = new StringBuilder(); 98 98 sb.Append(prefix); … … 103 103 } 104 104 105 pr ivatestring CreateNodeStart(string name) {105 protected string CreateNodeStart(string name) { 106 106 return CreateNodeStart(name, new Dictionary<string, object>()); 107 107 } 108 108 109 pr ivatestring CreateNodeEnd(string name) {109 protected string CreateNodeEnd(string name) { 110 110 Depth -= 1; 111 111 StringBuilder sb = new StringBuilder(); … … 116 116 } 117 117 118 pr ivatestring CreateNode(string name, Dictionary<string, object> attributes) {118 protected string CreateNode(string name, Dictionary<string, object> attributes) { 119 119 StringBuilder sb = new StringBuilder(); 120 120 sb.Append(prefix); … … 124 124 } 125 125 126 pr ivatestring CreateNode(string name, Dictionary<string, object> attributes, string content) {126 protected string CreateNode(string name, Dictionary<string, object> attributes, string content) { 127 127 StringBuilder sb = new StringBuilder(); 128 128 sb.Append(prefix); … … 148 148 } 149 149 150 pr ivatevoid AddTypeInfo(int typeId, Dictionary<string, object> dict) {150 protected void AddTypeInfo(int typeId, Dictionary<string, object> dict) { 151 151 if (lastTypeToken != null) { 152 152 if (typeId == lastTypeToken.Id) { … … 225 225 } 226 226 227 pr ivateTypeToken lastTypeToken;227 protected TypeToken lastTypeToken; 228 228 /// <summary> 229 229 /// Formats the specified token. … … 236 236 } 237 237 238 pr ivatestring FlushTypeToken() {238 protected string FlushTypeToken() { 239 239 if (lastTypeToken == null) 240 240 return "";
Note: See TracChangeset
for help on using the changeset viewer.