Subversion Repositories bacoAlunos

Rev

Rev 1779 | Rev 1782 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1779 Rev 1780
Line 36... Line 36...
36
            .include("boardRole",CourseDepartmentImpl.class)
36
            .include("boardRole",CourseDepartmentImpl.class)
37
            .include("courseSchool",CourseDepartmentImpl.class)
37
            .include("courseSchool",CourseDepartmentImpl.class)
38
            .include("id",CourseSchoolImpl.class)
38
            .include("id",CourseSchoolImpl.class)
39
            .create();
39
            .create();
40
 
40
 
41
    public 1.5.0/docs/api/java/lang/String.html">String toJson() throws 1.5.0/docs/api/java/io/IOException.html">IOException
41
    public 1.5.0/docs/api/java/lang/String.html">String toJson()  {
42
    {
-
 
43
        return courseDepartmentGenson.serialize(this);
42
        return courseDepartmentGenson.serialize(this);
44
    }
43
    }
45
    public JSONObject toJsonObject() throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException
44
    public JSONObject toJsonObject() throws  JSONException
46
    {
45
    {
47
        return new JSONObject(courseDepartmentGenson.serialize(this));
46
        return new JSONObject(courseDepartmentGenson.serialize(this));
48
    }
47
    }
49
 
48
 
50
    public static 1.5.0/docs/api/java/lang/String.html">String toJson(ArrayList<CourseDepartment> departments) throws 1.5.0/docs/api/java/io/IOException.html">IOException
49
    public static 1.5.0/docs/api/java/lang/String.html">String toJson(ArrayList<CourseDepartment> departments) throws 1.5.0/docs/api/java/io/IOException.html">IOException