org.jhotdraw.samples.mini
Class DefaultDOMStorableSample.MyObject

java.lang.Object
  extended by org.jhotdraw.samples.mini.DefaultDOMStorableSample.MyObject
All Implemented Interfaces:
DOMStorable
Enclosing class:
DefaultDOMStorableSample

public static class DefaultDOMStorableSample.MyObject
extends java.lang.Object
implements DOMStorable


Field Summary
private  java.lang.String name
           
 
Constructor Summary
DefaultDOMStorableSample.MyObject()
          DOM Storable objects must have a non-argument constructor.
DefaultDOMStorableSample.MyObject(java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
           
 void read(DOMInput in)
           
 void setName(java.lang.String name)
           
 void write(DOMOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Constructor Detail

DefaultDOMStorableSample.MyObject

public DefaultDOMStorableSample.MyObject()
DOM Storable objects must have a non-argument constructor.


DefaultDOMStorableSample.MyObject

public DefaultDOMStorableSample.MyObject(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

write

public void write(DOMOutput out)
           throws java.io.IOException
Specified by:
write in interface DOMStorable
Throws:
java.io.IOException

read

public void read(DOMInput in)
          throws java.io.IOException
Specified by:
read in interface DOMStorable
Throws:
java.io.IOException