Codota Logo
CmsXmlContent.getIndexCount
Code IndexAdd Codota 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)

  • Common ways to obtain CmsXmlContent
private void myMethod () {
CmsXmlContent c =
  • Codota IconCmsObject cms;CmsFile file;CmsXmlContentFactory.unmarshal(cms, file)
  • Codota IconCmsObject cmsObject;CmsObject cms;CmsResource resource;CmsXmlContentFactory.unmarshal(cmsObject, cms.readFile(resource))
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now