Class EntityFormat


  • public class EntityFormat
    extends Object
    Entity format manager class
    Author:
    chenxin
    • Constructor Detail

      • EntityFormat

        public EntityFormat()
    • Method Detail

      • isMailAddress

        public static final boolean isMailAddress​(String str)
        check if the specified string is an email address or not
        Parameters:
        str -
        Returns:
        boolean
      • isUrlAddress

        public static final boolean isUrlAddress​(String str,
                                                 ADictionary dic)
        check if the specified string is an URL address or not
        Parameters:
        str -
        dic - optional dictionary object
        Returns:
        boolean
      • isMobileNumber

        public static final boolean isMobileNumber​(String str)
        check if the specified string is a mobile number
        Parameters:
        str -
        Returns:
        boolean
      • isIpAddress

        public static final boolean isIpAddress​(String str)
      • isDate

        public static final String isDate​(String str,
                                          char delimiter)
        check if the specified string is an valid Latin Date string like "2017/02/22", "2017-02-22" or "2017.02.22"
        Parameters:
        str -
        Returns:
        boolean
      • isTime

        public static final boolean isTime​(String str)
        check if the specified string is a valid time string like '12:45', '12:45:12'
        Parameters:
        str -
        Returns:
        boolean