org.embl.ebi.escience.scufl
Class OutputPort

java.lang.Object
  extended by org.embl.ebi.escience.scufl.Port
      extended by org.embl.ebi.escience.scufl.OutputPort
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.io.Serializable
Direct Known Subclasses:
RshellOutputPort, XMLSplittableOutputPort

public class OutputPort
extends Port
implements java.io.Serializable, java.awt.datatransfer.Transferable

A port that exposes output data on behalf of a processor

Author:
Tom Oinn
See Also:
Serialized Form

Field Summary
static java.awt.datatransfer.DataFlavor FLAVOR
           
 
Constructor Summary
OutputPort(Processor processor, java.lang.String name)
           
 
Method Summary
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df)
          Implements transferable interface
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          Implements transferable interface
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
          Implements transferable interface
 
Methods inherited from class org.embl.ebi.escience.scufl.Port
getMetadata, getName, getProcessor, getSyntacticType, isNameEditable, isSink, isSource, setName, setSyntacticType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FLAVOR

public static final java.awt.datatransfer.DataFlavor FLAVOR
Constructor Detail

OutputPort

public OutputPort(Processor processor,
                  java.lang.String name)
           throws DuplicatePortNameException,
                  PortCreationException
Throws:
DuplicatePortNameException
PortCreationException
Method Detail

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Implements transferable interface

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
Implements transferable interface

Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Implements transferable interface

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable