org.jhotdraw.xml
Interface DOMStorable
-
- All Known Subinterfaces:
- Drawing
- All Known Implementing Classes:
- AbstractAttributedCompositeFigure, AbstractAttributedDecoratedFigure, AbstractAttributedFigure, AbstractCompositeFigure, AbstractConnector, AbstractDrawing, AbstractLocator, ArrowTip, BezierFigure, BezierLabelLocator, BezierPointLocator, BorderRectangleFigure, ChopBezierConnector, ChopDiamondConnector, ChopEllipseConnector, ChopRectangleConnector, ChopRoundRectangleConnector, ChopTriangleConnector, CompositeLineDecoration, CurvedLiner, DefaultDOMStorableSample.MyObject, DefaultDrawing, DependencyFigure, DiamondFigure, ElbowLiner, EllipseFigure, GraphicalCompositeFigure, GroupFigure, ImageFigure, LabeledLineConnectionFigure, LabelFigure, LineConnectionFigure, LineFigure, ListFigure, LocatorConnector, NodeFigure, ODGAttributedFigure, ODGBezierFigure, ODGDrawing, ODGEllipseFigure, ODGGroupFigure, ODGPathFigure, ODGRectFigure, PerpendicularBar, QuadTreeCompositeFigure, QuadTreeDrawing, RectangleFigure, RelativeDecoratorLocator, RelativeLocator, RoundRectangleFigure, SeparatorLineFigure, SlantedLiner, StickyRectangleConnector, StraightLineFigure, SVGAttributedFigure, SVGBezierFigure, SVGEllipseFigure, SVGGroupFigure, SVGImageFigure, SVGPathFigure, SVGRectFigure, SVGTextAreaFigure, SVGTextFigure, TaskFigure, TextAreaFigure, TextFigure, TriangleFigure
public interface DOMStorableInterface for objects that can be made persistent usingDOMOutput.writeObjectandDOMInput.readObject.By convention every object implementing the DOMStorable interface MUST provide a public parameterless constructor.
Design PatternsStrategy
DOMFactoryis used byDOMInputandDOMOutputfor reading and writing objects. Client:DOMInput,DOMOutput.
Strategy:DOMFactory.
Chain of Responsibility
DOMFactorycan delegate reading and writing to objects which implement theDOMStorableinterface. Client:DOMFactory.
Strategy:DOMStorable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidread(DOMInput in)voidwrite(DOMOutput out)
-
DataMelt 3.0 © DataMelt by jWork.ORG