Package org.fao.oaipmh.responses

Examples of org.fao.oaipmh.responses.SetInfo


    for (MetadataCategory rec : metadataCategories)
    {
      String name  = rec.getName();
      String label = rec.getLabel(context.getLanguage());

      res.addSet(new SetInfo(name, label));
    }

    return res;
  }
View Full Code Here


      //--- build response

      while (res.hasNext())
      {
        SetInfo si = res.next();

        Element el = new Element("set");

        el.addContent(new Element("name") .setText(si.getSpec()));
        el.addContent(new Element("label").setText(si.getName()));

        root.addContent(el);
      }
    }
    catch(NoSetHierarchyException e)
View Full Code Here

  //---
  //---------------------------------------------------------------------------

  protected Object createObject(Element object)
  {
    return new SetInfo(object);
  }
View Full Code Here

TOP

Related Classes of org.fao.oaipmh.responses.SetInfo

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.