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

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

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

origin: org.opencms/opencms-core

/**
 * @see org.opencms.xml.A_CmsXmlDocument#initDocument(org.dom4j.Document, java.lang.String, org.opencms.xml.CmsXmlContentDefinition)
 */
@Override
protected void initDocument(Document document, String encoding, CmsXmlContentDefinition definition) {
  m_document = document;
  m_contentDefinition = definition;
  m_encoding = CmsEncoder.lookupEncoding(encoding, encoding);
  m_elementLocales = new HashMap<String, Set<Locale>>();
  m_elementNames = new HashMap<Locale, Set<String>>();
  m_locales = new HashSet<Locale>();
  clearBookmarks();
  // initialize the bookmarks
  for (Iterator<Element> i = CmsXmlGenericWrapper.elementIterator(m_document.getRootElement()); i.hasNext();) {
    Element node = i.next();
    try {
      Locale locale = CmsLocaleManager.getLocale(
        node.attribute(CmsXmlContentDefinition.XSD_ATTRIBUTE_VALUE_LANGUAGE).getValue());
      addLocale(locale);
      processSchemaNode(node, null, locale, definition);
    } catch (NullPointerException e) {
      LOG.error(Messages.get().getBundle().key(Messages.LOG_XMLCONTENT_INIT_BOOKMARKS_0), e);
    }
  }
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.xml.A_CmsXmlDocument#initDocument(org.dom4j.Document, java.lang.String, org.opencms.xml.CmsXmlContentDefinition)
 */
@Override
protected void initDocument(Document document, String encoding, CmsXmlContentDefinition definition) {
  m_document = document;
  m_contentDefinition = definition;
  m_encoding = CmsEncoder.lookupEncoding(encoding, encoding);
  m_elementLocales = new HashMap<String, Set<Locale>>();
  m_elementNames = new HashMap<Locale, Set<String>>();
  m_locales = new HashSet<Locale>();
  clearBookmarks();
  // initialize the bookmarks
  for (Iterator<Element> i = CmsXmlGenericWrapper.elementIterator(m_document.getRootElement()); i.hasNext();) {
    Element node = i.next();
    try {
      Locale locale = CmsLocaleManager.getLocale(node.attribute(
        CmsXmlContentDefinition.XSD_ATTRIBUTE_VALUE_LANGUAGE).getValue());
      addLocale(locale);
      processSchemaNode(node, null, locale, definition);
    } catch (NullPointerException e) {
      LOG.error(Messages.get().getBundle().key(Messages.LOG_XMLCONTENT_INIT_BOOKMARKS_0), e);
    }
  }
}
org.opencms.xml.contentCmsXmlContentclearBookmarks

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

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Github Copilot alternatives
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