- public PfValidationResult validate(final PfValidationResult resultIn) {
- PfValidationResult result = super.validate(resultIn);
-
- if (constraints != null) {
- result = validateConstraints(result);
- }
-
- if (properties != null) {
- result = validateProperties(result);
- }
-
- return result;
- }
-
- /**
- * Validate the constraints.
- *
- * @param result The result of validations up to now
- * @return the validation result
- */
- private PfValidationResult validateConstraints(@NonNull final PfValidationResult resultIn) {
- PfValidationResult result = resultIn;
-
- for (JpaToscaConstraint constraint : constraints) {
- if (constraint == null) {
- result.addValidationMessage(new PfValidationMessage(getKey(), this.getClass(), ValidationResult.INVALID,
- "data type constraint may not be null "));
- } else {
- result = constraint.validate(result);
- }
- }
- return result;
- }
+ public void fromAuthorative(final ToscaDataType toscaDataType) {
+ super.fromAuthorative(toscaDataType);