Class OptionalReferenceValidator
java.lang.Object
ch.nolix.system.objectdata.fieldvalidator.FieldValidator
ch.nolix.system.objectdata.fieldvalidator.OptionalReferenceValidator
- All Implemented Interfaces:
IFieldValidator, IOptionalReferenceValidator
public final class OptionalReferenceValidator
extends FieldValidator
implements IOptionalReferenceValidator
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertCanBeCleared(IOptionalReference<?> optionalReference) <E extends IEntity>
voidassertCanSetEntity(IOptionalReference<E> optionalReference, E entity) voidassertIsNotEmpty(IOptionalReference<?> optionalReference) Methods inherited from class FieldValidator
assertBelongsToEntity, assertDoesNotBelongToEntity, assertIsNotEmpty, assertIsNotMandatoryAndEmptyBoth, assertKnowsParentColumnMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IFieldValidator
assertBelongsToEntity, assertDoesNotBelongToEntity, assertIsNotEmpty, assertIsNotMandatoryAndEmptyBoth, assertKnowsParentColumn
-
Constructor Details
-
OptionalReferenceValidator
public OptionalReferenceValidator()
-
-
Method Details
-
assertCanBeCleared
- Specified by:
assertCanBeClearedin interfaceIOptionalReferenceValidator
-
assertCanSetEntity
public <E extends IEntity> void assertCanSetEntity(IOptionalReference<E> optionalReference, E entity) - Specified by:
assertCanSetEntityin interfaceIOptionalReferenceValidator
-
assertIsNotEmpty
- Specified by:
assertIsNotEmptyin interfaceIOptionalReferenceValidator
-