Package org.apache.wookie.w3c

Examples of org.apache.wookie.w3c.IAuthor


    return widget;
  }
 
  private static void createAuthor(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
     if (model.getAuthor() != null){
        IAuthor author = persistenceManager.newInstance(IAuthor.class);
        author.setAuthorName(model.getAuthor().getAuthorName());
        author.setEmail(model.getAuthor().getEmail());
        author.setHref(model.getAuthor().getHref());
        author.setDir(model.getAuthor().getDir());
        author.setLang(model.getAuthor().getLang());
        widget.setAuthor(author);
      }
  }
View Full Code Here


                    widget = persistenceManager.newInstance(IWidget.class);
                    widget.setHeight(350);
                    widget.setWidth(500);
                    widget.setIdentifier("http://notsupported");
                   
                    IAuthor author = persistenceManager.newInstance(IAuthor.class);
                    author.setAuthorName("Paul Sharples");
                    author.setEmail("p.sharples@bolton.ac.uk");
                    author.setHref("http://iec.bolton.ac.uk");
                    widget.setAuthor(author);
                    widget.setVersion("v1.0");
                    IName widgetName = persistenceManager.newInstance(IName.class);
                    widgetName.setName("Unsupported widget widget");
                    widgetName.setShort("Unsupported");
View Full Code Here

    return widget;
  }
 
  private static void createAuthor(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
     if (model.getAuthor() != null){
        IAuthor author = persistenceManager.newInstance(IAuthor.class);
        author.setAuthorName(model.getAuthor().getAuthorName());
        author.setEmail(model.getAuthor().getEmail());
        author.setHref(model.getAuthor().getHref());
        author.setDir(model.getAuthor().getDir());
        author.setLang(model.getAuthor().getLang());
        widget.setAuthor(author);
      }
  }
View Full Code Here

      getAuthors().add(author);
    }
   
    public IAuthor getOrCreateAuthor(){
      if(getAuthor() == null){
        IAuthor author = PersistenceManagerFactory.getPersistenceManager().newInstance(IAuthor.class);
        setAuthor(author);
      }
      return getAuthor();
    }
View Full Code Here

                    widget = persistenceManager.newInstance(IWidget.class);
                    widget.setHeight(350);
                    widget.setWidth(500);
                    widget.setIdentifier("http://notsupported");
                   
                    IAuthor author = persistenceManager.newInstance(IAuthor.class);
                    author.setAuthorName("Paul Sharples");
                    author.setEmail("p.sharples@bolton.ac.uk");
                    author.setHref("http://iec.bolton.ac.uk");
                    widget.setAuthor(author);
                    widget.setVersion("v1.0");
                    IName widgetName = persistenceManager.newInstance(IName.class);
                    widgetName.setName("Unsupported widget widget");
                    widgetName.setShort("Unsupported");
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.IAuthor

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.