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.BaseType
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Class<?>,PropertyTypeName.BaseType>BASE_PROPERTY_TYPES_BY_CLASSprotected PropertyTypeName.BaseTypebaseTypeprotected PropertyTypeName.BaseTypegenericBaseTypeprotected StringgenericClassNameprotected booleangenericType
-
Constructor Summary
Constructors Constructor Description 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()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
-
baseType
protected PropertyTypeName.BaseType baseType
-
genericType
protected boolean genericType
-
genericBaseType
protected PropertyTypeName.BaseType genericBaseType
-
genericClassName
protected String genericClassName
-
-
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()
-
-