Class ForeignObject

All Implemented Interfaces:
Serializable, Cloneable

public class ForeignObject extends Area
Foreign object inline area. This inline area represents an instream-foreign object. This holds an xml document and the associated namespace.
See Also:
  • Constructor Details

    • ForeignObject

      public ForeignObject(Document d, String ns)
      Create a new foreign object with the given dom and namespace.
      Parameters:
      d - the xml document
      ns - the namespace of the document
    • ForeignObject

      public ForeignObject(String ns)
      Create a new empty foreign object for which the DOM Document will be set later.
      Parameters:
      ns - the namespace of the document
  • Method Details

    • setDocument

      public void setDocument(Document document)
      Sets the DOM document for this foreign object.
      Parameters:
      document - the DOM document
    • getDocument

      public Document getDocument()
      Get the document for this foreign object.
      Returns:
      the xml document
    • getNameSpace

      public String getNameSpace()
      Get the namespace of this foreign object.
      Returns:
      the namespace of this document