Class WrappedTextNodeOMDataSource

All Implemented Interfaces:
OMDataSource, OMDataSourceExt, QNameAwareOMDataSource
Direct Known Subclasses:
WrappedTextNodeOMDataSourceFromBlob, WrappedTextNodeOMDataSourceFromDataSource, WrappedTextNodeOMDataSourceFromReader

public abstract class WrappedTextNodeOMDataSource extends AbstractPullOMDataSource implements QNameAwareOMDataSource
OMDataSource implementation that represents a text node wrapped inside an element.
  • Field Details

    • wrapperElementName

      protected final QName wrapperElementName
  • Constructor Details

    • WrappedTextNodeOMDataSource

      public WrappedTextNodeOMDataSource(QName wrapperElementName)
  • Method Details

    • getLocalName

      public String getLocalName()
      Description copied from interface: QNameAwareOMDataSource
      Get the local name of the element represented by this data source.
      Specified by:
      getLocalName in interface QNameAwareOMDataSource
      Returns:
      the local name of the element or null if the local name is not known
    • getNamespaceURI

      public String getNamespaceURI()
      Description copied from interface: QNameAwareOMDataSource
      Get the namespace URI of the element represented by this data source.
      Specified by:
      getNamespaceURI in interface QNameAwareOMDataSource
      Returns:
      the namespace URI of the element, the empty string if the element has no namespace or null if the namespace URI is not known
    • getPrefix

      public String getPrefix()
      Description copied from interface: QNameAwareOMDataSource
      Get the namespace prefix of the element represented by this data source.
      Specified by:
      getPrefix in interface QNameAwareOMDataSource
      Returns:
      the prefix of the element, the empty string if the element has no prefix or null if the prefix is not known; the implementation is expected to return an empty string if QNameAwareOMDataSource.getNamespaceURI() returns an empty string (because an element without namespace must not have a prefix)