Package org.purl.sword.atom

Examples of org.purl.sword.atom.Generator


    boolean identify = ConfigurationManager.getBooleanProperty("sword.identify-version");
    SWORDUrlManager urlManager = swordService.getUrlManager();
    String softwareUri = urlManager.getGeneratorUrl();
    if (identify)
    {
      Generator generator = new Generator();
      generator.setUri(softwareUri);
      generator.setVersion(SWORDProperties.VERSION);
      entry.setGenerator(generator);
    }
  }
View Full Code Here


            }
            else if (isInstanceOf(element, Generator.elementName()))
            {
               if( generator == null )
               {
                  generator = new Generator();
                  validationItems.add(generator.unmarshall(element, validationProperties));
               }
               else if( validationProperties != null )
               {
                   SwordValidationInfo info = new SwordValidationInfo(Generator.elementName(),
View Full Code Here

        boolean identify = ConfigurationManager.getBooleanProperty("sword.identify-version", false);
        SWORDUrlManager urlManager = swordService.getUrlManager();
        String softwareUri = urlManager.getGeneratorUrl();
        if (identify)
        {
            Generator generator = new Generator();
            generator.setUri(softwareUri);
            generator.setVersion(SWORDProperties.VERSION);
            service.setGenerator(generator);
        }
    }
View Full Code Here

      c.setName(deposit.getOnBehalfOf());
      c.setEmail(deposit.getOnBehalfOf() + "@myrepository.ac.uk");
      se.addContributor(c);
    }
   
    Generator generator = new Generator();
    generator.setContent("Stuart's Dummy SWORD Server");
    generator.setUri("http://dummy-sword-server.example.com/");
    generator.setVersion("1.3");
    se.setGenerator(generator);
   
    Content content = new Content();
    try {
      content.setType("application/zip");
View Full Code Here

      c.setName(deposit.getOnBehalfOf());
      c.setEmail(deposit.getOnBehalfOf() + "@myrepository.ac.uk");
      se.addContributor(c);
    }
   
    Generator generator = new Generator();
    generator.setContent("Stuart's Dummy SWORD Server");
    generator.setUri("http://dummy-sword-server.example.com/");
    generator.setVersion("1.3");
    se.setGenerator(generator);
   
    Content content = new Content();
    try {
      content.setType("application/zip");
View Full Code Here

         String contributorString = getContributorDetails(entry.getContributors());
         addTableRow(buffer, "Contributors", contributorString);

         // process source
         String sourceString="";
         Generator generator = entry.getGenerator();
         if( generator != null )
         {
            sourceString += "Content: '" + generator.getContent() + "' <br>'";
            sourceString += "Version: '" + generator.getVersion() + "' <br>'";
            sourceString += "Uri: '" + generator.getUri() + "'";
         }
         else
         {
            sourceString += "No generator defined.";
         }
View Full Code Here

        boolean identify = ConfigurationManager.getBooleanProperty("sword-server", "identify-version", false);
        SWORDUrlManager urlManager = swordService.getUrlManager();
        String softwareUri = urlManager.getGeneratorUrl();
        if (identify)
        {
            Generator generator = new Generator();
            generator.setUri(softwareUri);
            generator.setVersion(SWORDProperties.VERSION);
            service.setGenerator(generator);
        }
    }
View Full Code Here

            }
            else if (isInstanceOf(element, Generator.elementName()))
            {
               if( generator == null )
               {
                  generator = new Generator();
                  validationItems.add(generator.unmarshall(element, validationProperties));
               }
               else if( validationProperties != null )
               {
                   SwordValidationInfo info = new SwordValidationInfo(Generator.elementName(),
View Full Code Here

    boolean identify = ConfigurationManager.getBooleanProperty("sword-server", "identify-version");
    SWORDUrlManager urlManager = swordService.getUrlManager();
    String softwareUri = urlManager.getGeneratorUrl();
    if (identify)
    {
      Generator generator = new Generator();
      generator.setUri(softwareUri);
      generator.setVersion(SWORDProperties.VERSION);
      entry.setGenerator(generator);
    }
  }
View Full Code Here

      {
         Link link = links.next();
         System.out.println(link.toString());
      }

            Generator generator = entry.getGenerator();
            if( generator != null )
            {
                System.out.println("Generator - " + generator.toString());
            }
            else
            {
                System.out.println("There is no generator");
            }
View Full Code Here

TOP

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

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.