Class NullPropertyAssertionImpl

java.lang.Object
info.ejava.assignments.aop.houserenters.util.NullPropertyAssertion
info.ejava_student.starter.assignment3.aop.houserentals.NullPropertyAssertionImpl

public class NullPropertyAssertionImpl extends NullPropertyAssertion
  • Constructor Details

    • NullPropertyAssertionImpl

      public NullPropertyAssertionImpl()
  • Method Details

    • getGetterMethod

      protected Optional<Method> getGetterMethod(Object object, String getterName)
      Return the named Method for the object or empty if method does not exist.
      Specified by:
      getGetterMethod in class NullPropertyAssertion
      Parameters:
      object -
      getterName -
      Returns:
      method for getterName in class or null if does not exist
    • getValue

      protected Object getValue(Object object, Method getterMethod)
      Return the value returned from the getter method and report any errors that with a server-type error.
      Specified by:
      getValue in class NullPropertyAssertion
      Parameters:
      object -
      getterMethod -
      Returns:
      result of calling method against object