gov.nasa.worldwind
Interface Restorable
- All Known Subinterfaces:
- Airspace, AirspaceEditor, Annotation, ElevationModel, Layer, OrbitView, SurfaceShape, View, WWIcon
- All Known Implementing Classes:
- AbstractAirspace, AbstractAirspaceEditor, AbstractAnnotation, AbstractElevationModel, AbstractGraticuleLayer, AbstractLayer, AbstractSurfaceShape, AbstractView, AirspaceLayer, AnalysisPanel, AnnotationAttributes, AnnotationLayer, AudioPlayerAnnotation, BasicElevationModel, BasicOrbitView, BasicTiledImageLayer, BMNGOneImage, BMNGWMSLayer, Box, ButtonAnnotation, Cake, Cake.Layer, CappedCylinder, Clementine30Layer, Clementine40BaseLayer, Clementine40Layer, CloudCeiling, CloudCeilingPanel, CompassLayer, CompoundElevationModel, ConformingCircle, ConformingCircularPolygon, ConformingEllipse, ConformingEllipticalPolygon, ConformingPolygon, ConformingQuad, ConformingSector, ConformingShape, ConformingSquare, CountryBoundariesLayer, CrosshairLayer, Curtain, DialogAnnotation, DialogAnnotation.BusyImage, EarthLocalElevationModel, EarthNASAPlaceNameLayer, ElevationPlane, FlatOrbitView, GliderImageLayer, GlobeAnnotation, HawaiianIslandsElevationModel, HawaiianIslandsLayer, IconLayer, ImageAnnotation, LandsatI3WMSLayer, LatLonGraticuleLayer, LayerManagerLayer, LocalElevationModel, MarkerLayer, MDIMLayer, MeasureTool.ControlPoint, MeasureTool.CustomRenderableLayer, MGRSGraticuleLayer, MOCColorizedBaseLayer, MOCColorizedLayer, MOCLayer, MolaColorASULayer, MolaColoredJPLLayer, MSVirtualEarthLayer, NAIPCaliforniaWMS, NASAWFSPlaceNameLayer, OpenStreetMapLayer, Orbit, PartialCappedCylinder, Pedestal, PlaceNameLayer, PolyArc, Polygon, PolygonEditor, Polyline, ProgressAnnotation, RenderableLayer, Route, RPFTiledImageLayer, SARAnnotation, ScalebarLayer, ScreenAnnotation, SectorSelector.RegionShape, SegmentPlaneEditor, ShadedElevationLayer, SkyColorLayer, SkyGradientLayer, SlideShowAnnotation, SphereAirspace, SphereAirspaceEditor, StarsLayer, StatusLayer, StatusLayer.StatusMGRSLayer, StatusLayer.StatusUTMLayer, SurfaceCircle, SurfaceConcaveShape, SurfaceEllipse, SurfaceImageLayer, SurfacePolygon, SurfacePolyline, SurfaceQuad, SurfaceSector, SurfaceShapeLayer, SurfaceSquare, TerrainProfileLayer, TerrainProfilePanel, THEMISColorLayer, THEMISLayer, TiledImageLayer, TrackAirspace, TrackLayer, UserFacingIcon, USGSDigitalOrtho, USGSTopographicMaps, USGSTopoHighRes, USGSTopoLowRes, USGSTopoMedRes, USGSUrbanAreaOrtho, UTMGraticuleLayer, ViewControlsLayer, WMSBasicElevationModel, WMSTiledImageLayer, WorldMapLayer, ZeroElevationModel
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 |
String |
getRestorableState()
Returns an XML document string describing the object’s state. |
void |
restoreState(String stateInXml)
Restores the object’s state to what is described in the specified XML document string. |
getRestorableState
String getRestorableState()
- Returns an XML document string describing the object’s state. This state can be restored later by calling
restoreState
and passing the XML document.
- Returns:
- an XML document string describing the object's state.
restoreState
void restoreState(String stateInXml)
- Restores the object’s state to what is described in the specified XML document string.
- Parameters:
stateInXml
- an XML document string describing an object's state.