public class DocumentViewExporter extends Exporter
Constructor and Description |
---|
DocumentViewExporter(javax.jcr.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,
javax.jcr.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,
javax.jcr.Value[] values)
Does nothing.
|
protected void |
exportProperty(String uri,
String local,
javax.jcr.Value value)
Maps the given single-valued property to an XML attribute.
|
addAttribute, addNamespace, characters, endElement, export, exportNodes, exportProperties, getXMLName, startElement
public DocumentViewExporter(javax.jcr.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, javax.jcr.Node node) throws javax.jcr.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
- nodejavax.jcr.RepositoryException
- if a repository error occursSAXException
- if a SAX error occursprotected void exportProperty(String uri, String local, javax.jcr.Value value) throws javax.jcr.RepositoryException
exportProperty
in class Exporter
uri
- property namespacelocal
- property namevalue
- property valuejavax.jcr.RepositoryException
- if a repository error occursprotected void exportProperty(String uri, String local, int type, javax.jcr.Value[] values)
exportProperty
in class Exporter
uri
- property namespacelocal
- property nametype
- property typevalues
- property valuesCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.