/**
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 *
 * Copyright (C)
 * <a href="http://www.inab.org">Spanish National Institute of Bioinformatics (INB)</a>
 * <a href="http://www.bsc.es">Barcelona Supercomputing Center (BSC)</a>
 * <a href="http://inb.bsc.es">Computational Node 6</a>
 */

package org.inb.biomoby.shared.message;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlElement;
import org.inb.biomoby.shared.datatypes.MobyPrimitive;

/**
 * @author Dmitry Repchevsky
 */

public class MobyParameter extends AbstractMobyElement implements Serializable
{
    private String value;
    
    public MobyParameter() {}

    public MobyParameter(String value, String articleName) 
    {
        this.value = value;
        super.setArticleName(articleName);
    }

    public MobyParameter(MobyPrimitive parameter, String articleName) 
    {
        this(parameter.toString(), articleName);
    }

    @XmlElement(name="Value")
    public String getValue()
    {
        return value;
    }

    public void setValue(String value)
    {
        this.value = value;
    }
}