org.apache.jackrabbit.commons.xml
Class SystemViewExporter

java.lang.Object
  extended by org.apache.jackrabbit.commons.xml.Exporter
      extended by org.apache.jackrabbit.commons.xml.SystemViewExporter

public class SystemViewExporter
extends Exporter

System view exporter.

Since:
Jackrabbit JCR Commons 1.5

Field Summary
 
Fields inherited from class org.apache.jackrabbit.commons.xml.Exporter
helper
 
Constructor Summary
SystemViewExporter(Session session, ContentHandler handler, boolean recurse, boolean binary)
          Creates a system view exporter.
 
Method Summary
protected  void exportNode(String uri, String local, Node node)
          Exports the given node as an sv:node element.
protected  void exportProperty(String uri, String local, int type, Value[] values)
          Exports the given property as an sv:property element.
protected  void exportProperty(String uri, String local, Value value)
          Calls exportProperty(String, String, int, Value[]).
 
Methods inherited from class org.apache.jackrabbit.commons.xml.Exporter
addAttribute, addNamespace, characters, endElement, export, exportNodes, exportProperties, getXMLName, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemViewExporter

public SystemViewExporter(Session session,
                          ContentHandler handler,
                          boolean recurse,
                          boolean binary)
Creates a system view exporter.

Parameters:
session - current session
handler - SAX event handler for the export
recurse - whether to recursively export the whole subtree
binary - whether to export binary values
Method Detail

exportNode

protected void exportNode(String uri,
                          String local,
                          Node node)
                   throws RepositoryException,
                          SAXException
Exports the given node as an sv:node element.

Specified by:
exportNode in class Exporter
Parameters:
uri - node namespace
local - node name
node - node
Throws:
RepositoryException - if a repository error occurs
SAXException - if a SAX error occurs

exportProperty

protected void exportProperty(String uri,
                              String local,
                              Value value)
                       throws RepositoryException,
                              SAXException
Calls exportProperty(String, String, int, Value[]).

Specified by:
exportProperty in class Exporter
Parameters:
uri - property namespace
local - property name
value - property value
Throws:
RepositoryException - if a repository error occurs
SAXException - if a SAX error occurs

exportProperty

protected void exportProperty(String uri,
                              String local,
                              int type,
                              Value[] values)
                       throws RepositoryException,
                              SAXException
Exports the given property as an sv:property element.

Specified by:
exportProperty in class Exporter
Parameters:
uri - property namespace
local - property name
type - property type
values - property values
Throws:
RepositoryException - if a repository error occurs
SAXException - if a SAX error occurs


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.