congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SystemViewExporter.getXMLName
Code IndexAdd Tabnine to your IDE (free)

How to use
getXMLName
method
in
org.apache.jackrabbit.commons.xml.SystemViewExporter

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

origin: info.magnolia.publishing/magnolia-publishing-core

  @Override
  protected String getXMLName(String uri, String local) throws RepositoryException {
    if (isFrozenNode) {
      if (FROZEN_PROPERTIES.contains(local)) {
        local = StringUtils.replace(local, "frozen", "");
        local = StringUtils.uncapitalize(local);
      } else if (FROZEN_NODE_NAME.equals(local)) {
        uri = "";
        local = nodeName;
      }
    }
    return super.getXMLName(uri, local);
  }
}
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.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

/**
 * 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

/**
 * Exports the given property as an <code>sv:property</code> element.
 */
protected void exportProperty(
    String uri, String local, int type, Value[] values)
    throws RepositoryException, SAXException {
  // start property element
  addAttribute(SV, "name", getXMLName(uri, local));
  addAttribute(SV, "type", PropertyType.nameFromValue(type));
  addAttribute(SV, "multiple", Boolean.TRUE.toString());
  startElement(SV, "property");
  // values
  for (int i = 0; i < values.length; i++) {
    exportValue(values[i]);
  }
  endElement(SV, "property");
}
origin: apache/jackrabbit

/**
 * Exports the given property as an <code>sv:property</code> element.
 */
protected void exportProperty(
    String uri, String local, int type, Value[] values)
    throws RepositoryException, SAXException {
  // start property element
  addAttribute(SV, "name", getXMLName(uri, local));
  addAttribute(SV, "type", PropertyType.nameFromValue(type));
  addAttribute(SV, "multiple", Boolean.TRUE.toString());
  startElement(SV, "property");
  // values
  for (int i = 0; i < values.length; i++) {
    exportValue(values[i]);
  }
  endElement(SV, "property");
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Exports the given property as an <code>sv:property</code> element.
 */
protected void exportProperty(
    String uri, String local, int type, Value[] values)
    throws RepositoryException, SAXException {
  // start property element
  addAttribute(SV, "name", getXMLName(uri, local));
  addAttribute(SV, "type", PropertyType.nameFromValue(type));
  addAttribute(SV, "multiple", Boolean.TRUE.toString());
  startElement(SV, "property");
  // values
  for (int i = 0; i < values.length; i++) {
    exportValue(values[i]);
  }
  endElement(SV, "property");
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Calls {@link #exportProperty(String, String, int, Value[])}.
 */
protected void exportProperty(String uri, String local, Value value)
    throws RepositoryException, SAXException {
  // start property element
  addAttribute(SV, "name", getXMLName(uri, local));
  addAttribute(SV, "type", PropertyType.nameFromValue(value.getType()));
  startElement(SV, "property");
  // value
  exportValue(value);
  endElement(SV, "property");
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Calls {@link #exportProperty(String, String, int, Value[])}.
 */
protected void exportProperty(String uri, String local, Value value)
    throws RepositoryException, SAXException {
  // start property element
  addAttribute(SV, "name", getXMLName(uri, local));
  addAttribute(SV, "type", PropertyType.nameFromValue(value.getType()));
  startElement(SV, "property");
  // value
  exportValue(value);
  endElement(SV, "property");
}
origin: apache/jackrabbit

/**
 * Calls {@link #exportProperty(String, String, int, Value[])}.
 */
protected void exportProperty(String uri, String local, Value value)
    throws RepositoryException, SAXException {
  // start property element
  addAttribute(SV, "name", getXMLName(uri, local));
  addAttribute(SV, "type", PropertyType.nameFromValue(value.getType()));
  startElement(SV, "property");
  // value
  exportValue(value);
  endElement(SV, "property");
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

addNamespace("xs", XS);
addNamespace("xsi", XSI);
addAttribute(XSI, "type", getXMLName(XS, "base64Binary"));
origin: apache/jackrabbit

addNamespace("xs", XS);
addNamespace("xsi", XSI);
addAttribute(XSI, "type", getXMLName(XS, "base64Binary"));
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

addNamespace("xs", XS);
addNamespace("xsi", XSI);
addAttribute(XSI, "type", getXMLName(XS, "base64Binary"));
org.apache.jackrabbit.commons.xmlSystemViewExportergetXMLName

Popular methods of SystemViewExporter

  • <init>
    Creates a system view exporter.
  • exportNodes
  • addAttribute
  • addNamespace
  • characters
  • endElement
  • exportProperties
  • exportValue
    Exports the given value as an sv:value element.
  • mustSendBinary
    Utility method for determining whether a non-binary value should still be exported in base64 encodin
  • startElement
  • export
  • exportNode
    Exports the given node as an sv:node element.
  • export,
  • exportNode

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • setScale (BigDecimal)
  • putExtra (Intent)
  • Menu (java.awt)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Reference (javax.naming)
  • JTable (javax.swing)
  • Best IntelliJ 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