Interface ConstraintEntityDefinitionParameter
-
- All Superinterfaces:
Serializable
public interface ConstraintEntityDefinitionParameter extends Serializable
A representation of a parameter from the definition of the entity to use for constraint evaluation. This representation may wrap on of the following:- a
JobDefinitionParameterif the constraint is being evaluated in the context of a Job/JobChainCall - a
TableDefinitionColumnif the constraint is being evaluated in the context of a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LonggetArrayMaxLength()The maximum length of the array if the parameter is an array parameter.LonggetArrayMinLength()The minimum length of the array if the parameter is an array parameter.LonggetDataLength()The maximum length of the parameter if the type is String.ParameterTypegetDataType()Gets the type of the parameter from the definition.StringgetDefaultExpression()Gets the default expression of the parameter.ValueEditablegetDefaultValueEditable()Indicates when the parameter from the definition is editable.StringgetDefinitionName()Gets the name of the entity definition.StringgetDescription()Gets the description of the parameter from the definition.default StringgetErrorNameEN()StringgetFormat()Gets the format of the parameter.StringgetGroupName()Gets the group name of the parameter from the definition.StringgetName()Gets the name of the parameter from the definition.StringgetPartitionName()Gets the name of the partition of the entity definition.StringgetSimpleConstraintData()Gets the simple constraint data of the parameter from the definition.StringgetSimpleConstraintMessage()Get the message of the simple constraint.SimpleConstraintSortgetSimpleConstraintSort()Gets the sorting of the simple constraint.SimpleConstraintTypegetSimpleConstraintType()Gets the type of simple constraint.booleanisArray()Indicates whether the parameter is an array.booleanisArrayDuplicateValuesAllowed()Indicates whether duplicate values are allowed if the parameter is an array parameter.booleanisDisplay()Is the parameter from the definition displayed?booleanisNullable()Is the parameter from the definition optional?booleanisSimpleConstraintOptional()Is the simple constraint of the parameter from the definition optional?SchedulerEntityunwrap()Unwraps the constraint entity definition parameter by returning the underlying scheduler entity.
-
-
-
Method Detail
-
getName
String getName()
Gets the name of the parameter from the definition.- Returns:
- the name
-
getDescription
String getDescription()
Gets the description of the parameter from the definition.- Returns:
- the description
-
getDataType
ParameterType getDataType()
Gets the type of the parameter from the definition.- Returns:
- the type
-
isNullable
boolean isNullable()
Is the parameter from the definition optional?- Returns:
trueif the parameter is optional.
-
isDisplay
boolean isDisplay()
Is the parameter from the definition displayed?- Returns:
trueif the parameter is displayed.
-
getDefaultValueEditable
ValueEditable getDefaultValueEditable()
Indicates when the parameter from the definition is editable.- Returns:
- when the parameter is editable
-
getSimpleConstraintData
String getSimpleConstraintData()
Gets the simple constraint data of the parameter from the definition.- Returns:
- the simple constraint data
-
isSimpleConstraintOptional
boolean isSimpleConstraintOptional()
Is the simple constraint of the parameter from the definition optional?- Returns:
trueif the simple constraint of the parameter is optional.
-
getSimpleConstraintType
SimpleConstraintType getSimpleConstraintType()
Gets the type of simple constraint.- Returns:
- the type of simple constraint.
-
getSimpleConstraintMessage
String getSimpleConstraintMessage()
Get the message of the simple constraint.- Returns:
- the message of the simple constraint.
-
getSimpleConstraintSort
SimpleConstraintSort getSimpleConstraintSort()
Gets the sorting of the simple constraint.- Returns:
- the sorting of the simple constraint.
-
getGroupName
String getGroupName()
Gets the group name of the parameter from the definition.- Returns:
- the group name
-
getDataLength
Long getDataLength()
The maximum length of the parameter if the type is String.- Returns:
- the maximum length of the parameter
-
getDefinitionName
String getDefinitionName()
Gets the name of the entity definition.- Returns:
- the name of the definition
-
getPartitionName
String getPartitionName()
Gets the name of the partition of the entity definition. Can only return null if the user does not have the privileges to see the Partition of the ConstraintEntity.- Returns:
- the name of the partition.
-
getDefaultExpression
String getDefaultExpression()
Gets the default expression of the parameter.- Returns:
- the default expression
-
getFormat
String getFormat()
Gets the format of the parameter.- Returns:
- the format
-
isArray
boolean isArray()
Indicates whether the parameter is an array.- Returns:
trueif the parameter is an array.
-
isArrayDuplicateValuesAllowed
boolean isArrayDuplicateValuesAllowed()
Indicates whether duplicate values are allowed if the parameter is an array parameter.- Returns:
trueif duplicate values are allowed in the array.
-
getArrayMinLength
Long getArrayMinLength()
The minimum length of the array if the parameter is an array parameter.- Returns:
- the minimum length of the array.
-
getArrayMaxLength
Long getArrayMaxLength()
The maximum length of the array if the parameter is an array parameter.- Returns:
- the maximum length of the array.
-
unwrap
SchedulerEntity unwrap()
Unwraps the constraint entity definition parameter by returning the underlying scheduler entity.- Returns:
- the scheduler entity that is wrapped inside this constraint entity definition parameter.
-
getErrorNameEN
default String getErrorNameEN()
-
-