All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dreamhead.moco.parser.model.StructSetting Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
package com.github.dreamhead.moco.parser.model;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.google.common.base.MoreObjects;

@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class StructSetting {
    private Object json;
    private String xml;

    public final boolean isJson() {
        return json != null;
    }

    public final Object getJson() {
        return json;
    }

    public final boolean isXml() {
        return xml != null;
    }

    public final String getXml() {
        return this.xml;
    }

    @Override
    public final String toString() {
        return MoreObjects.toStringHelper(this)
                .add("json", json)
                .add("xml", xml)
                .toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy