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

com.xcase.box.impl.simple.objects.UploadResultImpl Maven / Gradle / Ivy

/**
 * Copyright 2016 Xcase All rights reserved.
 */
package com.xcase.box.impl.simple.objects;

import com.xcase.box.objects.BoxFile;
import com.xcase.box.objects.UploadResult;

/**
 * @author martin
 *
 */
public class UploadResultImpl implements UploadResult {

    /**
     * the box file object.
     */
    private BoxFile file;

    /**
     * error information, if any.
     */
    private String errorInfo;

    /**
     * true if any error occurred.
     */
    private boolean hasError;

    /**
     * @return the file
     */
    public BoxFile getFile() {
        return this.file;
    }

    /**
     * @param file the file to set
     */
    public void setFile(BoxFile file) {
        this.file = file;
    }

    /**
     * @return the errorInfo
     */
    public String getErrorInfo() {
        return this.errorInfo;
    }

    /**
     * @param errorInfo the errorInfo to set
     */
    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    /**
     * @return the hasError
     */
    public boolean isHasError() {
        return this.hasError;
    }

    /**
     * @param hasError the hasError to set
     */
    public void setHasError(boolean hasError) {
        this.hasError = hasError;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy