public interface 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.
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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.IOExceptionjava.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