Class OMSerializerUtil


  • public class OMSerializerUtil
    extends Object
    Deprecated.
    • Constructor Detail

      • OMSerializerUtil

        public OMSerializerUtil()
        Deprecated.
    • Method Detail

      • serializeAttribute

        public static void serializeAttribute​(org.apache.axiom.om.OMAttribute attr,
                                              XMLStreamWriter writer)
                                       throws XMLStreamException
        Deprecated.
        use serializeStartpart instead
        Method serializeAttribute.
        Parameters:
        attr -
        writer -
        Throws:
        XMLStreamException
      • serializeNamespace

        public static void serializeNamespace​(org.apache.axiom.om.OMNamespace namespace,
                                              XMLStreamWriter writer)
                                       throws XMLStreamException
        Deprecated.
        Use serializeStartpart instead
        Method serializeNamespace.
        Parameters:
        namespace -
        writer -
        Throws:
        XMLStreamException
      • isSetPrefixBeforeStartElement

        public static boolean isSetPrefixBeforeStartElement​(XMLStreamWriter writer)
        Deprecated.
        This method was used to work around a StAX conformance issue in early versions of the XL XP-J parser. This is now handled by StAXDialect, and this method always returns false.
      • serializeStartpart

        public static void serializeStartpart​(org.apache.axiom.om.OMElement element,
                                              XMLStreamWriter writer)
                                       throws XMLStreamException
        Deprecated.
        This is an internal method that is no longer used.
        Method serializeStartpart. Serialize the start tag of an element.
        Parameters:
        element -
        writer -
        Throws:
        XMLStreamException
      • serializeStartpart

        public static void serializeStartpart​(org.apache.axiom.om.OMElement element,
                                              String localName,
                                              XMLStreamWriter writer)
                                       throws XMLStreamException
        Deprecated.
        This is an internal method that is no longer used.
        Method serializeStartpart. Serialize the start tag of an element.
        Parameters:
        element -
        localName - (in some cases, the caller wants to force a different localName)
        writer -
        Throws:
        XMLStreamException
      • serializeNamespaces

        public static void serializeNamespaces​(org.apache.axiom.om.OMElement element,
                                               XMLStreamWriter writer)
                                        throws XMLStreamException
        Deprecated.
        Use serializeStartpart instead
        serializeNamespaces
        Parameters:
        element -
        writer -
        Throws:
        XMLStreamException
      • serializeAttributes

        public static void serializeAttributes​(org.apache.axiom.om.OMElement element,
                                               XMLStreamWriter writer)
                                        throws XMLStreamException
        Deprecated.
        Consider using serializeStartpart instead
        Serialize attributes
        Parameters:
        element -
        writer -
        Throws:
        XMLStreamException
      • serializeByPullStream

        public static void serializeByPullStream​(org.apache.axiom.om.OMElement element,
                                                 XMLStreamWriter writer,
                                                 boolean cache)
                                          throws XMLStreamException
        Deprecated.
        This is an internal method that is no longer used.
        Throws:
        XMLStreamException
      • getNextNSPrefix

        public static String getNextNSPrefix()
        Deprecated.
        Get the next prefix name
        Returns:
        next prefix name
      • getNextNSPrefix

        public static String getNextNSPrefix​(XMLStreamWriter writer)
        Deprecated.
        This is an internal method that is no longer used.
      • generateSetPrefix

        public static String generateSetPrefix​(String prefix,
                                               String namespace,
                                               XMLStreamWriter writer,
                                               boolean attr)
                                        throws XMLStreamException
        Deprecated.
        Generate setPrefix/setDefaultNamespace if the prefix is not associated
        Parameters:
        prefix -
        namespace -
        writer -
        attr -
        Returns:
        prefix name if a setPrefix/setDefaultNamespace is performed
        Throws:
        XMLStreamException