@Nonnull public static IPredicate <? super Element> filterElementWithNamespace () { return x -> x != null && StringHelper.hasText (x.getNamespaceURI ()); }
public ComparatorCellString (@Nullable final Locale aParseLocale, @Nullable final String sCommonPrefix, @Nullable final String sCommonSuffix) { super (aParseLocale); m_sCommonPrefix = StringHelper.hasText (sCommonPrefix) ? sCommonPrefix : null; m_sCommonSuffix = StringHelper.hasText (sCommonSuffix) ? sCommonSuffix : null; }
/** * @return <code>true</code> if a non-<code>null</code> and non-empty value is * present. */ default boolean hasValue () { return StringHelper.hasText (getValue ()); }
public AuditItem (@Nullable final String sUserID, @Nonnull final EAuditActionType eType, @Nonnull final ESuccess eSuccess, @Nonnull final String sAction) { this (PDTFactory.getCurrentLocalDateTime (), StringHelper.hasText (sUserID) ? sUserID : CUserID.USER_ID_GUEST, eType, eSuccess, sAction); }
/** * @return <code>true</code> if a default application ID is present, * <code>false</code> otherwise. * @since 8.0.3 */ public boolean hasDefaultApplicationID () { return StringHelper.hasText (getDefaultApplicationID ()); }
/** * @return <code>true</code> if an explicit target is defined, * <code>false</code> otherwise. */ default boolean hasTarget () { return StringHelper.hasText (getTarget ()); }
@Nonnull public IMPLTYPE prependText (@Nullable final String sText) { if (StringHelper.hasText (sText)) m_sText = sText + m_sText; return thisAsT (); }
/** * @return <code>true</code> if this endpoint has a minimum authentication * level, <code>false</code> otherwise. * @see #getMinimumAuthenticationLevel() */ default boolean hasMinimumAuthenticationLevel () { return StringHelper.hasText (getMinimumAuthenticationLevel ()); }
/** * @return <code>true</code> if a last modification user is present, * <code>false</code> if not. * @since 6.1.1 */ default boolean hasLastModificationUserID () { return StringHelper.hasText (getLastModificationUserID ()); } }
/** * @return <code>true</code> if a commercial register number is present, * <code>false</code> if not. * @see #getCommercialRegistrationNumber() */ default boolean hasCommercialRegistrationNumber () { return StringHelper.hasText (getCommercialRegistrationNumber ()); }
@Nonnull public MockHttpServletRequest setContextPath (@Nullable final String sContextPath) { if (StringHelper.hasText (sContextPath) && !StringHelper.startsWith (sContextPath, '/')) if (LOGGER.isErrorEnabled ()) LOGGER.error ("Illegal context path specified: '" + sContextPath + "'"); m_sContextPath = sContextPath; return this; }
default boolean hasDescription () { return StringHelper.hasText (getDescription ()); } }
@Nonnull @Nonempty public String getStackTraceNotNull () { return StringHelper.hasText (m_sStackTrace) ? m_sStackTrace : "No stack trace available\n"; }
/** * Ignorable whitespace characters. * * @param aWhitespaces * The whitespace character sequence */ public void onContentElementWhitespace (@Nullable final CharSequence aWhitespaces) { if (StringHelper.hasText (aWhitespaces)) _append (aWhitespaces.toString ()); }
@Nonnull public static Cookie createContextCookie (@Nonnull final String sName, @Nullable final String sValue, final boolean bExpireWhenBrowserIsClosed) { // Always use the context path from the global scope! final String sContextPath = ServletContextPathHolder.getContextPath (); return createCookie (sName, sValue, StringHelper.hasText (sContextPath) ? sContextPath : "/", bExpireWhenBrowserIsClosed); }
@Nonnull public BootstrapSystemMessage setSystemMessage (@Nullable final String sContent) { removeAllChildren (); if (StringHelper.hasText (sContent)) getDefaultFormatter ().accept (sContent, this); return this; }
@Nonnull public BootstrapPagination addItemActive (@Nullable final String sContent) { if (StringHelper.hasText (sContent)) addItemActive (HCSpan.create (sContent)); return this; }
@Nonnull public JSAssocArray getJSCode () { final JSAssocArray aSub = new JSAssocArray (); if (!m_sPasteDefaultName.equals (DEFAULT_PASTE_DEFAULT_NAME)) aSub.add ("defaultName", m_sPasteDefaultName); if (StringHelper.hasText (m_sPasteTargetElementID)) aSub.add ("targetElement", JSHtml.documentGetElementById (m_sPasteTargetElementID)); return aSub; } }
public void elementAttr (@Nullable final String sAttrNamespacePrefix, @Nonnull final String sAttrName, @Nonnull final String sAttrValue) { _append (' '); if (StringHelper.hasText (sAttrNamespacePrefix)) { // We have an attribute namespace prefix _append (sAttrNamespacePrefix)._append (CXML.XML_PREFIX_NAMESPACE_SEP); } _appendMasked (EXMLCharMode.ATTRIBUTE_NAME, sAttrName)._append ('=')._appendAttrValue (sAttrValue); }
@Nonnull public IJSExpression getAsJS () { final JSAssocArray ret = new JSAssocArray (); if (m_eTag != null) ret.add ("tag", m_eTag.getElementName ()); final String sClassName = m_aClassNames.getAllClassesAsString (); if (StringHelper.hasText (sClassName)) ret.add ("className", sClassName); return ret; } }