congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CmsXmlContent.getBookmarks
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.opencms/opencms-core

/**
 * Visits all values of this XML content with the given value visitor.<p>
 *
 * Please note that the order in which the values are visited may NOT be the
 * order they appear in the XML document. It is ensured that the the parent
 * of a nested value is visited before the element it contains.<p>
 *
 * @param visitor the value visitor implementation to visit the values with
 */
public void visitAllValuesWith(I_CmsXmlContentValueVisitor visitor) {
  List<String> bookmarks = new ArrayList<String>(getBookmarks());
  Collections.sort(bookmarks);
  for (int i = 0; i < bookmarks.size(); i++) {
    String key = bookmarks.get(i);
    I_CmsXmlContentValue value = getBookmark(key);
    visitor.visit(value);
  }
}
origin: org.opencms/opencms-solr

/**
 * Visits all values of this XML content with the given value visitor.<p>
 * 
 * Please note that the order in which the values are visited may NOT be the
 * order they appear in the XML document. It is ensured that the the parent 
 * of a nested value is visited before the element it contains.<p>
 * 
 * @param visitor the value visitor implementation to visit the values with
 */
public void visitAllValuesWith(I_CmsXmlContentValueVisitor visitor) {
  List<String> bookmarks = new ArrayList<String>(getBookmarks());
  Collections.sort(bookmarks);
  for (int i = 0; i < bookmarks.size(); i++) {
    String key = bookmarks.get(i);
    I_CmsXmlContentValue value = getBookmark(key);
    visitor.visit(value);
  }
}
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;
}
org.opencms.xml.contentCmsXmlContentgetBookmarks

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

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BoxLayout (javax.swing)
  • From CI to AI: The AI layer in your organization
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