Package org.purl.sword.atom

Examples of org.purl.sword.atom.Title


   * Add the title from the bibliographic metadata
   *
   */
  protected void addTitle()
  {
    Title title = new Title();
    title.setContent(this.bitstream.getName());
    title.setType(ContentType.TEXT);
    entry.setTitle(title);
    log.debug("Added title to entry");
  }
View Full Code Here


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

    */
   public void setTitle( String title )
   {
      if( this.title == null)
      {
         this.title = new Title();
      }
      this.title.setContent(title);
      this.title.setType(ContentType.TEXT);
   }
View Full Code Here

      Attribute href = new Attribute(ATTRIBUTE_HREF, location);
      collection.addAttribute(href);

      if (title == null)
      {
          title = new Title();
          title.setContent("Untitled");
      }
      collection.appendChild(title.marshall());

      for (Accept item:accepts)
View Full Code Here

            element = elements.get(i);
            if (isInstanceOf(element, Title.elementName()))
            {
               if( title == null )
               {
                  title = new Title();
                  validationItems.add(title.unmarshall(element, validationProperties));
               }
               else if( validationProperties != null )
               {
                  SwordValidationInfo info = new SwordValidationInfo(
View Full Code Here

    */
   public void setTitle( String title )
   {
      if( this.title == null)
      {
         this.title = new Title();
      }
      this.title.setContent(title);
      this.title.setType(ContentType.TEXT);

   }
View Full Code Here

            element = elements.get(i);
            if( isInstanceOf(element, Title.elementName() ) )
            {
               if( title == null )
               {
                  title = new Title();
                  validationItems.add(title.unmarshall(element, validationProperties));
               }
               else
               {
                  SwordValidationInfo info =
View Full Code Here

   */
  protected void makeErrorDocument(String errorURI, int status, String summary,
                             HttpServletRequest request, HttpServletResponse response) throws IOException
  {
    SWORDErrorDocument sed = new SWORDErrorDocument(errorURI);
    Title title = new Title();
    title.setContent("ERROR");
    sed.setTitle(title);
    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());
View Full Code Here

      counter++;
    }
    DepositResponse dr = new DepositResponse(Deposit.CREATED);
    SWORDEntry se = new SWORDEntry();
   
    Title t = new Title();
    t.setContent("DummyServer Deposit: #" + counter);
    se.setTitle(t);
   
    se.addCategory("Category");
   
    if (deposit.getSlug() != null) {
View Full Code Here

   * Add the title from the bibliographic metadata
   *
   */
  protected void addTitle()
  {
    Title title = new Title();
    title.setContent(this.bitstream.getName());
    title.setType(ContentType.TEXT);
    entry.setTitle(title);
    log.debug("Added title to entry");
  }
View Full Code Here

TOP

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

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.