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

os.rio-core.0.6.0.source-code.GentooMirrorBuilderPojo Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2014 Objectos, Fábrica de Software LTDA.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package br.com.objectos.rio;

import java.io.File;

import br.com.objectos.way.core.io.Directory;

/**
 * @author [email protected] (Marcio Endo)
 */
class GentooMirrorBuilderPojo
    implements
    GentooMirrorBuilder,
    GentooMirrorBuilder.ServerBuilder,
    GentooMirrorBuilder.RemotePathBuilder,
    GentooMirrorBuilder.MountDirBuilder,
    GentooMirrorBuilder.Stage3FileBuilder {

  final AbstractRioCommand command;

  private String server;
  private String remotePath;
  private Directory mountDir;
  private File stage3File;

  public GentooMirrorBuilderPojo(AbstractRioCommand command) {
    this.command = command;
  }

  @Override
  public GentooMirror build() {
    return new GentooMirror(this);
  }

  @Override
  public ServerBuilder server(String server) {
    this.server = server;
    return this;
  }

  @Override
  public RemotePathBuilder remotePath(String remotePath) {
    this.remotePath = remotePath;
    return this;
  }

  @Override
  public MountDirBuilder mountDir(Directory mountDir) {
    this.mountDir = mountDir;
    return this;
  }

  @Override
  public Stage3FileBuilder stage3File(File stage3File) {
    this.stage3File = stage3File;
    return this;
  }

  public String getServer() {
    return server;
  }

  public String getRemotePath() {
    return remotePath;
  }

  public Directory getMountDir() {
    return mountDir;
  }

  public File getStage3File() {
    return stage3File;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy