org.gcube.datatransformation.datatransformationlibrary.model
Class Source

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.model.TransformationRuleElement
      extended by org.gcube.datatransformation.datatransformationlibrary.model.Source

public class Source
extends TransformationRuleElement

Author:
Dimitris Katris, NKUA

Source of a transformationUnit unit is the composition of the content type that the transformationUnit unit expects as well as the input data which will be transformed.


Field Summary
 
Fields inherited from class org.gcube.datatransformation.datatransformationlibrary.model.TransformationRuleElement
contentType, transformationUnit
 
Constructor Summary
Source()
           
 
Method Summary
protected  void fromDOM(Element sourceElm)
           
 DataSource getInput()
          Returns the input data handler.
 String getInputID()
          Returns the input data handler id.
 void setInputID(String id)
          Sets the input data handler id.
protected  void toDOM(Element sourcesElm)
           
 
Methods inherited from class org.gcube.datatransformation.datatransformationlibrary.model.TransformationRuleElement
getContentType, getTransformationUnit, setContentType, setTransformationUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source

public Source()
Method Detail

setInputID

public void setInputID(String id)
Sets the input data handler id.

Parameters:
id - The input data handler id.

getInputID

public String getInputID()
Returns the input data handler id.

Returns:
The input data handler id.

getInput

public DataSource getInput()
                    throws Exception
Returns the input data handler.

Returns:
The input data handler.
Throws:
Exception - If the does not exist.

fromDOM

protected void fromDOM(Element sourceElm)

toDOM

protected void toDOM(Element sourcesElm)


Copyright © 2013. All Rights Reserved.