public abstract class WrappedTextNodeOMDataSource extends AbstractPullOMDataSource implements QNameAwareOMDataSource
OMDataSource
implementation that represents a text node wrapped inside an element.Modifier and Type | Field and Description |
---|---|
protected QName |
wrapperElementName |
LOSSY_PREFIX
Constructor and Description |
---|
WrappedTextNodeOMDataSource(QName wrapperElementName) |
Modifier and Type | Method and Description |
---|---|
String |
getLocalName()
Get the local name of the element represented by this data source.
|
String |
getNamespaceURI()
Get the namespace URI of the element represented by this data source.
|
String |
getPrefix()
Get the namespace prefix of the element represented by this data source.
|
isDestructiveWrite, serialize
close, copy, getObject, getProperty, getXMLBytes, getXMLInputStream, hasProperty, serialize, serialize, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReader, serialize, serialize, serialize
isDestructiveRead
protected final QName wrapperElementName
public WrappedTextNodeOMDataSource(QName wrapperElementName)
public String getLocalName()
QNameAwareOMDataSource
getLocalName
in interface QNameAwareOMDataSource
null
if the local name is not knownpublic String getNamespaceURI()
QNameAwareOMDataSource
getNamespaceURI
in interface QNameAwareOMDataSource
null
if the namespace URI is not knownpublic String getPrefix()
QNameAwareOMDataSource
getPrefix
in interface QNameAwareOMDataSource
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)Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.