JHotDraw 7.5.1

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 DOMStorable

Interface for objects that can be made persistent using DOMOutput.writeObject and DOMInput.readObject.

By convention every object implementing the DOMStorable interface MUST provide a public parameterless constructor.


Design Patterns

Strategy
DOMFactory is used by DOMInput and DOMOutput for reading and writing objects. Client: DOMInput, DOMOutput.
Strategy: DOMFactory.

Chain of Responsibility
DOMFactory can delegate reading and writing to objects which implement the DOMStorable interface. Client: DOMFactory.
Strategy: DOMStorable.

Version:
$Id: DOMStorable.java 626 2010-01-20 08:56:21Z rawcoder $
Author:
Werner Randelshofer

Method Summary
 void read(DOMInput in)
           
 void write(DOMOutput out)
           
 

Method Detail

write

void write(DOMOutput out)
           throws java.io.IOException
Throws:
java.io.IOException

read

void read(DOMInput in)
          throws java.io.IOException
Throws:
java.io.IOException

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.