public class ImageResult extends Result
comment, datatype, name
Constructor and Description |
---|
ImageResult(StringBuffer xml)
The standard constructor for the interface
Storable . |
ImageResult(String name,
String comment,
BufferedImage image)
Constructs a new
ImageResult from a BufferedImage . |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFurtherInfos(StringBuffer xml)
This method can be used in the method
Storable.toXML() to extract
further information (name, comment, datatype). |
protected void |
extractFurtherInfos(StringBuffer representation)
This method can be used in the constructor with parameter
StringBuffer to
extract the further information. |
BufferedImage |
getValue()
Returns the value of the
AnnotatedEntity . |
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description.
|
String |
toString() |
checkDatatype, createResult, getOriginalName, isCastableResult, isComparableResult, rename
getComment, getDatatype, getName, toXML
public ImageResult(String name, String comment, BufferedImage image)
ImageResult
from a BufferedImage
.name
- the name of the imagecomment
- a comment on the imageimage
- the image itselfpublic ImageResult(StringBuffer xml) throws NonParsableException
Storable
.
Constructs a ImageResult
out of an XML representation.xml
- the XML representation as StringBuffer
NonParsableException
- if the ImageResult
could not be reconstructed out of
the StringBuffer
xml
public BufferedImage getValue()
AnnotatedEntity
AnnotatedEntity
.getValue
in class AnnotatedEntity
AnnotatedEntity
public String getXMLTag()
AnnotatedEntity
getXMLTag
in class AnnotatedEntity
protected void appendFurtherInfos(StringBuffer xml)
AnnotatedEntity
Storable.toXML()
to extract
further information (name, comment, datatype).appendFurtherInfos
in class Result
xml
- a XML representation of the main information as
StringBuffer
Storable.toXML()
protected void extractFurtherInfos(StringBuffer representation) throws NonParsableException
AnnotatedEntity
StringBuffer
to
extract the further information.extractFurtherInfos
in class Result
representation
- a XML represenation of the main information as
StringBuffer
NonParsableException
- if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)