Subversion Repositories bacoAlunos

Rev

Rev 1779 | Rev 1781 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package pt.estgp.estgweb.domain;

import com.owlike.genson.Genson;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by jorgemachado on 03/02/17.
 */

public class BpmnFlowComponentImpl extends BpmnFlowComponent
{
    static Genson genson = new Genson.Builder()
            .include(BpmnFlowComponent.class)
            //exclude connector
            .create();

    public JSONObject toJsonObject() throws JSONException
    {
        return new JSONObject(genson.serialize(this));
    }

    public 1.5.0/docs/api/java/lang/String.html">String toJson() {
        return genson.serialize(this);
    }
}