public class DocumentViewExporter extends Exporter
| Constructor and Description |
|---|
DocumentViewExporter(Session session,
org.xml.sax.ContentHandler handler,
boolean recurse,
boolean binary)
Creates a document view exporter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
exportNode(java.lang.String uri,
java.lang.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(java.lang.String uri,
java.lang.String local,
int type,
Value[] values)
Does nothing.
|
protected void |
exportProperty(java.lang.String uri,
java.lang.String local,
Value value)
Maps the given single-valued property to an XML attribute.
|
addAttribute, addNamespace, characters, endElement, export, exportNodes, exportProperties, getXMLName, startElementpublic DocumentViewExporter(Session session,
org.xml.sax.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(java.lang.String uri,
java.lang.String local,
Node node)
throws RepositoryException,
org.xml.sax.SAXException
xml:text node) or as an XML element with properties
mapped to XML attributes.exportNode in class Exporteruri - node namespacelocal - node namenode - nodeRepositoryException - if a repository error occursorg.xml.sax.SAXException - if a SAX error occursprotected void exportProperty(java.lang.String uri,
java.lang.String local,
Value value)
throws RepositoryException
exportProperty in class Exporteruri - property namespacelocal - property namevalue - property valueRepositoryException - if a repository error occursprotected void exportProperty(java.lang.String uri,
java.lang.String local,
int type,
Value[] values)
exportProperty in class Exporteruri - property namespacelocal - property nametype - property typevalues - property valueshttps://issues.apache.org/jira/browse/JCR-325