Package com.alfresco.content.models
Class Property
-
- All Implemented Interfaces:
@JsonClass(generateAdapter = true) public final class Property
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate Stringtitleprivate Stringdescriptionprivate StringdefaultValueprivate StringdataTypeprivate BooleanisMultiValuedprivate BooleanisMandatoryprivate BooleanisMandatoryEnforcedprivate BooleanisProtectedprivate List<Constraint>constraints
-
Method Summary
Modifier and Type Method Description final StringgetId()final UnitsetId(@Json(name = "id") String id)final StringgetTitle()the human-readable title final UnitsetTitle(@Json(name = "title") String title)the human-readable title final StringgetDescription()the human-readable description final UnitsetDescription(@Json(name = "description") String description)the human-readable description final StringgetDefaultValue()the default value final UnitsetDefaultValue(@Json(name = "defaultValue") String defaultValue)the default value final StringgetDataType()the name of the property type (i.g. final UnitsetDataType(@Json(name = "dataType") String dataType)the name of the property type (i.g. final BooleanisMultiValued()define if the property is multi-valued final UnitsetMultiValued(@Json(name = "isMultiValued") Boolean isMultiValued)define if the property is multi-valued final BooleanisMandatory()define if the property is mandatory final UnitsetMandatory(@Json(name = "isMandatory") Boolean isMandatory)define if the property is mandatory final BooleanisMandatoryEnforced()define if the presence of mandatory properties is enforced final UnitsetMandatoryEnforced(@Json(name = "isMandatoryEnforced") Boolean isMandatoryEnforced)define if the presence of mandatory properties is enforced final BooleanisProtected()define if the property is system maintained final UnitsetProtected(@Json(name = "isProtected") Boolean isProtected)define if the property is system maintained final List<Constraint>getConstraints()list of constraints defined for the property final UnitsetConstraints(@Json(name = "constraints") List<Constraint> constraints)list of constraints defined for the property -
-
Method Detail
-
getDescription
final String getDescription()
the human-readable description
-
setDescription
final Unit setDescription(@Json(name = "description") String description)
the human-readable description
-
getDefaultValue
final String getDefaultValue()
the default value
-
setDefaultValue
final Unit setDefaultValue(@Json(name = "defaultValue") String defaultValue)
the default value
-
getDataType
final String getDataType()
the name of the property type (i.g. d:text)
-
setDataType
final Unit setDataType(@Json(name = "dataType") String dataType)
the name of the property type (i.g. d:text)
-
isMultiValued
final Boolean isMultiValued()
define if the property is multi-valued
-
setMultiValued
final Unit setMultiValued(@Json(name = "isMultiValued") Boolean isMultiValued)
define if the property is multi-valued
-
isMandatory
final Boolean isMandatory()
define if the property is mandatory
-
setMandatory
final Unit setMandatory(@Json(name = "isMandatory") Boolean isMandatory)
define if the property is mandatory
-
isMandatoryEnforced
final Boolean isMandatoryEnforced()
define if the presence of mandatory properties is enforced
-
setMandatoryEnforced
final Unit setMandatoryEnforced(@Json(name = "isMandatoryEnforced") Boolean isMandatoryEnforced)
define if the presence of mandatory properties is enforced
-
isProtected
final Boolean isProtected()
define if the property is system maintained
-
setProtected
final Unit setProtected(@Json(name = "isProtected") Boolean isProtected)
define if the property is system maintained
-
getConstraints
final List<Constraint> getConstraints()
list of constraints defined for the property
-
setConstraints
final Unit setConstraints(@Json(name = "constraints") List<Constraint> constraints)
list of constraints defined for the property
-
-
-
-