Package edu.hawaii.ics.csdl.jupiter

Examples of edu.hawaii.ics.csdl.jupiter.ReviewException


          lineString, getType(typeString), getSeverity(severityString), summary, description,
          annotation, revision, getResolution(resolutionString), getStatus(statusString),
          reviewIFile);
    }
    catch (NullPointerException e) {
      throw new ReviewException(e.getMessage());
    }
  }
View Full Code Here


    try {
      write(xmlFile, review);
    }
    catch (IOException e) {
      throw new ReviewException("IOException: " + e.getMessage());
    }
    catch (XMLStreamException e) {
      throw new ReviewException("JAXBException: " + e.getMessage());
    }
  }
View Full Code Here

          new FileInputStream(reviewFile));

      review = StaxReviewXmlUtil.parseReviewFile(reader);
    }
    catch (XMLStreamException e) {
      throw new ReviewException("XMLStreamException: " + e.getMessage(), e);
    }
    catch (FileNotFoundException e) {
      throw new ReviewException("FileNotFoundException: " + e.getMessage(), e);
    }

    String reviewIdName = review.getId();
    return (reviewIdName != null && reviewIdName.equals(reviewId));
  }
View Full Code Here

    for (int i = 0; i < iFiles.length; i++) {
      try {
        iFiles[i].delete(true, false, null);
      }
      catch (CoreException e) {
        throw new ReviewException(e.getMessage());
      }
    }
  }
View Full Code Here

      StaxPreferenceXmlUtil.writePreference(writer, preference);
     
      writer.writeEndDocument();
    }
    catch (XMLStreamException e) {
      throw new ReviewException("XMLStreamException: " + e.getMessage(), e);
    }
    catch (FileNotFoundException e) {
      throw new ReviewException("FileNotFoundException: " + e.getMessage(), e);
    }
    finally {
      if (writer != null) {
        try {
          writer.close();
View Full Code Here

      }
      if (codeReview.getSeverity().getKey().equals(ResourceBundleKey.ITEM_KEY_UNSET)) {
        message += "\n" + ReviewI18n.getString(ResourceBundleKey.COLUMN_HEADER_SEVERITY);
      }
      if (!message.equals("")) {
        throw new ReviewException(message);
      }
    }
    else if (activeTabNameKey.equals(ResourceBundleKey.PHASE_TEAM)) {
      if (codeReview.getAssignedTo().equals("")) {
        message += "\n" + ReviewI18n.getString(ResourceBundleKey.COLUMN_HEADER_ASSGINED_TO);
      }
      if (codeReview.getResolution().getKey().equals(ResourceBundleKey.ITEM_KEY_UNSET)) {
        message += "\n" + ReviewI18n.getString(ResourceBundleKey.COLUMN_HEADER_RESOLUTION);
      }
      if (!message.equals("")) {
        throw new ReviewException(message);
      }
    }
  }
View Full Code Here

   *
   * @throws ReviewException if the reviewer's name string is null or empty.
   */
  private void setReviewer(String reviewer) throws ReviewException {
    if ((reviewer == null) || reviewer.equals("")) {
      throw new ReviewException("Please type a reviewer.");
    }
    this.reviewer = reviewer;
  }
View Full Code Here

   *
   * @throws ReviewException if the reviewer's name string is null or empty.
   */
  private void setAssignedTo(String assignedTo) throws ReviewException {
    if (assignedTo == null) {
      throw new ReviewException("Please type the person name who is assigned to.");
    }
    this.assignedTo = assignedTo;
  }
View Full Code Here

          jupiterConfigIFile.refreshLocal(IResource.DEPTH_ONE, null);
        }
      }
    }
    catch (FileNotFoundException e) {
      throw new ReviewException("FileNotFoundException: " + e.getMessage(), e);
    }
    catch (XMLStreamException e) {
      throw new ReviewException("XMLStreamException: " + e.getMessage(), e);
    }
    catch (CoreException e) {
      throw new ReviewException("CoreException: " + e.getMessage(), e);
    }
    catch (IOException e) {
      throw new ReviewException("IOException: " + e.getMessage(), e);
    }
    finally {
      if (reader != null) {
        try {
          reader.close();
View Full Code Here

      }

      writer.writeEndElement(); // Property
    }
    catch (FileNotFoundException e) {
      throw new ReviewException("FileNotFoundException: " + e.getMessage(), e);
    }
    catch (XMLStreamException e) {
      throw new ReviewException("XMLStreamException: " + e.getMessage(), e);
    }
    finally {
      if (writer != null) {
        try {
          writer.close();
View Full Code Here

TOP

Related Classes of edu.hawaii.ics.csdl.jupiter.ReviewException

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.