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, setUniqueItemsgetFormatType, getMediaBinaryEncoding, getMediaType, getSubType, getSubTypeRef, getType, getTypeRef, setFormatType, setMediaBinaryEncoding, setMediaType, setSubType, setSubTypeRef, setType, setTypeRefgetDescription, getId, getName, getTitle, setDescription, setId, setName, setTitlegetFormatType, getMediaBinaryEncoding, getMediaType, getSubType, getSubTypeRef, getType, getTypeRef, setFormatType, setSubType, setTypegetDescription, getId, getName, getTitlepublic 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 IPropertypublic Boolean getRequired()
getRequired in interface IPropertypublic boolean isNullable()
isNullable in interface IPropertypublic Boolean isPrimaryKey()
isPrimaryKey in interface IPropertypublic boolean isComputed()
isComputed in interface IPropertypublic IDataModel getChildDataModel()
getChildDataModel in interface IPropertypublic IDataModel getAssociatedDataModel()
getAssociatedDataModel in interface IPropertypublic void setChildDataModel(IDataModel childDataModel)
setChildDataModel in interface IPropertychildDataModel - 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()
IPropertygetParameterType in interface IPropertypublic void setParameterType(String parameterType)
public List<? extends IProperty> getProperties()
getProperties in interface IPropertypublic Object[] getEnumList()
getEnumList in interface IPropertypublic void setEnumList(Object[] enumList)
public void addAssociation(PropertyType associationType, IDataModel dataModel) throws DermisException
associationType - association type either COLLECTION or OBJECTdataModel - associated data modelDermisExceptionpublic String getReferenceName()
getReferenceName in interface IPropertypublic String getIdentifier()
IPropertygetIdentifier in interface IPropertypublic boolean isComplexType()
isComplexType in interface IPropertypublic boolean isArrayOfPrimitive()
TypedAsset.getType() is PropertyType.ARRAY and TypedAsset.subType is primtivepublic IRule getRules()
IPropertypublic boolean isBelowCollection()
IFormDataModelManager.getEntityPropertyByPath(String, String)isBelowCollection in interface IPropertypublic boolean isPrimitiveType()
isPrimitiveType in interface IPropertyCopyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.