Codota Logo
DocumentMetadataHandle$ValueSerializer.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

    • Running tasks concurrently on multiple threads
    • requestLocationUpdates (LocationManager)
    • orElseThrow (Optional)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • FileNotFoundException (java.io)
      Thrown when a file specified by a program cannot be found.
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • DecimalFormat (java.text)
      DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
    • Locale (java.util)
      A Locale object represents a specific geographical, political, or cultural region. An operation that
    • ExecutorService (java.util.concurrent)
      An Executor that provides methods to manage termination and methods that can produce a Future for tr
    • Base64 (org.apache.commons.codec.binary)
      Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now