public class Property extends ConstraintAsset implements IProperty
Constructor and Description |
---|
Property() |
Property(String name,
PropertyType type,
IDataModel dataModel) |
Property(String name,
PropertyType type,
IDataModel dataModel,
Boolean required) |
Property(String name,
PropertyType type,
IDataModel dataModel,
Boolean isPrimaryKey,
Boolean required) |
Property(String name,
String description,
PropertyType type) |
Property(String name,
String description,
PropertyType type,
String typeRef) |
Property(String title,
String name,
String description,
PropertyType type,
String typeRef,
PropertyType subType,
String subTypeRef) |
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(PropertyType associationType,
IDataModel dataModel)
Add the associated datamodel
|
IDataModel |
getAssociatedDataModel()
Returns the data model associated with this property either One-To-One or One-To-Many
|
IDataModel |
getChildDataModel()
Gets the associated data model.
|
IDataModel |
getDataModel()
Gets the datamodel for which this property belong
|
Object[] |
getEnumList()
Gets the enum related of this property.
|
String |
getIdentifier()
Gets the identifier of this property.
|
Boolean |
getIsPrimaryKey() |
String |
getParameterType()
Gets the parameter type of this property.
|
List<? extends IProperty> |
getProperties()
Gets the properties of this property if property type is Array.
|
String |
getReferenceName()
Returns the reference entity name.
|
Boolean |
getRequired()
Determines whether or not this property accepts null values.
|
IRule |
getRules()
Returns the rules of the attribute.
|
boolean |
isArrayOfPrimitive()
Returns true, if attribute is array of primitive i.e.
|
boolean |
isBelowCollection()
Return true if property is part of collection entity.
|
boolean |
isComplexType()
Returns true if attribute is of type ARRAY or OBJECT.
|
boolean |
isComputed()
Determines if this property is a computed property.
|
boolean |
isNullable()
Determines whether or not this property accepts null values.
|
Boolean |
isPrimaryKey()
Determines if this property is (one of) the primary key(s) of its datamodel.
|
boolean |
isPrimitiveType()
Returns true if attribute is of primitive type.
|
void |
setChildDataModel(IDataModel childDataModel)
Sets the associated data model.
|
void |
setDataModel(IDataModel dataModel) |
void |
setEnumList(Object[] enumList) |
void |
setIsPrimaryKey(Boolean isPrimaryKey) |
void |
setNullable(boolean nullable) |
void |
setParameterType(String parameterType) |
void |
setProperties(List<IProperty> properties) |
void |
setRequired(Boolean required) |
getDefaultValue, getExclusiveMaximum, getExclusiveMinimum, getMaximum, getMaxItems, getMaxLength, getMinimum, getMinItems, getMinLength, getPattern, getProtect, getUniqueItems, isReadOnly, setDefaultValue, setExclusiveMaximum, setExclusiveMinimum, setMaximum, setMaxItems, setMaxLength, setMinimum, setMinItems, setMinLength, setPattern, setProtect, setReadOnly, setUniqueItems
getFormatType, getMediaBinaryEncoding, getMediaType, getSubType, getSubTypeRef, getType, getTypeRef, setFormatType, setMediaBinaryEncoding, setMediaType, setSubType, setSubTypeRef, setType, setTypeRef
getDescription, getId, getName, getTitle, setDescription, setId, setName, setTitle
getFormatType, getMediaBinaryEncoding, getMediaType, getSubType, getSubTypeRef, getType, getTypeRef, setFormatType, setSubType, setType
getDescription, getId, getName, getTitle
public Property()
public Property(String name, String description, PropertyType type)
public Property(String name, String description, PropertyType type, String typeRef)
public Property(String name, PropertyType type, IDataModel dataModel)
public Property(String name, PropertyType type, IDataModel dataModel, Boolean required)
public Property(String name, PropertyType type, IDataModel dataModel, Boolean isPrimaryKey, Boolean required)
public Property(String title, String name, String description, PropertyType type, String typeRef, PropertyType subType, String subTypeRef)
public IDataModel getDataModel()
getDataModel
in interface IProperty
public Boolean getRequired()
getRequired
in interface IProperty
public boolean isNullable()
isNullable
in interface IProperty
public Boolean isPrimaryKey()
isPrimaryKey
in interface IProperty
public boolean isComputed()
isComputed
in interface IProperty
public IDataModel getChildDataModel()
getChildDataModel
in interface IProperty
public IDataModel getAssociatedDataModel()
getAssociatedDataModel
in interface IProperty
public void setChildDataModel(IDataModel childDataModel)
setChildDataModel
in interface IProperty
childDataModel
- the associated dataModel.public void setRequired(Boolean required)
public void setNullable(boolean nullable)
public Boolean getIsPrimaryKey()
public void setIsPrimaryKey(Boolean isPrimaryKey)
public void setDataModel(IDataModel dataModel)
public String getParameterType()
IProperty
getParameterType
in interface IProperty
public void setParameterType(String parameterType)
public List<? extends IProperty> getProperties()
getProperties
in interface IProperty
public Object[] getEnumList()
getEnumList
in interface IProperty
public void setEnumList(Object[] enumList)
public void addAssociation(PropertyType associationType, IDataModel dataModel) throws DermisException
associationType
- association type either COLLECTION or OBJECTdataModel
- associated data modelDermisException
public String getReferenceName()
getReferenceName
in interface IProperty
public String getIdentifier()
IProperty
getIdentifier
in interface IProperty
public boolean isComplexType()
isComplexType
in interface IProperty
public boolean isArrayOfPrimitive()
TypedAsset.getType()
is PropertyType.ARRAY
and TypedAsset.subType
is primtivepublic IRule getRules()
IProperty
public boolean isBelowCollection()
IFormDataModelManager.getEntityPropertyByPath(String, String)
isBelowCollection
in interface IProperty
public boolean isPrimitiveType()
isPrimitiveType
in interface IProperty
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.