|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.objectstore.filesystem.SimpleObjectInfo
public class SimpleObjectInfo
Represents basic information for an object in SimpleObjectStoreService
.
Field Summary |
---|
Fields inherited from interface org.eclipse.smila.objectstore.StoreObject |
---|
KEY_ID, KEY_SIZE, KEY_TIMESTAMP |
Constructor Summary | |
---|---|
SimpleObjectInfo(java.io.File file,
java.lang.String id)
constructor. |
Method Summary | |
---|---|
java.lang.String |
getId()
|
long |
getSize()
|
java.util.Date |
getTimestamp()
|
AnyMap |
toAny()
Create an AnyMap with the contents of this StoreObject . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleObjectInfo(java.io.File file, java.lang.String id)
Method Detail |
---|
public java.lang.String getId()
getId
in interface StoreObject
public long getSize()
getSize
in interface StoreObject
public java.util.Date getTimestamp()
getTimestamp
in interface StoreObject
public AnyMap toAny()
AnyMap
with the contents of this StoreObject
. In JSON, it should look like this:
{ "id" : "name-of-object", "size" : 42, "timestamp" : "2011-06-20T09:22:42.123+0100" }Service implementations that extend the ObjectInfo should still use this structure as a base and add specific information as they like.
toAny
in interface StoreObject
|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |