Tabnine Logo
org.apache.jackrabbit.commons.xml
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.jackrabbit.commons.xml

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

origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Escapes and outputs the given characters.
 */
public void ignorableWhitespace(char[] ch, int start, int length)
    throws SAXException {
  characters(ch, start, length);
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Escapes and outputs the given characters.
 */
public void characters(char[] ch, int start, int length)
    throws SAXException {
  closeStartTagIfOpen();
  write(ch, start, length, false);
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Starts the XML serialization by outputting the <?xml?> header.
 */
public void startDocument() throws SAXException {
  processingInstruction("xml", declaration);
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Exports the given node as an <code>sv:node</code> element.
 */
protected void exportNode(String uri, String local, Node node)
    throws RepositoryException, SAXException {
  addAttribute(SV, "name", getXMLName(uri, local));
  startElement(SV, "node");
  exportProperties(node);
  exportNodes(node);
  endElement(SV, "node");
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

public void startDocument() throws SAXException {
  // Cleanup
  this.uriToPrefixMap.clear();
  this.prefixToUriMap.clear();
  clearMappings();
  super.startDocument();
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

public void endDocument() throws SAXException {
  // Cleanup
  this.uriToPrefixMap.clear();
  this.prefixToUriMap.clear();
  clearMappings();
  super.endDocument();
}
origin: info.magnolia.publishing/magnolia-publishing-core

@Override
protected void exportNodes(Node node) throws RepositoryException, SAXException {
  if (recurse) {
    super.exportNodes(node);
  }
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Creates a system view exporter.
 *
 * @param session current session
 * @param handler SAX event handler for the export
 * @param recurse whether to recursively export the whole subtree
 * @param binary whether to export binary values
 */
public SystemViewExporter(
    Session session, ContentHandler handler,
    boolean recurse, boolean binary) {
  super(session, handler, recurse, binary);
  addNamespace("sv", SV);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Exports the given node as an <code>sv:node</code> element.
 */
protected void exportNode(String uri, String local, Node node)
    throws RepositoryException, SAXException {
  addAttribute(SV, "name", getXMLName(uri, local));
  startElement(SV, "node");
  exportProperties(node);
  exportNodes(node);
  endElement(SV, "node");
}
origin: apache/jackrabbit

/**
 * Escapes and outputs the given characters.
 */
public void characters(char[] ch, int start, int length)
    throws SAXException {
  closeStartTagIfOpen();
  write(ch, start, length, false);
}
origin: apache/jackrabbit

public void startDocument() throws SAXException {
  // Cleanup
  this.uriToPrefixMap.clear();
  this.prefixToUriMap.clear();
  clearMappings();
  super.startDocument();
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

public void endDocument() throws SAXException {
  // Cleanup
  this.uriToPrefixMap.clear();
  this.prefixToUriMap.clear();
  clearMappings();
  super.endDocument();
}
origin: apache/jackrabbit

/**
 * Escapes and outputs the given characters.
 */
public void ignorableWhitespace(char[] ch, int start, int length)
    throws SAXException {
  characters(ch, start, length);
}
origin: apache/jackrabbit

/**
 * Starts the XML serialization by outputting the &lt;?xml?&gt; header.
 */
public void startDocument() throws SAXException {
  processingInstruction("xml", declaration);
}
origin: apache/jackrabbit

/**
 * Exports the given node as an <code>sv:node</code> element.
 */
protected void exportNode(String uri, String local, Node node)
    throws RepositoryException, SAXException {
  addAttribute(SV, "name", getXMLName(uri, local));
  startElement(SV, "node");
  exportProperties(node);
  exportNodes(node);
  endElement(SV, "node");
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Escapes and outputs the given characters.
 */
public void characters(char[] ch, int start, int length)
    throws SAXException {
  closeStartTagIfOpen();
  write(ch, start, length, false);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

public void startDocument() throws SAXException {
  // Cleanup
  this.uriToPrefixMap.clear();
  this.prefixToUriMap.clear();
  clearMappings();
  super.startDocument();
}
origin: apache/jackrabbit

public void endDocument() throws SAXException {
  // Cleanup
  this.uriToPrefixMap.clear();
  this.prefixToUriMap.clear();
  clearMappings();
  super.endDocument();
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Escapes and outputs the given characters.
 */
public void ignorableWhitespace(char[] ch, int start, int length)
    throws SAXException {
  characters(ch, start, length);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Starts the XML serialization by outputting the &lt;?xml?&gt; header.
 */
public void startDocument() throws SAXException {
  processingInstruction("xml", declaration);
}
org.apache.jackrabbit.commons.xml

Most used classes

  • Exporter
    Abstract base class for document and system view exporters. This class takes care of all the details
  • SystemViewExporter
    System view exporter.
  • ToXmlContentHandler
    Simple XML serializer. This content handler serializes the received SAX events as XML to a given Wri
  • DocumentViewExporter
    Document view exporter.
  • ParsingContentHandler
    Utility class that decorates a ContentHandler instance with simple XML parsing capability.
  • DefaultContentHandler,
  • ProxyContentHandler
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