Class IdentifierValidator
java.lang.Object
ch.tocco.nice2.model.entity.impl.validate.IdentifierValidator
- All Implemented Interfaces:
NiceModelValidator
Validates that the identifier-names are valid (ConceptionModelValidators).
- valid java-identifiers
- no relation on an
EntityModel
has the same name as a field
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(EntityModel model) void
validate
(FieldModel model) void
validate
(RelationModel model) protected void
validateName
(String name)
-
Constructor Details
-
IdentifierValidator
public IdentifierValidator()
-
-
Method Details
-
validate
- Specified by:
validate
in interfaceNiceModelValidator
- Throws:
ModelValidationException
-
validate
- Specified by:
validate
in interfaceNiceModelValidator
- Throws:
ModelValidationException
-
validate
- Specified by:
validate
in interfaceNiceModelValidator
- Throws:
ModelValidationException
-
validateName
- Throws:
ModelValidationException
-