Class PropertyDefinitionImpl
- java.lang.Object
-
- org.gcube.informationsystem.types.impl.properties.PropertyDefinitionImpl
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyDefinition>,Attribute,AttributeDefinition,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.Attribute
DEFAULT_VALUE_PROPERTY, DESCRIPTION_PROPERTY, MAX_PROPERTY, MIN_PROPERTY, NAME_PROPERTY, PROPERTY_TYPE_PROPERTY, REGEX_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.AttributeDefinition
MANDATORY_PROPERTY, NOT_NULL_PROPERTY
-
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
NAME, READ_ONLY_PROPERTY, VERSION
-
-
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)ObjectgetDefaultValue()StringgetDescription()IntegergetMax()IntegergetMin()StringgetName()StringgetPropertyType()PropertyTypeNamegetPropertyTypeName()StringgetRegexp()StringgetTypeName()inthashCode()booleanisMandatory()booleanisNotnull()booleanisReadonly()voidsetDefaultValue(Object defaultValue)voidsetDescription(String description)voidsetMandatory(boolean mandatory)voidsetMax(Integer max)voidsetMin(Integer min)voidsetName(String name)voidsetNotnull(boolean notnull)voidsetPropertyType(String type)voidsetReadonly(boolean readonly)voidsetRegexp(String regexp)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 interfaceAttribute- Specified by:
getNamein interfacePropertyDefinition
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceAttribute- Specified by:
getDescriptionin interfacePropertyDefinition
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceAttribute
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfaceAttributeDefinition- Specified by:
isMandatoryin interfacePropertyDefinition
-
setMandatory
public void setMandatory(boolean mandatory)
- Specified by:
setMandatoryin interfaceAttributeDefinition
-
isReadonly
public boolean isReadonly()
- Specified by:
isReadonlyin interfacePropertyDefinition
-
setReadonly
public void setReadonly(boolean readonly)
- Specified by:
setReadonlyin interfacePropertyDefinition
-
isNotnull
public boolean isNotnull()
- Specified by:
isNotnullin interfaceAttributeDefinition- Specified by:
isNotnullin interfacePropertyDefinition
-
setNotnull
public void setNotnull(boolean notnull)
- Specified by:
setNotnullin interfaceAttributeDefinition
-
getMax
public Integer getMax()
- Specified by:
getMaxin interfaceAttribute- Specified by:
getMaxin interfacePropertyDefinition
-
getMin
public Integer getMin()
- Specified by:
getMinin interfaceAttribute- Specified by:
getMinin interfacePropertyDefinition
-
getRegexp
public String getRegexp()
- Specified by:
getRegexpin interfaceAttribute- Specified by:
getRegexpin interfacePropertyDefinition
-
getPropertyType
public String getPropertyType()
- Specified by:
getPropertyTypein interfaceAttribute- Specified by:
getPropertyTypein interfacePropertyDefinition
-
setPropertyType
public void setPropertyType(String type)
- Specified by:
setPropertyTypein interfaceAttribute
-
getPropertyTypeName
public PropertyTypeName getPropertyTypeName()
- Specified by:
getPropertyTypeNamein interfaceAttribute
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceAttribute- Specified by:
getDefaultValuein interfacePropertyDefinition
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
- Specified by:
setDefaultValuein interfaceAttribute
-
compareTo
public int compareTo(PropertyDefinition other)
- Specified by:
compareToin interfaceComparable<PropertyDefinition>
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein interfaceElement
-
-