Package org.amplafi.json

Examples of org.amplafi.json.JSONObject.optString()


    @SuppressWarnings("unchecked")
    @Override
    public <T> T fromJson(Object object) {
        JSONObject json = JSONObject.toJsonObject(object);
        this.key = json.optString(KEY);
        this.label = json.optString(LABEL);
        this.nextFlow = json.optString(NEXT_FLOW);
        this.nextFlowType = json.optString(NEXT_FLOW_TYPE);
        this.transitionType = json.opt(TRANSITION_TYPE);
        this.transitionCompletionMessage = json.optString(TRANSITION_COMPLETION_MESSAGE);
View Full Code Here


    @SuppressWarnings("unchecked")
    @Override
    public <T> T fromJson(Object object) {
        JSONObject json = JSONObject.toJsonObject(object);
        this.key = json.optString(KEY);
        this.label = json.optString(LABEL);
        this.nextFlow = json.optString(NEXT_FLOW);
        this.nextFlowType = json.optString(NEXT_FLOW_TYPE);
        this.transitionType = json.opt(TRANSITION_TYPE);
        this.transitionCompletionMessage = json.optString(TRANSITION_COMPLETION_MESSAGE);
        this.initialValues = MapJsonRenderer.INSTANCE.fromJson(Map.class, json.opt(INITIAL_VALUES));
View Full Code Here

    @Override
    public <T> T fromJson(Object object) {
        JSONObject json = JSONObject.toJsonObject(object);
        this.key = json.optString(KEY);
        this.label = json.optString(LABEL);
        this.nextFlow = json.optString(NEXT_FLOW);
        this.nextFlowType = json.optString(NEXT_FLOW_TYPE);
        this.transitionType = json.opt(TRANSITION_TYPE);
        this.transitionCompletionMessage = json.optString(TRANSITION_COMPLETION_MESSAGE);
        this.initialValues = MapJsonRenderer.INSTANCE.fromJson(Map.class, json.opt(INITIAL_VALUES));
        return (T) this;
View Full Code Here

    public <T> T fromJson(Object object) {
        JSONObject json = JSONObject.toJsonObject(object);
        this.key = json.optString(KEY);
        this.label = json.optString(LABEL);
        this.nextFlow = json.optString(NEXT_FLOW);
        this.nextFlowType = json.optString(NEXT_FLOW_TYPE);
        this.transitionType = json.opt(TRANSITION_TYPE);
        this.transitionCompletionMessage = json.optString(TRANSITION_COMPLETION_MESSAGE);
        this.initialValues = MapJsonRenderer.INSTANCE.fromJson(Map.class, json.opt(INITIAL_VALUES));
        return (T) this;
    }
View Full Code Here

        this.key = json.optString(KEY);
        this.label = json.optString(LABEL);
        this.nextFlow = json.optString(NEXT_FLOW);
        this.nextFlowType = json.optString(NEXT_FLOW_TYPE);
        this.transitionType = json.opt(TRANSITION_TYPE);
        this.transitionCompletionMessage = json.optString(TRANSITION_COMPLETION_MESSAGE);
        this.initialValues = MapJsonRenderer.INSTANCE.fromJson(Map.class, json.opt(INITIAL_VALUES));
        return (T) this;
    }

    @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.