source: ether_ndacc/trunk/common/interface/com/ether/JSONHelper.java @ 204

Last change on this file since 204 was 204, checked in by vmipsl, 13 years ago

[Internationalisation]

File size: 628 bytes
Line 
1package com.ether;
2
3import net.sf.json.JSON;
4import net.sf.json.JSONArray;
5import net.sf.json.JSONObject;
6import org.jetbrains.annotations.NotNull;
7import org.jetbrains.annotations.Nullable;
8
9import java.util.Collection;
10
11public interface JSONHelper
12{
13    @NotNull
14    JSON toJSON( @NotNull final Object object );
15
16    @NotNull
17    JSONObject toJSONObject( @NotNull final Object object );
18
19    JSONArray toJSON( @Nullable final Object[] collection );
20
21    @NotNull
22    JSONArray toJSON( @Nullable final Collection collection );
23
24    @Nullable
25    <T> T fromJSON( @NotNull final JSON json, @NotNull final Class<T> beanClass );
26}
Note: See TracBrowser for help on using the repository browser.