org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl
Class TMDataSource
java.lang.Object
org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.TMDataSource
- All Implemented Interfaces:
- org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource
public class TMDataSource
- extends Object
- implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
This DataSource fetches Trees from Tree Manager.
- Author:
- john.gerbesiotis - DI NKUA
|
Constructor Summary |
TMDataSource(String input,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters)
This constructor for TMDataSource |
|
Method Summary |
void |
close()
|
boolean |
hasNext()
|
boolean |
isClosed()
|
static void |
main(String[] args)
|
org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
next()
|
org.gcube.datatransformation.datatransformationlibrary.model.ContentType |
nextContentType()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMDataSource
public TMDataSource(String input,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters)
- This constructor for
TMDataSource
- Parameters:
input - The input value of the DataSource.inputParameters - The output parameters of the DataSource.
close
public void close()
- Specified by:
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler
- See Also:
DataHandler.close()
isClosed
public boolean isClosed()
- Specified by:
isClosed in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler
- Returns:
- true if the
TReader has been closed. Otherwise false. - See Also:
DataHandler.isClosed()
nextContentType
public org.gcube.datatransformation.datatransformationlibrary.model.ContentType nextContentType()
- Specified by:
nextContentType in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
- Returns:
- next DataElement content type. application.xml in any case.
- See Also:
ContentTypeDataSource.nextContentType()
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource- Specified by:
hasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource
- Returns:
- true only if TReader has more trees to read. Otherwise false.
- See Also:
DataSource.hasNext()
next
public org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement next()
- Specified by:
next in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource
- Returns:
- next DataElement
- See Also:
DataSource.next()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.