blob: b318943816457073feaac7c3ab5f6cb4053cdf34 [file] [log] [blame]
/*******************************************************************************
* Copyright (C) 2007 The University of Manchester
*
* Modifications to the initial code base are copyright of their
* respective authors, or their employers as appropriate.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
******************************************************************************/
package net.sf.taverna.t2.annotation.annotationbeans;
import net.sf.taverna.t2.annotation.AppliesTo;
import net.sf.taverna.t2.workflowmodel.Port;
/**
* A single MIME type, intended to be used to annotate an input or output port
* within the workflow to denote the type within that system of data produced or
* consumed by the port.
*
* @author Tom Oinn
*
*/
// @AppliesTo(targetObjectType = { Port.class })
public class MimeType extends AbstractTextualValueAssertion {
/**
* Default constructor as mandated by java bean specification
*/
public MimeType() {
super();
}
/**
* Return the MIME type as a string, mime types look like 'part/part'. We
* may want to consider whether it's possible to make this a genuine
* enumeration driven off a canonical list of MIME types or whether it's
* best kept as the current (free) string. The advantage of an enumerated
* type is that we could attach description to the MIME types which would
* help with the UI construction but maybe this isn't the place to put it
* (should this link be in the UI layer? probably)
*
* @return the MIME type as a string.
*/
@Override
public String getText() {
return super.getText();
}
}