org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.utils
Class ResultSetDataElement
java.lang.Object
org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase
org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase
org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.utils.ResultSetDataElement
public class ResultSetDataElement
- extends org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase
- Author:
- Dimitris Katris, NKUA
Encapsulates a DataElement into a ResultElementBLOBBase.
|
Constructor Summary |
ResultSetDataElement()
Default constructor necessary for the framework |
ResultSetDataElement(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement dataElement)
Creates a new ResultElementBLOBGeneric |
| Methods inherited from class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase |
getRecordAttributes, getRecordAttributes, isValid, RS_fromXML, RS_toXML, setRecordAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetDataElement
public ResultSetDataElement()
- Default constructor necessary for the framework
ResultSetDataElement
public ResultSetDataElement(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement dataElement)
throws Exception
- Creates a new
ResultElementBLOBGeneric
- Parameters:
dataElement - The data element.
- Throws:
Exception - The ResultElementBLOBGeneric could not be created
getPayload
public String getPayload()
- Retrieves the payload
- Returns:
- The payload
getOID
public String getOID()
- Returns:
- The id of the data element.
getContentType
public org.gcube.datatransformation.datatransformationlibrary.model.ContentType getContentType()
- Returns:
- The content type of the data element.
getDataElement
public org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement getDataElement()
- Returns:
- The data element.
close
public void close()
throws Exception
- Specified by:
close in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase
- Throws:
Exception - An unrecoverable for the operation error occurred- See Also:
org.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase#close()
setContentOfBLOB
public void setContentOfBLOB(InputStream content)
throws Exception
- Specified by:
setContentOfBLOB in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase
- Parameters:
content - sets the content of the blob
- Throws:
Exception - An unrecoverable for the operation error occurred- See Also:
org.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase#setContentOfBLOB(java.io.InputStream)
getContentOfBLOB
public InputStream getContentOfBLOB()
throws Exception
- Specified by:
getContentOfBLOB in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase
- Returns:
- the content of the blob
- Throws:
Exception - An unrecoverable for the operation error occurred- See Also:
org.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase#getContentOfBLOB()
toXML
public String toXML()
throws Exception
- Specified by:
toXML in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase
- Returns:
- The serialized record payload
- Throws:
Exception - An unrecoverable for the operation error occurred- See Also:
org.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBase#toXML()
fromXML
public void fromXML(String xml)
throws Exception
- Specified by:
fromXML in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase
- Parameters:
xml - The serialized string to populate the instance from
- Throws:
Exception - An unrecoverable for the operation error occurred- See Also:
org.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBase#fromXML(java.lang.String)
Copyright © 2012. All Rights Reserved.