Module dev.metaschema.core
Class AbstractConfigurableMessageConstraintBuilder<T extends AbstractConfigurableMessageConstraintBuilder<T,R>,R extends IConfigurableMessageConstraint>
java.lang.Object
dev.metaschema.core.model.constraint.AbstractConstraintBuilder<T,R>
dev.metaschema.core.model.constraint.AbstractConfigurableMessageConstraintBuilder<T,R>
- Type Parameters:
T- the Java type of the implementing builderR- the Java type of the resulting built object
- Direct Known Subclasses:
AbstractKeyConstraintBuilder,ICardinalityConstraint.Builder,IExpectConstraint.Builder,IMatchesConstraint.Builder,IReportConstraint.Builder
public abstract class AbstractConfigurableMessageConstraintBuilder<T extends AbstractConfigurableMessageConstraintBuilder<T,R>,R extends IConfigurableMessageConstraint>
extends AbstractConstraintBuilder<T,R>
Provides builder methods for the core data elements of an
IConstraint.
The base class of all constraint builders.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the constraint message provided to the builder.A message to emit when the constraint is violated.Methods inherited from class dev.metaschema.core.model.constraint.AbstractConstraintBuilder
build, description, formalName, getDescription, getFormalName, getId, getLevel, getProperties, getRemarks, getSource, getTarget, getThis, identifier, level, newInstance, properties, property, property, remarks, source, target, validate
-
Constructor Details
-
AbstractConfigurableMessageConstraintBuilder
public AbstractConfigurableMessageConstraintBuilder()
-
-
Method Details
-
message
A message to emit when the constraint is violated. Allows embedded Metapath expressions using the syntax\{ metapath \}.- Parameters:
message- the message if defined ornullotherwise- Returns:
- this builder
-
getMessage
Get the constraint message provided to the builder.- Returns:
- the message or
nullif no message is set
-