Class PropertyDefinitionImpl
- java.lang.Object
-
- org.gcube.informationsystem.types.impl.properties.PropertyDefinitionImpl
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyDefinition>,Element,PropertyElement,PropertyDefinition
public final class PropertyDefinitionImpl extends Object implements PropertyDefinition
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringURI_REGEXstatic StringURL_REGEXstatic StringUUID_REGEX-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.types.reference.properties.PropertyDefinition
DESCRIPTION_PROPERTY, MANDATORY_PROPERTY, MAX_PROPERTY, MIN_PROPERTY, NAME, NAME_PROPERTY, NOT_NULL_PROPERTY, PROPERTY_TYPE_PROPERTY, READ_ONLY_PROPERTY, REGEX_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyDefinitionImpl()PropertyDefinitionImpl(ISProperty propertyAnnotation, Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcompareIntegers(Integer thisInt, Integer otherInt)intcompareTo(PropertyDefinition other)booleanequals(Object obj)StringgetDescription()IntegergetMax()IntegergetMin()StringgetName()StringgetPropertyType()PropertyTypeNamegetPropertyTypeName()StringgetRegexp()StringgetTypeName()inthashCode()booleanisMandatory()booleanisNotnull()booleanisReadonly()voidsetPropertyType(String type)StringtoString()
-
-
-
Field Detail
-
UUID_REGEX
public static final String UUID_REGEX
- See Also:
- Constant Field Values
-
URI_REGEX
public static final String URI_REGEX
-
URL_REGEX
public static final String URL_REGEX
-
-
Constructor Detail
-
PropertyDefinitionImpl
protected PropertyDefinitionImpl()
-
PropertyDefinitionImpl
public PropertyDefinitionImpl(ISProperty propertyAnnotation, Method method)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacePropertyDefinition
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfacePropertyDefinition
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfacePropertyDefinition
-
isReadonly
public boolean isReadonly()
- Specified by:
isReadonlyin interfacePropertyDefinition
-
isNotnull
public boolean isNotnull()
- Specified by:
isNotnullin interfacePropertyDefinition
-
getMax
public Integer getMax()
- Specified by:
getMaxin interfacePropertyDefinition
-
getMin
public Integer getMin()
- Specified by:
getMinin interfacePropertyDefinition
-
getRegexp
public String getRegexp()
- Specified by:
getRegexpin interfacePropertyDefinition
-
getPropertyType
public String getPropertyType()
- Specified by:
getPropertyTypein interfacePropertyDefinition
-
setPropertyType
public void setPropertyType(String type)
-
getPropertyTypeName
public PropertyTypeName getPropertyTypeName()
-
compareTo
public int compareTo(PropertyDefinition other)
- Specified by:
compareToin interfaceComparable<PropertyDefinition>
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein interfaceElement
-
-