Tabnine Logo
CmsXmlContent.getBookmarkName
Code IndexAdd Tabnine to your IDE (free)

How to use
getBookmarkName
method
in
org.opencms.xml.content.CmsXmlContent

Best Java code snippets using org.opencms.xml.content.CmsXmlContent.getBookmarkName (Showing top 3 results out of 315)

origin: org.opencms/opencms-core

/**
 * Returns the list of sub-value for the given xpath in the selected locale.<p>
 *
 * @param path the xpath to look up the sub-value for
 * @param locale the locale to use
 *
 * @return the list of sub-value for the given xpath in the selected locale
 */
@Override
public List<I_CmsXmlContentValue> getSubValues(String path, Locale locale) {
  List<I_CmsXmlContentValue> result = new ArrayList<I_CmsXmlContentValue>();
  String bookmark = getBookmarkName(CmsXmlUtils.createXpath(path, 1), locale);
  int depth = CmsResource.getPathLevel(bookmark) + 1;
  Iterator<String> i = getBookmarks().iterator();
  while (i.hasNext()) {
    String bm = i.next();
    if (bm.startsWith(bookmark) && (CmsResource.getPathLevel(bm) == depth)) {
      result.add(getBookmark(bm));
    }
  }
  if (result.size() > 0) {
    Collections.sort(result, COMPARE_INDEX);
  }
  return result;
}
origin: org.opencms/opencms-solr

return getBookmark(getBookmarkName(newValue.getPath(), locale));
origin: org.opencms/opencms-core

return getBookmark(getBookmarkName(newValue.getPath(), locale));
org.opencms.xml.contentCmsXmlContentgetBookmarkName

Popular methods of CmsXmlContent

  • getValue
  • getStringValue
  • getValues
  • hasLocale
  • getFile
  • getLocales
  • marshal
  • addValue
    Adds a new XML schema type with the default value to the given parent node.
  • getIndexCount
  • hasValue
  • addLocale
  • copyLocale
    Copies the content of the given source locale to the given destination locale in this XML document.
  • addLocale,
  • copyLocale,
  • correctXmlStructure,
  • getEncoding,
  • getLocaleNode,
  • initDocument,
  • removeLocale,
  • setAutoCorrectionEnabled,
  • toString,
  • visitAllValuesWith

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 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