Package edu.hawaii.ics.csdl.jupiter.file.review

Examples of edu.hawaii.ics.csdl.jupiter.file.review.File


     
      StaxReviewXmlUtil.writeElement(writer, ELEMENT_REVIEWER_ID, reviewIssue.getReviewerId());
      StaxReviewXmlUtil.writeElement(writer, ELEMENT_ASSIGNED_TO, reviewIssue.getAssignedTo());
     
      writer.writeStartElement(ELEMENT_FILE);
      File file = reviewIssue.getFile();
      if (file.getLine() != null) {
        writer.writeAttribute(ATTRIBUTE_LINE, String.valueOf(file.getLine()));
      }
      if (file.getValue() != null) {
        writer.writeCharacters(file.getValue());
      }
      writer.writeEndElement(); // File
     
      StaxReviewXmlUtil.writeElement(writer, ELEMENT_TYPE, reviewIssue.getType());
      StaxReviewXmlUtil.writeElement(writer, ELEMENT_SEVERITY, reviewIssue.getSeverity());
View Full Code Here


            if (eventType == XMLStreamConstants.CHARACTERS) {
              reviewIssue.setAssignedTo(StaxReviewXmlUtil.getFixedText(reader.getText()));
            }
          }
          else if (ELEMENT_FILE.equals(elementName)) {
            File file = new File();
           
            String line = reader.getAttributeValue(null, ATTRIBUTE_LINE);
            if (line != null && !"".equals(line)) {
              file.setLine(Integer.parseInt(line));
            }
           
            // get the CHARACTERS event to get the file
            eventType = reader.next();
            if (eventType == XMLStreamConstants.CHARACTERS) {
              file.setValue(StaxReviewXmlUtil.getFixedText(reader.getText()));
            }
            reviewIssue.setFile(file);
          }
          else if (ELEMENT_TYPE.equals(elementName)) {
            // get the CHARACTERS event to get the type
View Full Code Here

TOP

Related Classes of edu.hawaii.ics.csdl.jupiter.file.review.File

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.