com.bekioui.maven.plugin.client.model.AutoValue_Project Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-maven-plugin Show documentation
Show all versions of client-maven-plugin Show documentation
Generate java client of RESTful API.
package com.bekioui.maven.plugin.client.model;
import java.io.File;
import java.net.URL;
import java.util.List;
import javax.annotation.Generated;
import org.apache.maven.project.MavenProject;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Project extends Project {
private final MavenProject mavenProject;
private final Properties properties;
private final String clientPackageName;
private final String contextPackageName;
private final String apiPackageName;
private final String implPackageName;
private final File clientDirectory;
private final File javaSourceDirectory;
private final List classpaths;
private AutoValue_Project(
MavenProject mavenProject,
Properties properties,
String clientPackageName,
String contextPackageName,
String apiPackageName,
String implPackageName,
File clientDirectory,
File javaSourceDirectory,
List classpaths) {
if (mavenProject == null) {
throw new NullPointerException("Null mavenProject");
}
this.mavenProject = mavenProject;
if (properties == null) {
throw new NullPointerException("Null properties");
}
this.properties = properties;
if (clientPackageName == null) {
throw new NullPointerException("Null clientPackageName");
}
this.clientPackageName = clientPackageName;
if (contextPackageName == null) {
throw new NullPointerException("Null contextPackageName");
}
this.contextPackageName = contextPackageName;
if (apiPackageName == null) {
throw new NullPointerException("Null apiPackageName");
}
this.apiPackageName = apiPackageName;
if (implPackageName == null) {
throw new NullPointerException("Null implPackageName");
}
this.implPackageName = implPackageName;
if (clientDirectory == null) {
throw new NullPointerException("Null clientDirectory");
}
this.clientDirectory = clientDirectory;
if (javaSourceDirectory == null) {
throw new NullPointerException("Null javaSourceDirectory");
}
this.javaSourceDirectory = javaSourceDirectory;
if (classpaths == null) {
throw new NullPointerException("Null classpaths");
}
this.classpaths = classpaths;
}
@Override
public MavenProject mavenProject() {
return mavenProject;
}
@Override
public Properties properties() {
return properties;
}
@Override
public String clientPackageName() {
return clientPackageName;
}
@Override
public String contextPackageName() {
return contextPackageName;
}
@Override
public String apiPackageName() {
return apiPackageName;
}
@Override
public String implPackageName() {
return implPackageName;
}
@Override
public File clientDirectory() {
return clientDirectory;
}
@Override
public File javaSourceDirectory() {
return javaSourceDirectory;
}
@Override
public List classpaths() {
return classpaths;
}
@Override
public String toString() {
return "Project{"
+ "mavenProject=" + mavenProject + ", "
+ "properties=" + properties + ", "
+ "clientPackageName=" + clientPackageName + ", "
+ "contextPackageName=" + contextPackageName + ", "
+ "apiPackageName=" + apiPackageName + ", "
+ "implPackageName=" + implPackageName + ", "
+ "clientDirectory=" + clientDirectory + ", "
+ "javaSourceDirectory=" + javaSourceDirectory + ", "
+ "classpaths=" + classpaths
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Project) {
Project that = (Project) o;
return (this.mavenProject.equals(that.mavenProject()))
&& (this.properties.equals(that.properties()))
&& (this.clientPackageName.equals(that.clientPackageName()))
&& (this.contextPackageName.equals(that.contextPackageName()))
&& (this.apiPackageName.equals(that.apiPackageName()))
&& (this.implPackageName.equals(that.implPackageName()))
&& (this.clientDirectory.equals(that.clientDirectory()))
&& (this.javaSourceDirectory.equals(that.javaSourceDirectory()))
&& (this.classpaths.equals(that.classpaths()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= mavenProject.hashCode();
h *= 1000003;
h ^= properties.hashCode();
h *= 1000003;
h ^= clientPackageName.hashCode();
h *= 1000003;
h ^= contextPackageName.hashCode();
h *= 1000003;
h ^= apiPackageName.hashCode();
h *= 1000003;
h ^= implPackageName.hashCode();
h *= 1000003;
h ^= clientDirectory.hashCode();
h *= 1000003;
h ^= javaSourceDirectory.hashCode();
h *= 1000003;
h ^= classpaths.hashCode();
return h;
}
static final class Builder extends Project.Builder {
private MavenProject mavenProject;
private Properties properties;
private String clientPackageName;
private String contextPackageName;
private String apiPackageName;
private String implPackageName;
private File clientDirectory;
private File javaSourceDirectory;
private List classpaths;
Builder() {
}
Builder(Project source) {
this.mavenProject = source.mavenProject();
this.properties = source.properties();
this.clientPackageName = source.clientPackageName();
this.contextPackageName = source.contextPackageName();
this.apiPackageName = source.apiPackageName();
this.implPackageName = source.implPackageName();
this.clientDirectory = source.clientDirectory();
this.javaSourceDirectory = source.javaSourceDirectory();
this.classpaths = source.classpaths();
}
@Override
public Project.Builder mavenProject(MavenProject mavenProject) {
this.mavenProject = mavenProject;
return this;
}
@Override
public Project.Builder properties(Properties properties) {
this.properties = properties;
return this;
}
@Override
public Project.Builder clientPackageName(String clientPackageName) {
this.clientPackageName = clientPackageName;
return this;
}
@Override
public Project.Builder contextPackageName(String contextPackageName) {
this.contextPackageName = contextPackageName;
return this;
}
@Override
public Project.Builder apiPackageName(String apiPackageName) {
this.apiPackageName = apiPackageName;
return this;
}
@Override
public Project.Builder implPackageName(String implPackageName) {
this.implPackageName = implPackageName;
return this;
}
@Override
public Project.Builder clientDirectory(File clientDirectory) {
this.clientDirectory = clientDirectory;
return this;
}
@Override
public Project.Builder javaSourceDirectory(File javaSourceDirectory) {
this.javaSourceDirectory = javaSourceDirectory;
return this;
}
@Override
public Project.Builder classpaths(List classpaths) {
this.classpaths = classpaths;
return this;
}
@Override
public Project build() {
String missing = "";
if (mavenProject == null) {
missing += " mavenProject";
}
if (properties == null) {
missing += " properties";
}
if (clientPackageName == null) {
missing += " clientPackageName";
}
if (contextPackageName == null) {
missing += " contextPackageName";
}
if (apiPackageName == null) {
missing += " apiPackageName";
}
if (implPackageName == null) {
missing += " implPackageName";
}
if (clientDirectory == null) {
missing += " clientDirectory";
}
if (javaSourceDirectory == null) {
missing += " javaSourceDirectory";
}
if (classpaths == null) {
missing += " classpaths";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_Project(
this.mavenProject,
this.properties,
this.clientPackageName,
this.contextPackageName,
this.apiPackageName,
this.implPackageName,
this.clientDirectory,
this.javaSourceDirectory,
this.classpaths);
}
}
}