com.github.dreamhead.moco.parser.model.StructSetting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-runner Show documentation
Show all versions of moco-runner Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
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