Class PropertyTypeName


  • public class PropertyTypeName
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • PropertyTypeName

        public PropertyTypeName​(String type)
      • PropertyTypeName

        public PropertyTypeName​(Class<?> clz)
      • PropertyTypeName

        public PropertyTypeName​(Method method)
    • Method Detail

      • getRegexByClass

        public static String getRegexByClass​(Class<?> clz)
      • getRegexByClassname

        public static String getRegexByClassname​(String className)
      • getBaseTypeByClass

        public static PropertyTypeName.BaseType getBaseTypeByClass​(Class<?> clazz)
        Return the correspondent type by checking the "assignability" of the class received as parameter.
        Parameters:
        clazz - Class to check
        Returns:
        BasePropertyType instance if found, otherwise null
      • setType

        public void setType​(String type)
      • getType

        public String getType()
      • isGenericType

        public boolean isGenericType()
      • getGenericClassName

        public String getGenericClassName()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object