Examples of Creationdate


Examples of com.github.sardine.model.Creationdate

      return null;
    }
    for (Propstat propstat : list)
    {
      if (propstat.getProp() != null) {
        Creationdate gcd = propstat.getProp().getCreationdate();
        if ((gcd != null) && (gcd.getContent().size() == 1))
        {
          return gcd.getContent().get(0);
        }
      }
    }
    return null;
  }
View Full Code Here

Examples of com.googlecode.sardine.model.Creationdate

      return null;
    }
    for (Propstat propstat : list)
    {
      if (propstat.getProp() != null) {
        Creationdate gcd = propstat.getProp().getCreationdate();
        if ((gcd != null) && (gcd.getContent().size() == 1))
        {
          return gcd.getContent().get(0);
        }
      }
    }
    return null;
  }
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.property.CreationDate

   * Gets the creation Date for the review.
   *
   * @return the creation Date instance.
   */
  public Date getCreationDate() {
    CreationDate creationDate = this.review.getCreationDate();
    String format = creationDate.getFormat();
    String date = creationDate.getValue();
    return createDate(date, format);
  }
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.property.CreationDate

   * Sets the review creation date.
   *
   * @param date the date.
   */
  private void setCreationDate(Date date) {
    CreationDate creationDate = this.review.getCreationDate();
    String format = creationDate.getFormat();
    String value = new SimpleDateFormat(format).format(date);
    creationDate.setValue(value);
  }
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.property.CreationDate

    writer.writeStartElement(PropertyConstraints.ELEMENT_AUTHOR);
    writer.writeCharacters(review.getAuthor());
    writer.writeEndElement(); // Author

    writer.writeStartElement(PropertyConstraints.ELEMENT_CREATION_DATE);
    CreationDate creationDate = review.getCreationDate();
    writer.writeAttribute(PropertyConstraints.ATTRIBUTE_FORMAT, creationDate.getFormat());
    writer.writeCharacters(creationDate.getValue());
    writer.writeEndElement(); // CreationDate

    writer.writeStartElement(PropertyConstraints.ELEMENT_DIRECTORY);
    writer.writeCharacters(review.getDirectory());
    writer.writeEndElement(); // Directory
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.property.CreationDate

            String author = reader.getText();
            review.setAuthor(author == null ? "" : author);
          }
        }
        else if (PropertyConstraints.ELEMENT_CREATION_DATE.equals(elementName)) {
          CreationDate creationDate = new CreationDate();

          String format = reader.getAttributeValue(null, PropertyConstraints.ATTRIBUTE_FORMAT);
          creationDate.setFormat(format);

          eventType = reader.next(); // we need the CHARACTERS event
          if (eventType == XMLStreamConstants.CHARACTERS) {
            String dateValue = reader.getText();
            creationDate.setValue(dateValue);
          }

          review.setCreationDate(creationDate);
        }
        else if (PropertyConstraints.ELEMENT_DIRECTORY.equals(elementName)) {
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.file.property.CreationDate

    copiedReview.setAuthor(review.getAuthor());
    copiedReview.setDescription(review.getDescription());
    copiedReview.setDirectory(review.getDirectory());
    copiedReview.setId(review.getId());

    CreationDate creationDate = review.getCreationDate();
    if (creationDate != null) {
      CreationDate copiedCreationDate = new CreationDate();
      copiedCreationDate.setFormat(creationDate.getFormat());
      copiedCreationDate.setValue(creationDate.getValue());
      copiedReview.setCreationDate(copiedCreationDate);
    }

    Reviewers reviewers = review.getReviewers();
    if (reviewers != null) {
View Full Code Here

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

      throws XMLStreamException {
    writer.writeStartElement(ELEMENT_REVIEW_ISSUE_META);
    ReviewIssueMeta reviewIssueMeta = reviewIssue.getReviewIssueMeta();
   
    writer.writeStartElement(ELEMENT_CREATION_DATE);
    CreationDate creationDate = reviewIssueMeta.getCreationDate();
    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());
View Full Code Here

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

          QName elementQName = reader.getName();
          String elementName = elementQName.toString();

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

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

    // create the JAXB review issue object
    edu.hawaii.ics.csdl.jupiter.file.review.ReviewIssue xmlReviewIssue = new edu.hawaii.ics.csdl.jupiter.file.review.ReviewIssue();
    // set id of the review
    xmlReviewIssue.setId(reviewIssue.getIssueId());
    // 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
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.