public class StrDataElement extends DataElement implements Serializable
DataElement class in which the content is kept in a String.attributes| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
InputStream |
getContent()
Abstract method which returns the content of the DataElement in a stream.
|
static StrDataElement |
getSinkDataElement(DataElement sourceDataElement)
Returns a new StrDataElement which contains all the attributes taken from the source
DataElement. |
static StrDataElement |
getSourceDataElement()
Returns a new StrDataElement instance.
|
String |
getStringContent()
Returns the content as String.
|
void |
setContent(String content)
Sets the content of the
DataElement. |
deleteAttribute, getAllAttributes, getAttributeValue, getContentType, getId, setAttribute, setContentType, setIdpublic static StrDataElement getSourceDataElement()
public static StrDataElement getSinkDataElement(DataElement sourceDataElement)
DataElement.sourceDataElement - The DataElement from which the new one inherits all attributes.public void setContent(String content)
DataElement.content - The content of the DataElement.public InputStream getContent()
DataElementgetContent in class DataElementDataElement.getContent()public String getStringContent()
public void destroy()
destroy in class DataElementCopyright © 2014. All Rights Reserved.