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

xapi.gwtc.api.GwtcBuilder Maven / Gradle / Ivy

Go to download

Everything needed to run a comprehensive dev environment. Just type X_ and pick a service from autocomplete; new dev modules will be added as they are built. The only dev service not included in the uber jar is xapi-dev-maven, as it includes all runtime dependencies of maven, adding ~4 seconds to build time, and 6 megabytes to the final output jar size (without xapi-dev-maven, it's ~1MB).

The newest version!
package xapi.gwtc.api;


import xapi.annotation.common.Property;
import xapi.annotation.compile.Dependency;
import xapi.annotation.compile.Resource;
import xapi.annotation.ui.UiTemplate;
import xapi.gwtc.api.Gwtc;

@SuppressWarnings("all")
public class GwtcBuilder {

  private static final class ImmutableGwtc implements Gwtc {

    private final Gwtc.CompileMode compileMode;

    private final Property[] propertiesSystem;

    private final Property[] propertiesGwt;

    private final Property[] propertiesGwtConfiguration;

    private final GwtcProperties[] propertiesLaunch;

    private final Resource[] includeGwtXml;

    private final String[] includeSource;

    private final Gwtc.IsolationMode isolationMode;

    private final UiTemplate[] includeHostHtml;

    private final Dependency[] dependencies;

    private final Gwtc.AncestorMode[] inheritanceMode;

    private final boolean debug;

    public Class annotationType () {
      return xapi.gwtc.api.Gwtc.class;
    }

    public final Gwtc.CompileMode compileMode () {
      return compileMode;
    }

    public final Property[] propertiesSystem () {
      return propertiesSystem;
    }

    public final Property[] propertiesGwt () {
      return propertiesGwt;
    }

    public final Property[] propertiesGwtConfiguration () {
      return propertiesGwtConfiguration;
    }

    public final GwtcProperties[] propertiesLaunch () {
      return propertiesLaunch;
    }

    public final Resource[] includeGwtXml () {
      return includeGwtXml;
    }

    public final String[] includeSource () {
      return includeSource;
    }

    public final Gwtc.IsolationMode isolationMode () {
      return isolationMode;
    }

    public final UiTemplate[] includeHostHtml () {
      return includeHostHtml;
    }

    public final Dependency[] dependencies () {
      return dependencies;
    }

    public final Gwtc.AncestorMode[] inheritanceMode () {
      return inheritanceMode;
    }

    public final boolean debug () {
      return debug;
    }

    private ImmutableGwtc  (Gwtc.CompileMode compileMode, Property[] propertiesSystem, Property[] propertiesGwt, Property[] propertiesGwtConfiguration, GwtcProperties[] propertiesLaunch, Resource[] includeGwtXml, String[] includeSource, Gwtc.IsolationMode isolationMode, UiTemplate[] includeHostHtml, Dependency[] dependencies, Gwtc.AncestorMode[] inheritanceMode, boolean debug) {
      this.compileMode = compileMode;
      this.propertiesSystem = propertiesSystem;
      this.propertiesGwt = propertiesGwt;
      this.propertiesGwtConfiguration = propertiesGwtConfiguration;
      this.propertiesLaunch = propertiesLaunch;
      this.includeGwtXml = includeGwtXml;
      this.includeSource = includeSource;
      this.isolationMode = isolationMode;
      this.includeHostHtml = includeHostHtml;
      this.dependencies = dependencies;
      this.inheritanceMode = inheritanceMode;
      this.debug = debug;
    }

  }

  public static GwtcBuilder buildGwtc () {
    return new GwtcBuilder();
  }

  private Gwtc.CompileMode compileMode;

  private Property[] propertiesSystem;

  private Property[] propertiesGwt;

  private Property[] propertiesGwtConfiguration;

  private GwtcProperties[] propertiesLaunch;

  private Resource[] includeGwtXml;

  private String[] includeSource;

  private Gwtc.IsolationMode isolationMode;

  private UiTemplate[] includeHostHtml;

  private Dependency[] dependencies;

  private Gwtc.AncestorMode[] inheritanceMode;

  private boolean debug;

  public final Gwtc.CompileMode getCompileMode () {
    return compileMode;
  }

  public final GwtcBuilder setCompileMode (Gwtc.CompileMode compileMode) {
    this.compileMode = compileMode;
    return this;
  }

  public final Property[] getPropertiesSystem () {
    return propertiesSystem;
  }

  public final GwtcBuilder setPropertiesSystem (Property[] propertiesSystem) {
    this.propertiesSystem = propertiesSystem;
    return this;
  }

  public final Property[] getPropertiesGwt () {
    return propertiesGwt;
  }

  public final GwtcBuilder setPropertiesGwt (Property[] propertiesGwt) {
    this.propertiesGwt = propertiesGwt;
    return this;
  }

  public final Property[] getPropertiesGwtConfiguration () {
    return propertiesGwtConfiguration;
  }

  public final GwtcBuilder setPropertiesGwtConfiguration (Property[] propertiesGwtConfiguration) {
    this.propertiesGwtConfiguration = propertiesGwtConfiguration;
    return this;
  }

  public final GwtcProperties[] getPropertiesLaunch () {
    return propertiesLaunch;
  }

  public final GwtcBuilder setPropertiesLaunch (GwtcProperties[] propertiesLaunch) {
    this.propertiesLaunch = propertiesLaunch;
    return this;
  }

  public final Resource[] getIncludeGwtXml () {
    return includeGwtXml;
  }

  public final GwtcBuilder setIncludeGwtXml (Resource[] includeGwtXml) {
    this.includeGwtXml = includeGwtXml;
    return this;
  }

  public final String[] getIncludeSource () {
    return includeSource;
  }

  public final GwtcBuilder setIncludeSource (String[] includeSource) {
    this.includeSource = includeSource;
    return this;
  }

  public final Gwtc.IsolationMode getIsolationMode () {
    return isolationMode;
  }

  public final GwtcBuilder setIsolationMode (Gwtc.IsolationMode isolationMode) {
    this.isolationMode = isolationMode;
    return this;
  }

  public final UiTemplate[] getIncludeHostHtml () {
    return includeHostHtml;
  }

  public final GwtcBuilder setIncludeHostHtml (UiTemplate[] includeHostHtml) {
    this.includeHostHtml = includeHostHtml;
    return this;
  }

  public final Dependency[] getDependencies () {
    return dependencies;
  }

  public final GwtcBuilder setDependencies (Dependency[] dependencies) {
    this.dependencies = dependencies;
    return this;
  }

  public final Gwtc.AncestorMode[] getInheritanceMode () {
    return inheritanceMode;
  }

  public final GwtcBuilder setInheritanceMode (Gwtc.AncestorMode[] inheritanceMode) {
    this.inheritanceMode = inheritanceMode;
    return this;
  }

  public final boolean isDebug () {
    return debug;
  }

  public final GwtcBuilder setDebug (boolean debug) {
    this.debug = debug;
    return this;
  }

  private GwtcBuilder  () {
  }

  public Gwtc build () {
    return new ImmutableGwtc(compileMode, propertiesSystem, propertiesGwt, propertiesGwtConfiguration, propertiesLaunch, includeGwtXml, includeSource, isolationMode, includeHostHtml, dependencies, inheritanceMode, debug);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy