|
JHotDraw 7rev733 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DOMFactory
DOMFactory.
Abstract Factory
DOMFactory is used by DOMInput and DOMOutput for
creating Java objects and DOM elements.
Abstract Factory: DOMFactory
Client: DOMInput, DOMOutput.
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.
Handler: DOMStorable.
| Method Summary | |
|---|---|
java.lang.Object |
create(java.lang.String name)
Creates an object from the specified element name. |
java.lang.String |
getName(java.lang.Object o)
Returns the element name for the specified object. |
java.lang.Object |
read(DOMInput in)
Reads the specified object from DOMInput. |
void |
write(DOMOutput out,
java.lang.Object object)
Writes the specified object to DOMOutput. |
| Method Detail |
|---|
java.lang.String getName(java.lang.Object o)
java.lang.Object create(java.lang.String name)
void write(DOMOutput out,
java.lang.Object object)
throws java.io.IOException
This method is only ever called from DOMOutput. You should never call this method directly.
object - The object to be written.
java.io.IOException
java.lang.Object read(DOMInput in)
throws java.io.IOException
DOMInput.
This method is only ever called from DOMInput. You should never call
this method directly.
If the object returned by this method is an instanceof DOMStorable
then DOMInput invokes its read method.
in - The DOMInput object which creates the object from an element
in a DOM.
java.io.IOException
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||