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

org.eurekaclinical.eureka.client.comm.Sequence Maven / Gradle / Ivy

The newest version!
/*
 * #%L
 * Eureka Common
 * %%
 * Copyright (C) 2012 - 2013 Emory University
 * %%
 * 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.
 * #L%
 */
package org.eurekaclinical.eureka.client.comm;

import java.util.List;
import org.eurekaclinical.eureka.client.comm.exception.PhenotypeHandlingException;

/**
 * Container class for the sequence user-created phenotype from the UI.
 * Essentially a direct mapping from the sequence element form fields.
 */
public final class Sequence extends Phenotype {

    private PhenotypeField primaryPhenotype;
    private List relatedPhenotypes;

    public Sequence() {
        super(Type.SEQUENCE);
    }

    public PhenotypeField getPrimaryPhenotype() {
        return primaryPhenotype;
    }

    public void setPrimaryPhenotype(PhenotypeField primaryPhenotype) {
        this.primaryPhenotype = primaryPhenotype;
    }

    public List getRelatedPhenotypes() {
        return relatedPhenotypes;
    }

    public void setRelatedPhenotypes(
            List relatedPhenotypes) {
        this.relatedPhenotypes = relatedPhenotypes;
    }

    @Override
    public void accept(PhenotypeVisitor visitor)
            throws PhenotypeHandlingException {
        visitor.visit(this);
    }

    @Override
    public String toString() {
        return "Sequence{" + "primaryPhenotype=" + primaryPhenotype + ", relatedPhenotypes=" + relatedPhenotypes + '}';
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy