public class ResultSetDataElement
extends org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase
Encapsulates a DataElement into a ResultElementBLOBBase.
| Constructor and Description |
|---|
ResultSetDataElement()
Default constructor necessary for the framework
|
ResultSetDataElement(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement dataElement)
Creates a new
ResultElementBLOBGeneric |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fromXML(String xml) |
InputStream |
getContentOfBLOB() |
org.gcube.datatransformation.datatransformationlibrary.model.ContentType |
getContentType() |
org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
getDataElement() |
String |
getOID() |
String |
getPayload()
Retrieves the payload
|
void |
setContentOfBLOB(InputStream content) |
String |
toXML() |
public ResultSetDataElement()
public ResultSetDataElement(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement dataElement)
throws Exception
ResultElementBLOBGenericdataElement - The data element.Exception - The ResultElementBLOBGeneric could not be createdpublic String getPayload()
public String getOID()
public org.gcube.datatransformation.datatransformationlibrary.model.ContentType getContentType()
public org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement getDataElement()
public void close()
throws Exception
close in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBaseException - An unrecoverable for the operation error occurredorg.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase#close()public void setContentOfBLOB(InputStream content) throws Exception
setContentOfBLOB in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBasecontent - sets the content of the blobException - An unrecoverable for the operation error occurredorg.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase#setContentOfBLOB(java.io.InputStream)public InputStream getContentOfBLOB() throws Exception
getContentOfBLOB in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBaseException - An unrecoverable for the operation error occurredorg.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase#getContentOfBLOB()public String toXML() throws Exception
toXML in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBaseException - An unrecoverable for the operation error occurredorg.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBase#toXML()public void fromXML(String xml) throws Exception
fromXML in class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBasexml - The serialized string to populate the instance fromException - An unrecoverable for the operation error occurredorg.gcube.searchservice.searchlibrary.resultset.elements.ResultElementBase#fromXML(java.lang.String)Copyright © 2014. All Rights Reserved.