Class ImmutableFieldValidatorImpl<E extends EntityType<E>,T>
- java.lang.Object
-
- com.kenshoo.pl.entity.spi.helpers.ImmutableFieldValidatorImpl<E,T>
-
- All Implemented Interfaces:
ChangeValidator,ImmutableFieldValidator<E,T>
public class ImmutableFieldValidatorImpl<E extends EntityType<E>,T> extends java.lang.Object implements ImmutableFieldValidator<E,T>
-
-
Constructor Summary
Constructors Constructor Description ImmutableFieldValidatorImpl(EntityField<E,T> entityField, java.lang.String errorCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorCode()EntityField<E,T>immutableField()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.kenshoo.pl.entity.spi.ImmutableFieldValidator
fetchFields, immutableWhen
-
-
-
-
Constructor Detail
-
ImmutableFieldValidatorImpl
public ImmutableFieldValidatorImpl(EntityField<E,T> entityField, java.lang.String errorCode)
-
-
Method Detail
-
immutableField
public EntityField<E,T> immutableField()
- Specified by:
immutableFieldin interfaceImmutableFieldValidator<E extends EntityType<E>,T>- Returns:
- the field that should not be modified
-
getErrorCode
public java.lang.String getErrorCode()
- Specified by:
getErrorCodein interfaceImmutableFieldValidator<E extends EntityType<E>,T>- Returns:
- the error code to return if a modification of the field is attempted
-
-