Examples of exportAsString()


Examples of net.sf.abproject.util.google.csv.GoogleCsvDocument.exportAsString()

              //im-sk ::: im-icq ::: im-jab ::: im-msn
              he.setColumn("IM 1 - Service", service.toString());
              he.setColumn("IM 1 - Value", value.toString());
          }
        }
        return d.exportAsString();
    }

    private static void copyAttr(Human h, GoogleCsvRow he, String attrName) {
        String value= StringUtil.makeEmpty(net.sf.abproject.addressbook.ab.ui.pane.HumanPane.getStringViaReflection(h,attrName)).trim();
        if(!StringUtil.isEmpty(value))he.setColumn(attrName,value);
View Full Code Here

Examples of org.jboss.arquillian.protocol.servlet.arq514hack.descriptors.api.application.ApplicationDescriptor.exportAsString()

            applicationXml.webModule(protocol.getName(), ServletUtil.calculateContextRoot(protocol.getName()));
           
            // SHRINKWRAP-187, to eager on not allowing overrides, delete it first
            applicationArchive.delete(APPLICATION_XML_PATH);
            applicationArchive.setApplicationXML(
                  new StringAsset(applicationXml.exportAsString()));
         }
        
         processor.process(protocol);
      }
      applicationArchive.addAsLibraries(
View Full Code Here

Examples of org.jboss.arquillian.protocol.servlet.arq514hack.descriptors.api.application.ApplicationDescriptor.exportAsString()

            applicationXml.webModule(wrappedWar.getName(), ServletUtil.calculateContextRoot(wrappedWar.getName()));
           
            // SHRINKWRAP-187, to eager on not allowing overrides, delete it first
            applicationArchive.delete(APPLICATION_XML_PATH);
            applicationArchive.setApplicationXML(
                  new StringAsset(applicationXml.exportAsString()));
         }
      }
     
      applicationArchive.addAsLibraries(
            auxiliaryArchives.toArray(new Archive<?>[0]));
View Full Code Here

Examples of org.jboss.arquillian.protocol.servlet.arq514hack.descriptors.api.web.WebAppDescriptor.exportAsString()

        war.addClass(GetLoginUrlServlet.class);

        WebAppDescriptor webXml = Descriptors.importAs(WebAppDescriptor.class).fromStream(node.getAsset().openStream());
        war.delete(WEB_XML_PATH); // delete first, so we can re-add
        webXml.servlet(UserLogin.USER_LOGIN_SERVLET_PATH + "-servlet", GetLoginUrlServlet.class.getName(), new String[]{"/" + UserLogin.USER_LOGIN_SERVLET_PATH});
        war.setWebXML(new StringAsset(webXml.exportAsString()));
    }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.facesconfig20.WebFacesConfigDescriptor.exportAsString()

   @Override
   protected void createDefaultConfig(FileResource<?> descriptor)
   {
      WebFacesConfigDescriptor descriptorContents = Descriptors.create(WebFacesConfigDescriptor.class)
               .version("2.0");
      descriptor.setContents(descriptorContents.exportAsString());
   }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.facesconfig21.WebFacesConfigDescriptor.exportAsString()

   @Override
   protected void createDefaultConfig(FileResource<?> descriptor)
   {
      WebFacesConfigDescriptor descriptorContents = Descriptors.create(WebFacesConfigDescriptor.class)
               .version("2.1");
      descriptor.setContents(descriptorContents.exportAsString());
   }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.facesconfig22.WebFacesConfigDescriptor.exportAsString()

   @Override
   protected void createDefaultConfig(FileResource<?> descriptor)
   {
      WebFacesConfigDescriptor descriptorContents = Descriptors.create(WebFacesConfigDescriptor.class)
               .version("2.2");
      descriptor.setContents(descriptorContents.exportAsString());
   }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.persistence20.PersistenceDescriptor.exportAsString()

                    .clazz(PersistenceDescriptor.class.getName())
                    .jtaDataSource("test-ds")
                .up();


        Asset persistenceAsset = new StringAsset(persistenceDescriptor.exportAsString());
        return base("jsf-jpa-test.war").addAsWebInfResource(persistenceAsset, "persistence.xml")
                .addClasses(DummyManagedBean.class)
                .addAsWebResource(new ClassLoaderAsset(
                        JPAInjectionTest.class.getPackage().getName().replace('.', '/').concat("/").concat("dummy.xhtml")), "dummy.xhtml");
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.persistence21.PersistenceDescriptor.exportAsString()

   @Override
   protected void createDefaultConfig(FileResource<?> descriptor)
   {
      PersistenceDescriptor descriptorContents = Descriptors.create(PersistenceDescriptor.class)
               .version("2.1");
      descriptor.setContents(descriptorContents.exportAsString());
   }

   @Override
   public void saveConfig(final PersistenceDescriptor descriptor)
   {
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.api.portletapp20.PortletDescriptor.exportAsString()

                    .getOrCreatePortletInfo()
                        .title(name)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createSimplePortlet(Class<? extends Portlet> portletClass, String name, String title) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.