com.supermap.data.mapGrid

Class StringUtils

  • java.lang.Object
    • com.supermap.data.mapGrid.StringUtils


  • public class StringUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      StringUtils() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getUniqueName(java.lang.String newName, java.util.List<java.lang.String> existNames)
      Get available names
      static java.lang.String getUniqueNameIgnoreCase(java.lang.String newName, java.util.List<java.lang.String> existNames)
      Gets the available name, ignoring case
      static boolean isDecimal(java.lang.String orginal)
      whether it is string
      static boolean isNegativeInteger(java.lang.String orginal)
      Check whether it is a negative integer
      static boolean isNullOrEmpty(java.lang.String str)
      Determines whether the string is empty or zero-length
      static boolean isNumber(java.lang.String orginal)
      whether it is a number
      static boolean isPositiveInteger(java.lang.String orginal)
      Check whether it is a positive integer
      static boolean wildcardMatch(java.lang.String original, java.lang.String wildcardPattern)
      Matches the wildcard
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • Method Detail

      • isNullOrEmpty

        public static boolean isNullOrEmpty(java.lang.String str)
        Determines whether the string is empty or zero-length
        Parameters:
        str - string
        Returns:
        is empty?
      • isNumber

        public static boolean isNumber(java.lang.String orginal)
        whether it is a number
      • isDecimal

        public static boolean isDecimal(java.lang.String orginal)
        whether it is string
      • isPositiveInteger

        public static boolean isPositiveInteger(java.lang.String orginal)
        Check whether it is a positive integer
      • isNegativeInteger

        public static boolean isNegativeInteger(java.lang.String orginal)
        Check whether it is a negative integer
      • getUniqueName

        public static java.lang.String getUniqueName(java.lang.String newName,
                                                     java.util.List<java.lang.String> existNames)
        Get available names
        Parameters:
        newName - new name
        existNames - An existing name
        Returns:
        The name of the available
      • getUniqueNameIgnoreCase

        public static java.lang.String getUniqueNameIgnoreCase(java.lang.String newName,
                                                               java.util.List<java.lang.String> existNames)
        Gets the available name, ignoring case
        Parameters:
        newName - new name
        existNames - An existing name
        Returns:
        The name of the available
      • wildcardMatch

        public static boolean wildcardMatch(java.lang.String original,
                                            java.lang.String wildcardPattern)
        Matches the wildcard
        Parameters:
        original - Specifies the string to be matched
        wildcardPattern - Matching pattern
        Returns: