Tabnine Logo
DocumentManager$Metadata.name
Code IndexAdd Tabnine to your IDE (free)

How to use
name
method
in
com.marklogic.client.document.DocumentManager$Metadata

Best Java code snippets using com.marklogic.client.document.DocumentManager$Metadata.name (Showing top 3 results out of 315)

origin: com.marklogic/client-api-java

private MultivaluedMap<String, String> makeDocumentParams(String uri,
    Set<Metadata> categories, String transactionId,
    RequestParameters extraParams, boolean withContent) {
  MultivaluedMap<String, String> docParams = new MultivaluedMapImpl();
  if (extraParams != null && extraParams.size() > 0) {
    for (Map.Entry<String, List<String>> entry : extraParams.entrySet()) {
      String extraKey = entry.getKey();
      if (!"range".equalsIgnoreCase(extraKey)) {
        addEncodedParam(docParams, extraKey, entry.getValue());
      }
    }
  }
  addEncodedParam(docParams, "uri", uri);
  if (categories == null || categories.size() == 0) {
    docParams.add("category", "content");
  } else {
    if (withContent)
      docParams.add("category", "content");
    if (categories.contains(Metadata.ALL)) {
      docParams.add("category", "metadata");
    } else {
      for (Metadata category : categories)
        docParams.add("category", category.name().toLowerCase());
    }
  }
  if (transactionId != null) {
    docParams.add("txid", transactionId);
  }
  return docParams;
}
origin: marklogic/java-client-api

private void addCategoryParams(Set<Metadata> categories, RequestParameters params,
                boolean withContent)
{
 if (withContent && categories == null || categories.size() == 0) {
  params.add("category", "content");
 } else {
  if (withContent) params.add("category", "content");
  if (categories.contains(Metadata.ALL)) {
   params.add("category", "metadata");
  } else {
   for (Metadata category : categories) {
    params.add("category", category.name().toLowerCase());
   }
  }
 }
}
origin: marklogic/java-client-api

 @Override
 public String toString() {
  switch(this) {
  case METADATAVALUES:
   return "METADATA-VALUES";
  default:
   return this.name();
  }
 }
}
com.marklogic.client.documentDocumentManager$Metadataname

Popular methods of DocumentManager$Metadata

  • toString

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JTable (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim 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