public class DocumentViewExporter extends Exporter
Constructor and Description |
---|
DocumentViewExporter(Session session,
ContentHandler handler,
boolean recurse,
boolean binary)
Creates a document view exporter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
exportNode(String uri,
String local,
Node node)
Exports the given node either as XML characters (if it's an
xml:text node) or as an XML element with properties
mapped to XML attributes. |
protected void |
exportProperty(String uri,
String local,
int type,
Value[] values)
Does nothing.
|
protected void |
exportProperty(String uri,
String local,
Value value)
Maps the given single-valued property to an XML attribute.
|
addAttribute, addNamespace, characters, endElement, export, exportNodes, exportProperties, getXMLName, startElement
public DocumentViewExporter(Session session, ContentHandler handler, boolean recurse, boolean binary)
session
- current sessionhandler
- SAX event handler for the exportrecurse
- whether to recursively export the whole subtreebinary
- whether to export binary valuesprotected void exportNode(String uri, String local, Node node) throws RepositoryException, SAXException
xml:text
node) or as an XML element with properties
mapped to XML attributes.exportNode
in class Exporter
uri
- node namespacelocal
- node namenode
- nodeRepositoryException
- if a repository error occursSAXException
- if a SAX error occursprotected void exportProperty(String uri, String local, Value value) throws RepositoryException
exportProperty
in class Exporter
uri
- property namespacelocal
- property namevalue
- property valueRepositoryException
- if a repository error occursprotected void exportProperty(String uri, String local, int type, Value[] values)
exportProperty
in class Exporter
uri
- property namespacelocal
- property nametype
- property typevalues
- property valuesCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.