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

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


    writer.writeAttribute(ATTRIBUTE_FORMAT, creationDate.getFormat());
    writer.writeCharacters(creationDate.getValue());
    writer.writeEndElement(); // CreationDate
   
    writer.writeStartElement(ELEMENT_LAST_MODIFICATION_DATE);
    LastModificationDate lastModificationDate = reviewIssueMeta.getLastModificationDate();
    writer.writeAttribute(ATTRIBUTE_FORMAT, lastModificationDate.getFormat());
    writer.writeCharacters(lastModificationDate.getValue());
    writer.writeEndElement(); // LastModificationDate
   
    writer.writeEndElement(); // ReviewIssueMeta
  }
View Full Code Here


              creationDate.setValue(reader.getText());
            }
            meta.setCreationDate(creationDate);
          }
          else if (ELEMENT_LAST_MODIFICATION_DATE.equals(elementName)) {
            LastModificationDate lastModDate = new LastModificationDate();
            lastModDate.setFormat(reader.getAttributeValue(null, ATTRIBUTE_FORMAT));
           
            // get the CHARACTERS event to get the date string
            eventType = reader.next();
            if (eventType == XMLStreamConstants.CHARACTERS) {
              lastModDate.setValue(reader.getText());
            }
            meta.setLastModificationDate(lastModDate);
          }
        }
        else if (eventType == XMLStreamConstants.END_ELEMENT) {
View Full Code Here

    // Creation date for review issue meta
    CreationDate creationDate = new CreationDate();
    creationDate.setFormat(DATE_FORMAT_PATTERN);
    creationDate.setValue(DATE_FORMATTER.format(reviewIssue.getCreationDate()));
    // Last modification date for review issue meta
    LastModificationDate lastModDate = new LastModificationDate();
    lastModDate.setFormat(DATE_FORMAT_PATTERN);
    lastModDate.setValue(DATE_FORMATTER.format(reviewIssue.getModificationDate()));
    // review issue meta
    ReviewIssueMeta meta = new ReviewIssueMeta();
    meta.setCreationDate(creationDate);
    meta.setLastModificationDate(lastModDate);
    xmlReviewIssue.setReviewIssueMeta(meta);
View Full Code Here

      throws ReviewException {
    try {
      ReviewIssueMeta reviewIssueMeta = xmlReviewIssue.getReviewIssueMeta();
      CreationDate creationDate = reviewIssueMeta.getCreationDate();
      Date createDate = createDate(creationDate.getValue(), creationDate.getFormat());
      LastModificationDate lastModificationDate = reviewIssueMeta.getLastModificationDate();
      Date lastModDate = createDate(lastModificationDate.getValue(), lastModificationDate
          .getFormat());

      String reviewerId = xmlReviewIssue.getReviewerId();
      String assignedTo = xmlReviewIssue.getAssignedTo();
      String summary = xmlReviewIssue.getSummary();
View Full Code Here

TOP

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

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.