Tabnine Logo
DocumentMetadataHandle$ValueSerializer
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.marklogic.client.io.DocumentMetadataHandle$ValueSerializer (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

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now