|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProfileModelElement
As more sophisticated internal viewers come onstream, they will require state persistence. For example, the Audio Player currently has controls whose state must be persisted. Since the set of viewers is extensible, so we need an extensible mechanism to store their state. Hence this interface. The ProfileModel contains a hashmap of ProfileModelElement entries. Each entry is keyed by the classname of the implementing class, plus a unique key string provided via the interface. The InternalViewerRuntime provides interface to get and put each viewer's instance. All implementing classes must provide a sensible, public, default constructor. This will be used to instantiate the element when loading the profile.
Method Summary | |
---|---|
java.lang.String |
getKey()
Returns a unique key. |
int |
getVersion()
Returns the current marshal version of this object. |
void |
marshal(java.io.DataOutputStream dos)
Marshal the state onto the supplied stream. |
void |
unmarshal(java.io.DataInputStream dis,
int marshalver)
Unmarshal the state from the supplied stream. |
Method Detail |
---|
int getVersion()
java.lang.String getKey()
void marshal(java.io.DataOutputStream dos) throws java.io.IOException
dos
- the stream to marshal onto.
java.io.IOException
void unmarshal(java.io.DataInputStream dis, int marshalver) throws java.io.IOException
dis
.
dis
- The stream to unmarshal from.marshalver
- The marshal version of the stream - i.e. it may represent
a previous version of the object.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |