Class ElementWriter

    • Method Detail

      • getElementWriter

        public MessageWriter getElementWriter​(String nm)
        See Also:
        org.apache.cxf.aegis.xml.MessageWriter#getWriter(java.lang.String)
      • getNamespace

        public String getNamespace()
      • close

        public void close()
        Description copied from interface: MessageWriter
        Tells the MessageWriter that writing operations are completed so it can write the end element.
      • getPrefixForNamespace

        public String getPrefixForNamespace​(String ns)
      • getPrefixForNamespace

        public String getPrefixForNamespace​(String ns,
                                            String hint)
        Description copied from interface: MessageWriter
        Get a prefix for a namespace. After calling this, the prefix returned is registered with the namespace.

        This method will make an attempt to use the hint prefix if possible. If the namespace is already registered or the hint is already registered with a different namespace then the behavior will be the same as the non-hint version.

        Parameters:
        ns - the namespace to retrieve the prefix for
        hint - the hint for the prefix.
        Returns:
        the prefix associated with the namespace