Package org.purl.sword.atom

Examples of org.purl.sword.atom.Summary


    DCValue[] dcv = item.getMetadata("dc.description.abstract");
    if (dcv != null)
    {
      for (int i = 0; i < dcv.length; i++)
      {
        Summary summary = new Summary();
        summary.setContent(dcv[i].value);
        summary.setType(ContentType.TEXT);
        entry.setSummary(summary);
      }
    }
  }
View Full Code Here


    Calendar calendar = Calendar.getInstance();
    String utcformat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
    SimpleDateFormat zulu = new SimpleDateFormat(utcformat);
    String serializeddate = zulu.format(calendar.getTime());
    sed.setUpdated(serializeddate);
    Summary sum = new Summary();
    sum.setContent(summary);
    sed.setSummary(sum);
    if (request.getHeader(HttpHeaders.USER_AGENT.toString()) != null) {
      sed.setUserAgent(request.getHeader(HttpHeaders.USER_AGENT.toString()));
    }
    response.setStatus(status);
View Full Code Here

    TimeZone utc = TimeZone.getTimeZone("UTC");
    sdf.setTimeZone (utc);
    String milliFormat = sdf.format(new Date());
    se.setUpdated(milliFormat);
     
      Summary s = new Summary();
    s.setContent(filenames.toString());
    se.setSummary(s);
    Author a = new Author();
    if (username != null) {
      a.setName(username);
    } else {
View Full Code Here

    TimeZone utc = TimeZone.getTimeZone("UTC");
    sdf.setTimeZone (utc);
    String milliFormat = sdf.format(new Date());
    se.setUpdated(milliFormat);
     
      Summary s = new Summary();
    s.setContent(filenames.toString());
    se.setSummary(s);
    Author a = new Author();
    if (username != null) {
      a.setName(username);
    } else {
View Full Code Here

    Metadatum[] dcv = item.getMetadataByMetadataString("dc.description.abstract");
    if (dcv != null)
    {
      for (int i = 0; i < dcv.length; i++)
      {
        Summary summary = new Summary();
        summary.setContent(dcv[i].value);
        summary.setType(ContentType.TEXT);
        entry.setSummary(summary);
      }
    }
  }
View Full Code Here

    Calendar calendar = Calendar.getInstance();
    String utcformat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
    SimpleDateFormat zulu = new SimpleDateFormat(utcformat);
    String serializeddate = zulu.format(calendar.getTime());
    sed.setUpdated(serializeddate);
    Summary sum = new Summary();
    sum.setContent(summary);
    sed.setSummary(sum);
    if (request.getHeader(HttpHeaders.USER_AGENT.toString()) != null) {
      sed.setUserAgent(request.getHeader(HttpHeaders.USER_AGENT.toString()));
    }
    response.setStatus(status);
View Full Code Here

         else
         {
            System.out.println("There is no right element.");
         }
     
       Summary summary = entry.getSummary();
     if( summary != null )
         {
           
            System.out.println(summary.toString());
         }
         else
         {
            System.out.println("There is no summary element.");
         }
View Full Code Here

TOP

Related Classes of org.purl.sword.atom.Summary

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.