Class PropertyTypeName
- java.lang.Object
-
- org.gcube.informationsystem.types.PropertyTypeName
-
public class PropertyTypeName extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyTypeName.BaseTypestatic classPropertyTypeName.BaseTypeGroup
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Class<?>,PropertyTypeName.BaseType>BASE_PROPERTY_TYPES_BY_CLASSprotected PropertyTypeName.BaseTypebaseTypeprotected Class<?>clzprotected PropertyTypeName.BaseTypegenericBaseTypeprotected StringgenericClassNameprotected booleangenericTypeprotected static Map<Class<?>,String>REGEX_BY_CLASS_MAPPED_AS_STRINGprotected static Map<String,String>REGEX_BY_CLASS_MAPPED_AS_STRING_BY_CLASS_NAMEstatic StringURI_REGEXstatic StringURL_REGEXstatic StringUUID_REGEX
-
Constructor Summary
Constructors Constructor Description PropertyTypeName(Class<?> clz)PropertyTypeName(Method method)PropertyTypeName(String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)PropertyTypeName.BaseTypegetBaseType()static PropertyTypeName.BaseTypegetBaseTypeByClass(Class<?> clazz)Return the correspondent type by checking the "assignability" of the class received as parameter.PropertyTypeName.BaseTypegetGenericBaseType()StringgetGenericClassName()static StringgetRegexByClass(Class<?> clz)static StringgetRegexByClassname(String className)StringgetType()inthashCode()booleanisGenericType()voidsetType(String type)StringtoString()
-
-
-
Field Detail
-
BASE_PROPERTY_TYPES_BY_CLASS
protected static final Map<Class<?>,PropertyTypeName.BaseType> BASE_PROPERTY_TYPES_BY_CLASS
-
REGEX_BY_CLASS_MAPPED_AS_STRING
protected static final Map<Class<?>,String> REGEX_BY_CLASS_MAPPED_AS_STRING
-
REGEX_BY_CLASS_MAPPED_AS_STRING_BY_CLASS_NAME
protected static final Map<String,String> REGEX_BY_CLASS_MAPPED_AS_STRING_BY_CLASS_NAME
-
URI_REGEX
public static final String URI_REGEX
-
URL_REGEX
public static final String URL_REGEX
-
UUID_REGEX
public static final String UUID_REGEX
- See Also:
- Constant Field Values
-
baseType
protected PropertyTypeName.BaseType baseType
-
genericType
protected boolean genericType
-
genericBaseType
protected PropertyTypeName.BaseType genericBaseType
-
genericClassName
protected String genericClassName
-
clz
protected Class<?> clz
-
-
Method Detail
-
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()
-
getBaseType
public PropertyTypeName.BaseType getBaseType()
-
isGenericType
public boolean isGenericType()
-
getGenericBaseType
public PropertyTypeName.BaseType getGenericBaseType()
-
getGenericClassName
public String getGenericClassName()
-
-