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

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

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

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

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

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.xmlSystemViewExporteraddAttribute

Popular methods of SystemViewExporter

  • <init>
    Creates a system view exporter.
  • exportNodes
  • getXMLName
  • 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

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • 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
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • CodeWhisperer alternatives
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