1
2
3
4
5
6
7
8
9
10
11
12
13 package org.abstracthorizon.extend.repository.maven.pom;
14
15 import java.util.HashMap;
16 import java.util.Map;
17
18 public class Properties extends HashMap<String, String> {
19
20 public Properties() {
21 }
22
23
24 public String toString() {
25 return toString(0);
26 }
27
28 public String toString(int indent) {
29 StringBuffer res = new StringBuffer();
30 ToStringHelper.openTag("properties", res, indent);
31 for (Map.Entry<String, String> entry : entrySet()) {
32 ToStringHelper.valueTag(entry.getKey(), entry.getValue(), res, indent + 2);
33 }
34 ToStringHelper.closeTag("properties", res, indent);
35 return res.toString();
36 }
37 }