Package tsl2.nano.cursus.effectus
Interface IStoredContent<T>
- Type Parameters:
T- content type
- All Known Implementing Classes:
StoredContent
public interface IStoredContent<T>
NOT USED YET!
provides all informations to store/restore any object to/from byte[] stream. may be used for database blobs on instances.
- Author:
- Tom
-
Method Summary
Modifier and TypeMethodDescriptionvoidfromObject(T instance) evaluates all informations of the given object and serializes itbyte[]the serialized contentidentifer of the root object where the content belongs togetPath()path that guides from the root object (given by identifier) to the content objectcontent type descriptiontoObject()deserializes the content to the java object
-
Method Details
-
getIdentifier
String getIdentifier()identifer of the root object where the content belongs to -
getPath
String getPath()path that guides from the root object (given by identifier) to the content object -
getTypeName
String getTypeName()content type description -
getContent
byte[] getContent()the serialized content -
toObject
T toObject()deserializes the content to the java object -
fromObject
evaluates all informations of the given object and serializes it
-