public abstract class AbstractPushOMDataSource extends AbstractOMDataSource
OMDataSourceExtimplementations that can easily serialize the content to an
XMLStreamWriterbut that are unable to produce the content as an
OMSourcedElement will handle
OMDataSource implementations extending this class
differently when it comes to expansion: instead of using
expand the element, it will use
OMDataSource.serialize(XMLStreamWriter) (with a special
XMLStreamWriter that builds the descendants of the
OMSourcedElement). This means
that such an
OMSourcedElement will be expanded instantly, and that deferred building of
the descendants is not applicable.
|Constructor and Description|
|Modifier and Type||Method and Description|
Get parser for element data.
Returns true if reading the backing object is destructive.
close, copy, getObject, getProperty, getXMLBytes, getXMLInputStream, hasProperty, serialize, serialize, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final boolean isDestructiveRead()
public final javax.xml.stream.XMLStreamReader getReader() throws javax.xml.stream.XMLStreamException
OMSourcedElement implementations are expected to call
on the returned reader as soon as the element is completely built.
Copyright © The Apache Software Foundation. All Rights Reserved.