Documentation of 'org.jhotdraw.xml.DOMFactory' Java class
DOMFactory
org.jhotdraw.xml

Interface DOMFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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.
    • Method Detail

      • getName

        java.lang.String getName(java.lang.Object o)
        Returns the element name for the specified object.
      • create

        java.lang.Object create(java.lang.String name)
        Creates an object from the specified element name.
      • write

        void write(DOMOutput out,
                   java.lang.Object object)
            throws java.io.IOException
        Writes the specified object to DOMOutput.

        This method is only ever called from DOMOutput. You should never call this method directly.

        Parameters:
        object - The object to be written.
        Throws:
        java.io.IOException
      • read

        java.lang.Object read(DOMInput in)
                       throws java.io.IOException
        Reads the specified object from 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.

        Parameters:
        in - The DOMInput object which creates the object from an element in a DOM.
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.