Class ForeignObject

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Field Detail

      • doc

        private org.w3c.dom.Document doc
      • namespace

        private java.lang.String namespace
    • Constructor Detail

      • ForeignObject

        public ForeignObject​(org.w3c.dom.Document d,
                             java.lang.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​(java.lang.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 Detail

      • setDocument

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

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

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