Class AttributeModificationValidator

java.lang.Object
cz.cvut.kbss.jopa.sessions.validator.AttributeModificationValidator

public class AttributeModificationValidator extends Object
Validates modification operations on attributes.
  • Method Details

    • verifyCanModify

      public static void verifyCanModify(FieldSpecification<?,?> fieldSpec)
      Checks whether the specified field can be modified.

      Currently, only modification of lexical form attributes are rejected immediately.

      Parameters:
      fieldSpec - Specification of mapped field to verify
      Throws:
      AttributeModificationForbiddenException - If the specified field cannot be modified