## Uses of Interface
org.apache.axiom.om.OMText

- Packages that use OMText
  Package | Description
  --- | ---
  org.apache.axiom.om | Contains core interfaces of the Axiom API.
  org.apache.axiom.om.impl |
  org.apache.axiom.om.impl.builder |
  org.apache.axiom.om.util |

- - ### Uses of OMText in org.apache.axiom.om

    Methods in org.apache.axiom.om that return OMText
    Modifier and Type | Method and Description
    --- | ---
    `OMText` | OMFactory.`createOMText(Object dataHandler, boolean optimize)`
    `OMText` | OMFactory.`createOMText(OMContainer parent, char[] charArary, int type)` Deprecated.
    `OMText` | OMFactory.`createOMText(OMContainer parent, OMText source)` Create OMText node that is a copy of the source text node
    `OMText` | OMFactory.`createOMText(OMContainer parent, QName text)` Deprecated. This method is only meaningful if it is used to create a text node that is the single child of an `OMElement`. However, for that purpose `OMElement.setText(QName)` should be used.
    `OMText` | OMFactory.`createOMText(OMContainer parent, QName text, int type)` Deprecated. Creating a text node containing a QName and having a type other than `OMNode.TEXT_NODE` is not meaningful.
    `OMText` | OMFactory.`createOMText(OMContainer parent, String text)` Creates a new `OMText` node with the given value and appends it to the given parent element.
    `OMText` | OMFactory.`createOMText(OMContainer parent, String text, int type)`
    `OMText` | OMFactory.`createOMText(OMContainer parent, String s, String mimeType, boolean optimize)`
    `OMText` | OMFactory.`createOMText(String s)`
    `OMText` | OMFactory.`createOMText(String contentID, DataHandlerProvider dataHandlerProvider, boolean optimize)` Create a binary `OMText` node supporting deferred loading of the content.
    `OMText` | OMFactory.`createOMText(String s, int type)`
    `OMText` | OMFactory.`createOMText(String s, String mimeType, boolean optimize)`

    Methods in org.apache.axiom.om with parameters of type OMText
    Modifier and Type | Method and Description
    --- | ---
    `OMText` | OMFactory.`createOMText(OMContainer parent, OMText source)` Create OMText node that is a copy of the source text node

  - ### Uses of OMText in org.apache.axiom.om.impl

    Methods in org.apache.axiom.om.impl with parameters of type OMText
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | MTOMXMLStreamWriter.`isOptimizedThreshold(OMText node)` Deprecated. Serialization code should use `XMLStreamWriterUtils.writeDataHandler(XMLStreamWriter, DataHandler, String, boolean)` or `XMLStreamWriterUtils.writeDataHandler(XMLStreamWriter, DataHandlerProvider, String, boolean)` to submit any binary content and let this writer decide whether the content should be written as base64 encoded character data or using `xop:Include`. If this is not possible, then `MTOMXMLStreamWriter.prepareDataHandler(DataHandler)` should be used. All the aforementioned methods take into account the settings defined in `OMOutputFormat` to determine whether the binary data should be optimized or not. Therefore, there is not need for this method anymore.
    `void` | MTOMXMLStreamWriter.`writeOptimized(OMText node)` Deprecated. Serialization code should use `XMLStreamWriterUtils.writeDataHandler(XMLStreamWriter, DataHandler, String, boolean)` or `XMLStreamWriterUtils.writeDataHandler(XMLStreamWriter, DataHandlerProvider, String, boolean)` to submit any binary content and let this writer decide whether the content should be written as base64 encoded character data or using `xop:Include`. If this is not possible, then `MTOMXMLStreamWriter.prepareDataHandler(DataHandler)` should be used.

  - ### Uses of OMText in org.apache.axiom.om.impl.builder

    Methods in org.apache.axiom.om.impl.builder that return OMText
    Modifier and Type | Method and Description
    --- | ---
    `OMText` | OMFactoryEx.`createOMText(OMContainer parent, Object dataHandler, boolean optimize, boolean fromBuilder)`
    `OMText` | OMFactoryEx.`createOMText(OMContainer parent, String text, int type, boolean fromBuilder)`

  - ### Uses of OMText in org.apache.axiom.om.util

    Methods in org.apache.axiom.om.util with parameters of type OMText
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | DigestGenerator.`getDigest(OMText text, String digestAlgorithm)` This method is an overloaded method for the digest generation for OMText

Copyright © The Apache Software Foundation. All Rights Reserved.