Tabnine Logo
DocumentViewExporter.exportNode
Code IndexAdd Tabnine to your IDE (free)

How to use
exportNode
method
in
org.apache.jackrabbit.commons.xml.DocumentViewExporter

Best Java code snippets using org.apache.jackrabbit.commons.xml.DocumentViewExporter.exportNode (Showing top 2 results out of 315)

origin: info.magnolia/magnolia-core

  @Override
  protected void exportNode(String uri, String local, Node node) throws RepositoryException, SAXException {
    if ("jcr:system".equals(node.getName())) {
      // skip version history
      return;
    }
    super.exportNode(uri, local, node);
  }
});
origin: info.magnolia/magnolia-core

@Override
protected void exportNode(String uri, String local, Node node) throws RepositoryException, SAXException {
  if (node.getDepth() == 0) { //don't include root node
    final NodeIterator iterator = node.getNodes();
    while (iterator.hasNext()) {
      final Node child = iterator.nextNode();
      super.exportNode(StringUtils.EMPTY, serializeKey(uri, child.getName()), child); //omit jcr: prefix for all child nodes
    }
  } else {
    super.exportNode(uri, serializeKey(uri, local), node);
  }
}
org.apache.jackrabbit.commons.xmlDocumentViewExporterexportNode

Javadoc

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.

Popular methods of DocumentViewExporter

  • <init>
    Creates a document view exporter.
  • addAttribute
  • exportNodes
  • characters
  • endElement
  • exportProperties
  • startElement

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now