|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Restorable
Restorable is an interface for describing the current state of an object, and restoring an object?s state. Object state descriptions will be formatted as an XML document string. This allows the state description to be located in a file, reside in a database, or be passed over a network.
The exact structure of the XML document is the responsibility of the implementation. However, to encourage data
sharing between similar implementations, each implementation of Restorable should design
restoreState
to accept and ignore unknown structures in state documents. Otherwise, implementations
should clearly document how they will behave when encountering an unknown structure.
See the WorldWideWeb Consortium's (W3C) documentation on Extensible Markup Language (XML) 1.1 for information on XML.
Method Summary | |
---|---|
java.lang.String |
getRestorableState()
Returns an XML document string describing the object?s state. |
void |
restoreState(java.lang.String stateInXml)
Restores the object?s state to what is described in the specified XML document string. |
Method Detail |
---|
java.lang.String getRestorableState()
restoreState
and passing the XML document.
void restoreState(java.lang.String stateInXml)
stateInXml
- an XML document string describing an object's state.
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |