Package org.apache.axiom.om.impl.util
Class OMSerializerUtil
- java.lang.Object
-
- org.apache.axiom.om.impl.util.OMSerializerUtil
-
public class OMSerializerUtil extends Object
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description OMSerializerUtil()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
generateSetPrefix(String prefix, String namespace, XMLStreamWriter writer, boolean attr)
Deprecated.Generate setPrefix/setDefaultNamespace if the prefix is not associatedstatic String
getNextNSPrefix()
Deprecated.static String
getNextNSPrefix(XMLStreamWriter writer)
Deprecated.This is an internal method that is no longer used.static boolean
isAssociated(String prefix, String namespace, XMLStreamWriter writer)
Deprecated.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.static void
serializeAttribute(org.apache.axiom.om.OMAttribute attr, XMLStreamWriter writer)
Deprecated.use serializeStartpart insteadstatic void
serializeAttributes(org.apache.axiom.om.OMElement element, XMLStreamWriter writer)
Deprecated.Consider using serializeStartpart insteadstatic void
serializeByPullStream(org.apache.axiom.om.OMElement element, XMLStreamWriter writer)
Deprecated.This is an internal method that is no longer used.static void
serializeByPullStream(org.apache.axiom.om.OMElement element, XMLStreamWriter writer, boolean cache)
Deprecated.This is an internal method that is no longer used.static void
serializeEndpart(XMLStreamWriter writer)
Deprecated.This is an internal method that is no longer used.static void
serializeNamespace(org.apache.axiom.om.OMNamespace namespace, XMLStreamWriter writer)
Deprecated.Use serializeStartpart insteadstatic void
serializeNamespaces(org.apache.axiom.om.OMElement element, XMLStreamWriter writer)
Deprecated.Use serializeStartpart insteadstatic void
serializeNormal(org.apache.axiom.om.OMElement element, XMLStreamWriter writer, boolean cache)
Deprecated.This is an internal method that is no longer used.static void
serializeStartpart(org.apache.axiom.om.OMElement element, String localName, XMLStreamWriter writer)
Deprecated.This is an internal method that is no longer used.static void
serializeStartpart(org.apache.axiom.om.OMElement element, XMLStreamWriter writer)
Deprecated.This is an internal method that is no longer used.
-
-
-
Method Detail
-
serializeEndpart
public static void serializeEndpart(XMLStreamWriter writer) throws XMLStreamException
Deprecated.This is an internal method that is no longer used.Method serializeEndpart.- Parameters:
writer
-- Throws:
XMLStreamException
-
serializeAttribute
public static void serializeAttribute(org.apache.axiom.om.OMAttribute attr, XMLStreamWriter writer) throws XMLStreamException
Deprecated.use serializeStartpart insteadMethod serializeAttribute.- Parameters:
attr
-writer
-- Throws:
XMLStreamException
-
serializeNamespace
public static void serializeNamespace(org.apache.axiom.om.OMNamespace namespace, XMLStreamWriter writer) throws XMLStreamException
Deprecated.Use serializeStartpart insteadMethod 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 byStAXDialect
, and this method always returnsfalse
.
-
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 insteadserializeNamespaces- Parameters:
element
-writer
-- Throws:
XMLStreamException
-
serializeAttributes
public static void serializeAttributes(org.apache.axiom.om.OMElement element, XMLStreamWriter writer) throws XMLStreamException
Deprecated.Consider using serializeStartpart insteadSerialize attributes- Parameters:
element
-writer
-- Throws:
XMLStreamException
-
serializeNormal
public static void serializeNormal(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
-
serializeByPullStream
public static void serializeByPullStream(org.apache.axiom.om.OMElement element, XMLStreamWriter writer) throws XMLStreamException
Deprecated.This is an internal method that is no longer used.- 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
-
isAssociated
public static boolean isAssociated(String prefix, String namespace, XMLStreamWriter writer) throws XMLStreamException
Deprecated.- Parameters:
prefix
-namespace
-writer
-- Returns:
- true if the prefix is associated with the namespace in the current context
- Throws:
XMLStreamException
-
-