protected void addSearchSetting(CmsXmlContentDefinition contentDefinition, String elementName, Boolean value)
    throws CmsXmlException {

        if (contentDefinition.getSchemaType(elementName) == null) {
            throw new CmsXmlException(
                Messages.get().container(Messages.ERR_XMLCONTENT_INVALID_ELEM_SEARCHSETTINGS_1, elementName));
        }
        // store the search exclusion as defined
        m_searchSettings.put(elementName, value);
    }
protected void addSearchSetting ( CmsXmlContentDefinition contentDefinition , String elementName , Boolean value ) throws CmsXmlException { if ( contentDefinition . getSchemaType ( elementName ) == null ) { throw new CmsXmlException ( Messages . get ( ) . container ( Messages . ERR_XMLCONTENT_INVALID_ELEM_SEARCHSETTINGS_1 , elementName ) ) ; } m_searchSettings . put ( elementName , value ) ; }
Adds a search setting for an element.<p>

@param contentDefinition the XML content definition this XML content handler belongs to
@param elementName the element name to map
@param value the search setting value to store

@throws CmsXmlException in case an unknown element name is used