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, isCastableResult, isComparableResultgetComment, getDatatype, getName, toXMLpublic 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 StringBufferNonParsableException - if the ImageResult could not be reconstructed out of
the StringBuffer xmlpublic BufferedImage getValue()
AnnotatedEntityAnnotatedEntity.getValue in class AnnotatedEntityAnnotatedEntitypublic String getXMLTag()
AnnotatedEntitygetXMLTag in class AnnotatedEntityprotected void appendFurtherInfos(StringBuffer xml)
AnnotatedEntityStorable.toXML() to extract
further information (name, comment, datatype).appendFurtherInfos in class AnnotatedEntityxml - a XML representation of the main information as
StringBufferStorable.toXML()protected void extractFurtherInfos(StringBuffer representation) throws NonParsableException
AnnotatedEntityStringBuffer to
extract the further information.extractFurtherInfos in class AnnotatedEntityrepresentation - a XML represenation of the main information as
StringBufferNonParsableException - if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)