Rev 1779 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1779 | Rev 1780 | ||
---|---|---|---|
Line 82... | Line 82... | ||
82 | .include("id", PageContent.class) |
82 | .include("id", PageContent.class) |
83 | .include("path", PageSectionImpl.class) |
83 | .include("path", PageSectionImpl.class) |
84 | .include("slug", PageSectionImpl.class) |
84 | .include("slug", PageSectionImpl.class) |
85 | .create(); |
85 | .create(); |
86 | 86 | ||
87 | public 1.5.0/docs/api/java/lang/String.html">String toJson() throws 1.5.0/docs/api/java/io/IOException.html">IOException |
87 | public 1.5.0/docs/api/java/lang/String.html">String toJson() { |
88 | { |
- | |
89 | return confGenson.serialize(this); |
88 | return confGenson.serialize(this); |
90 | } |
89 | } |
91 | 90 | ||
92 | public static 1.5.0/docs/api/java/lang/String.html">String toJson(ArrayList<ConfigurationSeparator> seps) throws 1.5.0/docs/api/java/io/IOException.html">IOException |
91 | public static 1.5.0/docs/api/java/lang/String.html">String toJson(ArrayList<ConfigurationSeparator> seps) throws 1.5.0/docs/api/java/io/IOException.html">IOException |
93 | { |
92 | { |
Line 96... | Line 95... | ||
96 | 95 | ||
97 | public static ConfigurationSeparatorImpl loadFromJson(1.5.0/docs/api/java/lang/String.html">String json) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
96 | public static ConfigurationSeparatorImpl loadFromJson(1.5.0/docs/api/java/lang/String.html">String json) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
98 | return confGenson.deserialize(json, ConfigurationSeparatorImpl.class); |
97 | return confGenson.deserialize(json, ConfigurationSeparatorImpl.class); |
99 | } |
98 | } |
100 | 99 | ||
101 | public JSONObject toJsonObject() throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException { |
100 | public JSONObject toJsonObject() throws JSONException { |
102 | return new JSONObject(toJson()); |
101 | return new JSONObject(toJson()); |
103 | } |
102 | } |
104 | 103 | ||
105 | public static void main(1.5.0/docs/api/java/lang/String.html">String[] args) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
104 | public static void main(1.5.0/docs/api/java/lang/String.html">String[] args) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
106 | 1.5.0/docs/api/java/lang/System.html">System.out.println(new ConfigurationSeparatorImpl().toJson()); |
105 | 1.5.0/docs/api/java/lang/System.html">System.out.println(new ConfigurationSeparatorImpl().toJson()); |