org.embl.ebi.escience.scuflworkers.rserv
Class RservInputPort

java.lang.Object
  extended by org.embl.ebi.escience.scufl.Port
      extended by org.embl.ebi.escience.scufl.InputPort
          extended by org.embl.ebi.escience.scuflworkers.rserv.RservInputPort
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.io.Serializable

public class RservInputPort
extends InputPort

InputPort specialization for Rserv processor. Add support for setting the desired javaType on input, so as to convert inputs on workflow invocation. The syntactic type will be set to l('text/plain') for all but REXP, which will be text/plain.

Author:
Stian Soiland
See Also:
Serialized Form

Field Summary
static java.util.Map javaTypes
           
 
Fields inherited from class org.embl.ebi.escience.scufl.InputPort
FLAVOR, MERGE, NDSELECT
 
Constructor Summary
RservInputPort(Processor processor, java.lang.String name)
           
 
Method Summary
 java.lang.String getJavaType()
           
 boolean isNameEditable()
          Check if port name is editable, ie.
 void setJavaType(java.lang.String type_name)
           
 
Methods inherited from class org.embl.ebi.escience.scufl.InputPort
getControlledVocabulary, getDefaultValue, getMergeMode, getTransferData, getTransferDataFlavors, getWrappedDefaultValue, hasControlledVocabulary, hasDefaultValue, isBound, isDataFlavorSupported, isOptional, setControlledVocabulary, setDefaultValue, setMergeMode, setOptional
 
Methods inherited from class org.embl.ebi.escience.scufl.Port
getMetadata, getName, getProcessor, getSyntacticType, isSink, isSource, setName, setSyntacticType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

javaTypes

public static java.util.Map javaTypes
Constructor Detail

RservInputPort

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

getJavaType

public java.lang.String getJavaType()

setJavaType

public void setJavaType(java.lang.String type_name)
                 throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

isNameEditable

public boolean isNameEditable()
Description copied from class: Port
Check if port name is editable, ie. that setName() will have an effect. Only workflow sink or source ports are normally editable.

Overrides:
isNameEditable in class Port
Returns:
true if setName() will set the name.