src/main/java/org/jboss/util/propertyeditor/PropertyEditors.java
/**
    * Whether a string is interpreted as the null value
    * 
    * @param value the value
    * @param trim whether to trim the string
    * @param empty whether to include the empty string as null
    * @return true when the string has the value null
    */
Whether a string is interpreted as the null value

@param value the value
@param trim whether to trim the string
@param empty whether to include the empty string as null
@return true when the string has the value null
Whether a string is interpreted as the null value @param value the value @param trim whether to trim the string @param empty whether to include the empty string as null @return true when the string has the value null
public static final boolean isNull(final String value, final boolean trim, final boolean empty)
   {
      if (disableIsNull)
         return false;
      if (value == null)
         return true;
      String trimmed = trim ? value.trim() : value;
      if (empty && trimmed.length() == 0)
         return true;
      return NULL.equalsIgnoreCase(trimmed);
   }
public static final boolean isNull ( final String value , final boolean trim , final boolean empty ) { if ( disableIsNull ) return false ; if ( value == null ) return true ; String trimmed = trim ? value . trim ( ) : value ; if ( empty && trimmed . length ( ) == 0 ) return true ; return NULL . equalsIgnoreCase ( trimmed ) ; }
Whether a string is interpreted as the null value
Whether a string is interpreted as the null value
// For backwards compatibility // No value? // Trim the text when requested // Is the empty string null? // Just check it.