Interface IDomainPropertyDefinition
- All Known Implementing Classes:
CustomSchemaPropertyDefinition
,DomainPropertyDefinition
public interface IDomainPropertyDefinition
Defines a property on a data object.
- Since:
- 9.3
- Author:
- A.Pragt
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the attribute.This method returns the name of entity where the domain property has a relation to.Returns the custom schema element.Returns the data type of the property.Returns the documentation of the property.Returns the optional name of the items within this property.getName()
Returns the name of the property.Returns the object definition.Returns the schemaNameThis method returns the validations of the attribute.boolean
Returns an indicator whether the property is multivalued.boolean
Returns an indicator whether the property is nullable.boolean
Returns an indicator whether the property is mandatory.
-
Method Details
-
getName
String getName()Returns the name of the property.- Returns:
- The name, never null.
-
getDocumentation
String getDocumentation()Returns the documentation of the property.- Returns:
- The documentation, may be null
-
isRequired
boolean isRequired()Returns an indicator whether the property is mandatory.- Returns:
- Required indicator.
-
isNullable
boolean isNullable()Returns an indicator whether the property is nullable.- Returns:
- Nullable indicator.
-
isMultivalued
boolean isMultivalued()Returns an indicator whether the property is multivalued.- Returns:
- Multivalued indicator.
-
getAttributeName
String getAttributeName()Returns the name of the attribute. The attribute must be a relation for an object definition. Also, it must match the datatype and the cardinality must match.- Returns:
- The name of the attribute, may be null.
-
getItemName
String getItemName()Returns the optional name of the items within this property.- Returns:
- The optional item name, may be null.
-
getDataType
DataType getDataType()Returns the data type of the property. When an Entity is the data object must be filled.- Returns:
- The data type, may be null.
-
getObjectDefinition
IDomainObjectDefinition getObjectDefinition()Returns the object definition.- Returns:
- The object definition, mandatory in case of entity data type.
-
getSchemaName
String getSchemaName()Returns the schemaName- Returns:
- The domain schema name.
-
getValidations
IFieldValidationDefinition[] getValidations()This method returns the validations of the attribute.- Returns:
- The validations of the attribute, may not be null.
-
getAttributeRelationEntityName
String getAttributeRelationEntityName()This method returns the name of entity where the domain property has a relation to. This method only returns a value when the domain property refers to a relation.- Returns:
- The name of entity where the domain property has a relation to, can be null.
-
getCustomSchemaElement
IElementReference getCustomSchemaElement()Returns the custom schema element.- Returns:
- The custom schema element, otherwise null.
-