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

de.ipk_gatersleben.bit.bi.isa4j.components.ProtocolParameter Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2020 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
 * All rights reserved. This program and the accompanying materials are made available under the terms of the MIT License (https://spdx.org/licenses/MIT.html)
 *
 * Contributors:
 *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany
 */
package de.ipk_gatersleben.bit.bi.isa4j.components;

import java.util.Objects;

public class ProtocolParameter {
	
	private OntologyAnnotation name;

	public ProtocolParameter(OntologyAnnotation name) {
		this.setName(name);
	}
	
	public ProtocolParameter(String name) {
		this(new OntologyAnnotation(name, null, null));
	}

	/**
	 * @return the name
	 */
	public OntologyAnnotation getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(OntologyAnnotation name) {
		this.name = Objects.requireNonNull(name, "ProtocolParameter name OntologyAnnotation object cannot be null");
	}
	
	@Override
	public String toString() {
		return " '" + this.name + "'";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy