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

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

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

origin: org.opencms/opencms-solr

int indexCount = m_content.getIndexCount(elementName, getElementLocale());
if (index < (indexCount - 1)) {
origin: org.opencms/opencms-core

int count = linkExcludeDefinitions.getIndexCount(XPATH_LINK, Locale.ENGLISH);
origin: org.opencms/opencms-solr

/**
 * Reads the link exclude definition file and extracts all excluded links stored in it.<p>
 * 
 * @param cms the current CmsObject
 * @return list of Strings, containing link exclude paths
 */
private List readLinkExcludes(CmsObject cms) {
  List linkExcludes = new ArrayList();
  try {
    // get the link exclude file
    CmsResource res = cms.readResource(LINK_EXCLUDE_DEFINIFITON_FILE);
    CmsFile file = cms.readFile(res);
    CmsXmlContent linkExcludeDefinitions = CmsXmlContentFactory.unmarshal(cms, file);
    // get number of excludes
    int count = linkExcludeDefinitions.getIndexCount(XPATH_LINK, Locale.ENGLISH);
    for (int i = 1; i <= count; i++) {
      String exclude = linkExcludeDefinitions.getStringValue(cms, XPATH_LINK + "[" + i + "]", Locale.ENGLISH);
      linkExcludes.add(exclude);
    }
  } catch (CmsException e) {
    LOG.error(e);
  }
  return linkExcludes;
}
origin: org.opencms/opencms-core

int indexCount = m_content.getIndexCount(elementName, getElementLocale());
if (index < (indexCount - 1)) {
origin: org.opencms.modules/org.opencms.frontend.templateone

int count = configuration.getIndexCount("Headlink", locale);
for (int i = 1; i <= count; i++) {
  String prefix = "Headlink[" + i + "]";
origin: org.opencms/opencms-core

int decorationDefCount = configuration.getIndexCount(XPATH_DECORATION, m_configurationLocale);
int excludeValuesCount = configuration.getIndexCount(XPATH_EXCLUDE, m_configurationLocale);
origin: org.opencms/opencms-solr

int decorationDefCount = configuration.getIndexCount(XPATH_DECORATION, m_configurationLocale);
int excludeValuesCount = configuration.getIndexCount(XPATH_EXCLUDE, m_configurationLocale);
origin: org.opencms/org.opencms.workplace.tools.content

int size = configuration.getIndexCount(xpath, m_locale);
for (int i = 1; i <= size; i++) {
  String length = configuration.getValue(xpath + "[" + i + "]/" + XPATH_LENGTH, m_locale).getStringValue(
    m_cms);
  int values = configuration.getIndexCount(xpath + "[" + i + "]/" + XPATH_VALUE, m_locale);
org.opencms.xml.contentCmsXmlContentgetIndexCount

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.
  • hasValue
  • addLocale
  • copyLocale
    Copies the content of the given source locale to the given destination locale in this XML document.
  • correctXmlStructure
  • copyLocale,
  • correctXmlStructure,
  • getEncoding,
  • getLocaleNode,
  • initDocument,
  • removeLocale,
  • setAutoCorrectionEnabled,
  • toString,
  • visitAllValuesWith

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Permission (java.security)
    Legacy security code; do not use.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BoxLayout (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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