|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cishell.framework.data.BasicData
public class BasicData
A basic implementation of Data
. This class was included since
a simple implementation of Data will be used quite often in both application
and algorithm code.
Constructor Summary | |
---|---|
BasicData(Dictionary properties,
Object data,
String format)
Creates a Data object with the given data and metadata Dictionary |
|
BasicData(Object data,
String format)
Creates a Data object with the given data and an empty metadata Dictionary |
Method Summary | |
---|---|
Object |
getData()
Returns the data stored in this Data object |
String |
getFormat()
Returns the format of the encapsulated data. |
Dictionary |
getMetadata()
Returns the metadata associated with the data stored in this Data object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicData(Object data, String format)
Dictionary
data
- The data being wrappedpublic BasicData(Dictionary properties, Object data, String format)
Dictionary
properties
- The metadata about the datadata
- The data being wrappedMethod Detail |
---|
public Object getData()
Data
getData
in interface Data
Data.getData()
public Dictionary getMetadata()
Data
DataProperty
interface.
getMetadata
in interface Data
Data.getMetadata()
public String getFormat()
Data
File
,
then this method returns what MIME type it is with "file:" prepended
(eg. file:text/plain). Otherwise, the string returned should be the Java
class it represents. For algorithms this format should be the same as
their OUT_DATA property.
getFormat
in interface Data
Data.getFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |