Package org.apache.wookie.w3c

Examples of org.apache.wookie.w3c.IName


                    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");
                    widget.getNames().add(widgetName);
                    IDescription widgetDescription = persistenceManager.newInstance(IDescription.class);
                    widgetDescription.setDescription("This widget is a placeholder for when no corresponding widget is found for a given type");
                    widget.getDescriptions().add(widgetDescription);
                    IContent widgetStartFile = persistenceManager.newInstance(IContent.class);
View Full Code Here


 
  @Test
  public void loadModifySave() throws Exception{
    File testWidget = new File("build/widgets/bubbles.wgt");
    W3CWidget widget = load(testWidget);
    IName name = widget.getNames().get(0);
    name.setName("Modified Widget");
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("Modified Widget"));
    assertTrue(manifest.contains("<content src=\"index.html\""));
View Full Code Here

    if (output.exists()) output.delete();
    output.mkdir();
    fac.setOutputDirectory(output.getAbsolutePath());
    W3CWidget widget = fac.parse(new URL("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-RRZxvvTFHx/001/b6.wgt"));
   
    IName name = widget.getNames().get(0);
    name.setName("Re-Modified Widget");
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
   
    // Save the config.xml
    File widgetFolder = new File(output.getPath()+"/b6");
View Full Code Here

TOP

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

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.