Interface PropertyDefinition
-
- All Superinterfaces:
Attribute,AttributeDefinition,Comparable<PropertyDefinition>,Element,PropertyElement,Serializable
- All Known Implementing Classes:
PropertyDefinitionImpl
@TypeMetadata(name="PropertyDefinition", description="This type provides information for the definition of any properties", version="1.1.0") @Change(version="1.1.0",description="The type comply with {@link AttributeDefinition} which add \'defaultValue\'") @Change(version="1.0.0",description="First Version") public interface PropertyDefinition extends PropertyElement, Comparable<PropertyDefinition>, AttributeDefinition
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEstatic StringREAD_ONLY_PROPERTYstatic StringVERSION-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetDefaultValue()StringgetDescription()IntegergetMax()IntegergetMin()StringgetName()StringgetPropertyType()StringgetRegexp()booleanisMandatory()booleanisNotnull()booleanisReadonly()voidsetReadonly(boolean readonly)-
Methods inherited from interface org.gcube.informationsystem.base.reference.Attribute
getPropertyTypeName, setDefaultValue, setDescription, setMax, setMin, setName, setPropertyType, setRegexp
-
Methods inherited from interface org.gcube.informationsystem.base.reference.AttributeDefinition
setMandatory, setNotnull
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
VERSION
static final String VERSION
- See Also:
- Constant Field Values
-
READ_ONLY_PROPERTY
static final String READ_ONLY_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
@ISProperty(name="description", readonly=false, mandatory=true, nullable=false) String getDescription()
- Specified by:
getDescriptionin interfaceAttribute
-
isMandatory
@ISProperty(name="mandatory", readonly=false, mandatory=true, nullable=false, defaultValue="false") boolean isMandatory()
- Specified by:
isMandatoryin interfaceAttributeDefinition
-
isReadonly
@ISProperty(name="readonly", readonly=false, mandatory=true, nullable=false, defaultValue="false") boolean isReadonly()
-
setReadonly
void setReadonly(boolean readonly)
-
isNotnull
@ISProperty(name="notnull", readonly=false, mandatory=true, nullable=false, defaultValue="false") boolean isNotnull()
- Specified by:
isNotnullin interfaceAttributeDefinition
-
getRegexp
@ISProperty(name="regexp", readonly=false, mandatory=true, nullable=false) String getRegexp()
-
getPropertyType
@ISProperty(name="propertyType", readonly=false, mandatory=true, nullable=false) String getPropertyType()
- Specified by:
getPropertyTypein interfaceAttribute
-
getDefaultValue
@ISProperty(name="defaultValue", readonly=false, mandatory=false, nullable=true) Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceAttribute
-
-