Tabnine Logo
DocumentMetadataHandle$ValueSerializer.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.marklogic.client.io.DocumentMetadataHandle$ValueSerializer
constructor

Best Java code snippets using com.marklogic.client.io.DocumentMetadataHandle$ValueSerializer.<init> (Showing top 2 results out of 315)

origin: com.marklogic/client-api-java

private void sendPropertiesImpl(final XMLStreamWriter serializer) throws XMLStreamException, TransformerFactoryConfigurationError, TransformerException {
  serializer.writeStartElement("prop", "properties", PROPERTY_API_NS);
  for (Map.Entry<QName, Object> property: getProperties().entrySet()) {
    QName  propertyName = property.getKey();
    Object value        = property.getValue();
    boolean hasNodeValue = value instanceof NodeList;
    String namespaceURI = propertyName.getNamespaceURI();
    String prefix       = null;
    String localPart    = propertyName.getLocalPart();
    if (namespaceURI != null && namespaceURI.length() > 0) {
      if (PROPERTY_API_NS.equals(namespaceURI))
        continue;
      prefix = propertyName.getPrefix();
      serializer.writeStartElement(prefix, localPart, namespaceURI);
    } else {
      serializer.writeStartElement(localPart);
    }
    if (!hasNodeValue) {
      if (valueSerializer == null)
        valueSerializer = new ValueSerializer(serializer);
      ValueConverter.convertFromJava(value, valueSerializer);
    } else {
      new DOMWriter(serializer).serializeNodeList((NodeList) value);
    }
    serializer.writeEndElement();
  }
  serializer.writeEndElement();
}
private void sendQualityImpl(XMLStreamWriter serializer) throws XMLStreamException {
origin: marklogic/java-client-api

private void sendPropertiesImpl(final XMLStreamWriter serializer) throws XMLStreamException, TransformerFactoryConfigurationError, TransformerException {
 if ( getProperties() == null || getProperties().size() == 0 ) return;
 serializer.writeStartElement("prop", "properties", PROPERTY_API_NS);
 for (Map.Entry<QName, Object> property: getProperties().entrySet()) {
  QName  propertyName = property.getKey();
  Object value        = property.getValue();
  boolean hasNodeValue = value instanceof NodeList;
  String namespaceURI = propertyName.getNamespaceURI();
  String prefix       = null;
  String localPart    = propertyName.getLocalPart();
  if (namespaceURI != null && namespaceURI.length() > 0) {
   if (PROPERTY_API_NS.equals(namespaceURI))
    continue;
   prefix = propertyName.getPrefix();
   serializer.writeStartElement(prefix, localPart, namespaceURI);
  } else {
   serializer.writeStartElement(localPart);
  }
  if (!hasNodeValue) {
   if (valueSerializer == null)
    valueSerializer = new ValueSerializer(serializer);
   ValueConverter.convertFromJava(value, valueSerializer);
  } else {
   new DOMWriter(serializer).serializeNodeList((NodeList) value);
  }
  serializer.writeEndElement();
 }
 serializer.writeEndElement();
}
private void sendQualityImpl(XMLStreamWriter serializer) throws XMLStreamException {
com.marklogic.client.ioDocumentMetadataHandle$ValueSerializer<init>

Popular methods of DocumentMetadataHandle$ValueSerializer

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getResourceAsStream (ClassLoader)
    • findViewById (Activity)
    • getApplicationContext (Context)
    • Component (java.awt)
      A component is an object having a graphical representation that can be displayed on the screen and t
    • FileInputStream (java.io)
      An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
    • SQLException (java.sql)
      An exception that indicates a failed JDBC operation. It provides the following information about pro
    • NumberFormat (java.text)
      The abstract base class for all number formats. This class provides the interface for formatting and
    • Timer (java.util)
      Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Top 12 Jupyter Notebook extensions
    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