|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLEncodeDecode
Interface for objects that can encode and decode their internal
configuration within the content of an Element
.
Once encoded into an Element such objects can be represented as simple XML and either transmitted and re-created in some other process, or stored permanently in a file.
For an abstract base class that implements lots of useful functions
that support this interface see
PrimitiveXMLEncodeDecode
and for one that also supports
awt primitives (Fonts and Colors) see
uk.ac.starlink.ast.gui.AbstractPlotControlsModel
.
Method Summary | |
---|---|
void |
decode(org.w3c.dom.Element rootElement)
Decode (ie, restore) the internal state of this object from an Element. |
void |
encode(org.w3c.dom.Element rootElement)
Encode the internal state of this object so that it is rooted in the given Element. |
java.lang.String |
getTagName()
Return a name for the Element that will be the parent of any contents that can be encoded and decoded (ie, name of rootElement); |
Method Detail |
---|
void encode(org.w3c.dom.Element rootElement)
rootElement
- the Element within which the object should
store its configuration.void decode(org.w3c.dom.Element rootElement)
rootElement
- the element to which a previous object this
this type has attached its configuration.java.lang.String getTagName()
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |