Package lib.util

Examples of lib.util.Functions


    }
    return complaintRep.insert(complaint);
  }

  public void validate(Complaint complaint) {
    Functions f = new Functions();

    if (complaint == null) {
      throw new IllegalArgumentException();
    }

    f.campoPreenchido(complaint.getDescricao());

    if (complaint instanceof AnimalComplaint) {
      f.campoPreenchido(((AnimalComplaint) complaint).getOccurenceLocalAddress());
      f.campoPreenchido(((AnimalComplaint) complaint).getAnimal());
    }

    if (complaint instanceof FoodComplaint) {
      f.campoPreenchido(((FoodComplaint) complaint).getQtdeComensais());
      f.campoPreenchido(((FoodComplaint) complaint).getQtdeDoentes());
    }
  }
View Full Code Here

TOP

Related Classes of lib.util.Functions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.