Package uk.ac.osswatch.simal.model

Examples of uk.ac.osswatch.simal.model.IResource


   * @param qname
   */
  private static void write(final String uri, CommandLine cl) {
    logger.info("Writing XML for " + uri);
    try {
      IResource resource = repository.getResource(uri);
      dump(resource, cl);
    } catch (SimalRepositoryException e) {
      logger.error("Unable to write XML to standard out");
      System.exit(1);
    }
View Full Code Here


   * Add a link based on the type of resource.
   */
  @Override
  public void populateItem(Item<ICellPopulator<IResource>> item,
      String componentId, IModel<IResource> model) {
    IResource targetResource = model.getObject();
    if (targetResource instanceof IDocument) {
      IDocument page = (IDocument)targetResource;
      item.add(new LinkPanel(componentId, page.getURI(), page.getLabel()));
    } else {
      item.add(new LinkPanel(componentId, targetResource, createLabelModel(model)));
View Full Code Here

   * @param item
   * @param componentId
   * @param model
   */
  public void onClick(Item<?> item, String componentId, IModel<?> model) {
    IResource resource = (IResource) model.getObject();
    item.getRequestCycle().setResponsePage(generateResponsePage(resource));
  }
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.model.IResource

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.