// Path: tanaguru-survey-api/src/main/java/org/opens/tanaguru/survey/view/data/ContractResult.java
// public interface ContractResult {
// 
//     /**
//      *
//      * @return
//      */
//     String getLabel();
// 
//     /**
//      *
//      * @param label
//      */
//     void setLabel(String label);
// 
//     /**
//      * 
//      * @return
//      */
//     String getUrl();
//     
//     /**
//      *
//      * @param url
//      */
//     void setUrl(String url);
// 
//     /**
//      *
//      * @return
//      */
//     int getMark();
// 
//     /**
//      * 
//      * @param mark
//      */
//     void setMark(int mark);
// 
//     /**
//      *
//      * @return
//      */
//     Long getWebResourceId();
// 
//     /**
//      * 
//      * @param webResourceId
//      */
//     void setWebResourceId(Long webResourceId);
// 
// }
// 
// Path: tanaguru-survey-impl/src/main/java/org/opens/tanaguru/survey/view/data/ContractResultImpl.java
// public class ContractResultImpl implements ContractResult{
// 
//     private String label;
//     @Override
//     public String getLabel() {
//         return label;
//     }
// 
//     @Override
//     public void setLabel(String label) {
//         this.label = label ;
//     }
// 
//     private String url;
//     @Override
//     public String getUrl() {
//         return url;
//     }
// 
//     @Override
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     private int mark;
//     @Override
//     public int getMark() {
//         return mark;
//     }
// 
//     @Override
//     public void setMark(int mark) {
//         this.mark = mark;
//     }
// 
//     private Long webResourceId;
//     @Override
//     public Long getWebResourceId() {
//         return webResourceId;
//     }
// 
//     @Override
//     public void setWebResourceId(Long webResourceId) {
//         this.webResourceId = webResourceId;
//     }
// 
//     /**
//      * Default constructor
//      */
//     public ContractResultImpl(){}
// 
//     /**
//      * 
//      * @param url
//      * @param label
//      * @param mark
//      * @param webResourceId
//      */
//     public ContractResultImpl(String url, String label, int mark, Long webResourceId){
//         this.label = label;
//         this.url = url;
//         this.mark = mark;
//         this.webResourceId = webResourceId;
//     }
// 
// }


import org.opens.tanaguru.survey.view.data.ContractResultImpl;
import org.opens.tanaguru.survey.view.data.ContractResult;
/*
 * Tanaguru - Automated webpage assessment
 * Copyright (C) 2008-2011  Open-S Company
 *
 * This file is part of Tanaguru.
 *
 * Tanaguru is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Contact us by mail: open-s AT open-s DOT com
 */
package org.opens.tanaguru.survey.view.data.factory;


/**
 *
 * @author jkowalczyk
 */
public class ContractResultFactoryImpl implements ContractResultFactory{

    @Override
    public ContractResult createContractResult(String contractLabel, String contractUrl, int mark, Long webResourceId) {
        return new ContractResultImpl(contractUrl, contractLabel, mark, webResourceId);
    }

    @Override
// Path: tanaguru-survey-api/src/main/java/org/opens/tanaguru/survey/view/data/ContractResult.java
// public interface ContractResult {
// 
//     /**
//      *
//      * @return
//      */
//     String getLabel();
// 
//     /**
//      *
//      * @param label
//      */
//     void setLabel(String label);
// 
//     /**
//      * 
//      * @return
//      */
//     String getUrl();
//     
//     /**
//      *
//      * @param url
//      */
//     void setUrl(String url);
// 
//     /**
//      *
//      * @return
//      */
//     int getMark();
// 
//     /**
//      * 
//      * @param mark
//      */
//     void setMark(int mark);
// 
//     /**
//      *
//      * @return
//      */
//     Long getWebResourceId();
// 
//     /**
//      * 
//      * @param webResourceId
//      */
//     void setWebResourceId(Long webResourceId);
// 
// }
// 
// Path: tanaguru-survey-impl/src/main/java/org/opens/tanaguru/survey/view/data/ContractResultImpl.java
// public class ContractResultImpl implements ContractResult{
// 
//     private String label;
//     @Override
//     public String getLabel() {
//         return label;
//     }
// 
//     @Override
//     public void setLabel(String label) {
//         this.label = label ;
//     }
// 
//     private String url;
//     @Override
//     public String getUrl() {
//         return url;
//     }
// 
//     @Override
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     private int mark;
//     @Override
//     public int getMark() {
//         return mark;
//     }
// 
//     @Override
//     public void setMark(int mark) {
//         this.mark = mark;
//     }
// 
//     private Long webResourceId;
//     @Override
//     public Long getWebResourceId() {
//         return webResourceId;
//     }
// 
//     @Override
//     public void setWebResourceId(Long webResourceId) {
//         this.webResourceId = webResourceId;
//     }
// 
//     /**
//      * Default constructor
//      */
//     public ContractResultImpl(){}
// 
//     /**
//      * 
//      * @param url
//      * @param label
//      * @param mark
//      * @param webResourceId
//      */
//     public ContractResultImpl(String url, String label, int mark, Long webResourceId){
//         this.label = label;
//         this.url = url;
//         this.mark = mark;
//         this.webResourceId = webResourceId;
//     }
// 
// }


// Path: tanaguru-survey-impl/src/main/java/org/opens/tanaguru/survey/view/data/factory/ContractResultFactoryImpl.java
import org.opens.tanaguru.survey.view.data.ContractResultImpl;
import org.opens.tanaguru.survey.view.data.ContractResult;

/*
 * Tanaguru - Automated webpage assessment
 * Copyright (C) 2008-2011  Open-S Company
 *
 * This file is part of Tanaguru.
 *
 * Tanaguru is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Contact us by mail: open-s AT open-s DOT com
 */
package org.opens.tanaguru.survey.view.data.factory;


/**
 *
 * @author jkowalczyk
 */
public class ContractResultFactoryImpl implements ContractResultFactory{

    @Override
    public ContractResult createContractResult(String contractLabel, String contractUrl, int mark, Long webResourceId) {
        return new ContractResultImpl(contractUrl, contractLabel, mark, webResourceId);
    }

    @Override
    public ContractResult createContractResult() {