|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement
public abstract class DataElement
| Field Summary | |
|---|---|
protected HashMap<String,String> |
attributes
The (name, value) attribute pairs |
| Constructor Summary | |
|---|---|
DataElement()
|
|
| Method Summary | |
|---|---|
void |
deleteAttribute(String attrName)
Deletes an attribute of the DataElement. |
abstract void |
destroy()
|
Map<String,String> |
getAllAttributes()
Returns a Map which contains all the attributes of the DataElement. |
String |
getAttributeValue(String attrName)
Returns the value of the attribute with name attrName. |
abstract InputStream |
getContent()
Abstract method which returns the content of the DataElement in a stream. |
ContentType |
getContentType()
Returns the ContentType of the DataElement. |
String |
getId()
Returns the id of the DataElement. |
void |
setAttribute(String attrName,
String attrVal)
Puts an attribute in the DataElement. |
void |
setContentType(ContentType contentType)
Sets the ContentType of the DataElement. |
void |
setId(String id)
Sets the id of the DataElement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap<String,String> attributes
| Constructor Detail |
|---|
public DataElement()
| Method Detail |
|---|
public String getId()
public void setId(String id)
id - the id of the DataElement.public ContentType getContentType()
ContentType of the DataElement.
ContentType of the DataElement.public void setContentType(ContentType contentType)
ContentType of the DataElement.
contentType - The ContentType of the DataElement.
public void setAttribute(String attrName,
String attrVal)
attrName - The name of the attribute.attrVal - The value of the attribute.public void deleteAttribute(String attrName)
attrName - The name of the attribute which will be deleted.public String getAttributeValue(String attrName)
attrName - The name of the attribute whose value will be returned.
public Map<String,String> getAllAttributes()
Map which contains all the attributes of the DataElement.
Map with all the attributes of the DataElement.public abstract InputStream getContent()
public abstract void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||