/** * Replaces null or empty Strings with a String with one space character <code>" "</code>.<p> * * @param value the string to validate * @return the validate string or a String with one space character if the validated string is null or empty */ public String validateEmpty(String value) { if (CmsStringUtil.isNotEmpty(value)) { return value; } return " "; }
/** * Returns if the editor is usable as a widget editor for rich text editing.<p> * * @return true if the editor is usable as a widget editor for rich text editing, otherwise false */ public boolean isWidgetEditor() { return CmsStringUtil.isNotEmpty(m_widgetEditor); }
/** * * @see org.opencms.util.I_CmsHtmlNodeVisitor#setConfiguration(java.lang.String) */ public void setConfiguration(String configuration) { if (CmsStringUtil.isNotEmpty(configuration)) { m_configuration = configuration; } }
/** * Replaces null or empty Strings with a String with one space character <code>" "</code>.<p> * * @param value the string to validate * @return the validate string or a String with one space character if the validated string is null or empty */ public String validateEmpty(String value) { if (CmsStringUtil.isNotEmpty(value)) { return value; } return " "; }
/** * @see org.opencms.widgets.A_CmsGalleryWidget#showPreview(java.lang.String) */ @Override public boolean showPreview(String value) { return CmsStringUtil.isNotEmpty(value) && value.startsWith("/"); } }
/** * @see org.opencms.widgets.A_CmsGalleryWidget#showPreview(java.lang.String) */ @Override public boolean showPreview(String value) { return CmsStringUtil.isNotEmpty(value) && value.startsWith("/"); } }
/** * @see org.opencms.widgets.A_CmsGalleryWidget#showPreview(java.lang.String) */ @Override public boolean showPreview(String value) { return CmsStringUtil.isNotEmpty(value) && value.startsWith("/"); } }
/** * Returns true if the resource name certainly denotes a folder, that is ends with a "/".<p> * * @param resource the resource to check * @return true if the resource name certainly denotes a folder, that is ends with a "/" */ public static boolean isFolder(String resource) { return CmsStringUtil.isNotEmpty(resource) && (resource.charAt(resource.length() - 1) == '/'); }
/** * @see org.opencms.file.types.A_CmsResourceType#addConfigurationParameter(java.lang.String, java.lang.String) */ @Override public void addConfigurationParameter(String paramName, String paramValue) { super.addConfigurationParameter(paramName, paramValue); if (CmsStringUtil.isNotEmpty(paramName) && CmsStringUtil.isNotEmpty(paramValue)) { if (CONFIGURATION_INDEX_PAGE_TYPE.equalsIgnoreCase(paramName)) { m_indexPageTypes = paramValue.trim(); } } }
/** * Returns if the dialog is currently running in pre editor action mode, * depending on the presence of the original request parameters.<p> * @param dialog the dialog instance currently used * @return true if the dialog is currently running in pre editor action mode, otherwise false */ public static boolean isPreEditorMode(CmsDialog dialog) { return CmsStringUtil.isNotEmpty(dialog.getParamOriginalParams()); }
/** * Returns true if the widget editor should use a defined CSS style sheet.<p> * * @return if the widget editor should use a defined CSS style sheet */ public boolean useCss() { return CmsStringUtil.isNotEmpty(getCssPath()); }
/** * Returns <code>true</code> in case the scoped variable has been set for this Tag.<p> * * @return <code>true</code> in case the scoped variable has been set for this Tag */ protected boolean isScopeVarSet() { return CmsStringUtil.isNotEmpty(getVar()); }
/** * @see org.opencms.workplace.CmsWorkplace#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest) */ protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) { if (CmsStringUtil.isNotEmpty(request.getParameter(PARAM_RESOURCE))) { super.initWorkplaceRequestValues(settings, request); } }
/** * Returns if the optional bottom text on the thumbnail overview is shown.<p> * * @return true if the optional bottom text on the thumbnail overview is shown, otherwise false */ public boolean showThumbTextBottom() { return CmsStringUtil.isNotEmpty(getThumbTextBottom()); }
/** * Returns if the dialog is currently running in pre editor action mode, * depending on the presence of the original request parameters.<p> * @param dialog the dialog instance currently used * @return true if the dialog is currently running in pre editor action mode, otherwise false */ public static boolean isPreEditorMode(CmsDialog dialog) { return CmsStringUtil.isNotEmpty(dialog.getParamOriginalParams()); }
/** * Returns true if the styles selector should be available.<p> * * @return if the styles selector should be available */ public boolean showStylesXml() { return CmsStringUtil.isNotEmpty(getStylesXmlPath()); }
/** * Returns <code>true</code> in case the scoped variable has been set for this Tag.<p> * * @return <code>true</code> in case the scoped variable has been set for this Tag */ protected boolean isScopeVarSet() { return CmsStringUtil.isNotEmpty(getVar()); }
/** * Returns true if the styles format selector should be available.<p> * * @return if the styles format selector should be available */ public boolean showStylesFormat() { return CmsStringUtil.isNotEmpty(getStylesFormatPath()); }
/** * Creates a new image scaler based on the given parameter String.<p> * * @param parameters the scale parameters to use */ public CmsImageScaler(String parameters) { init(); if (CmsStringUtil.isNotEmpty(parameters)) { parseParameters(parameters); } }
/** * @see org.opencms.xml.types.I_CmsXmlContentValue#setStringValue(org.opencms.file.CmsObject, java.lang.String) */ public void setStringValue(CmsObject cms, String value) throws CmsIllegalArgumentException { m_element.clearContent(); if (CmsStringUtil.isNotEmpty(value)) { m_element.addCDATA(value); } m_stringValue = value; } }