Examples of generate()


Examples of com.cloudinary.Transformation.generate()

public class CloudinaryTransformationTag extends SimpleTagSupport implements DynamicAttributes {
    private Map<String,Object> tagAttrs = new HashMap<String,Object>();

    public void doTag() throws JspException, IOException {
        Transformation transformation = new Transformation().params(tagAttrs);
        getJspContext().getOut().print(transformation.generate());
    }

    @Override
    public void setDynamicAttribute(String uri, String name, Object value) throws JspException {
        tagAttrs.put(name, value);
View Full Code Here

Examples of com.codingcrayons.aspectfaces.AFWeaver.generate()

    AFWeaver.addStaticConfiguration(getConfig(CONFIG));
    AFWeaver afWeaver = new AFWeaver(CONFIG, new JavaInspector(Administrator.class));

    Context context = new Context(Administrator.class.getName(), null, null, null, false);

    String fragment = afWeaver.generate(context, keyA);
    assertEquals(afCache.get(keyA), fragment);
    fragment = afWeaver.generate(context, keyA);
    assertEquals(afCache.get(keyA), fragment);

    fragment = afWeaver.generate(context, new Settings(), keyB);
View Full Code Here

Examples of com.deltaxml.core.DXPConfiguration.generate()

        XdmNode docB = alternate.read();
        XdmNode dxpdoc = dxp.read();

        try {
            DXPConfiguration dxpconfig = new DXPConfiguration(S9apiUtils.xdmToInputSource(runtime, dxpdoc), null, false);
            PipelinedComparator comparator = dxpconfig.generate();

            // FIXME: Grotesque hackery!

            StringWriter sw = new StringWriter();
            Serializer serializer = new Serializer();
View Full Code Here

Examples of com.digitolio.jdbi.auto.SqlDeleteByPk.generate()

    private void addDeleteById(JDefinedClass classDefinition, Table table, Class clazz) {
        JMethod method = classDefinition.method(JMod.ABSTRACT, Integer.class, "delete" + clazz.getSimpleName());
        JAnnotationUse deleteAnnotation = method.annotate(SqlUpdate.class);
        SqlDeleteByPk sqlDeleteById = new SqlDeleteByPk(table);
        deleteAnnotation.param("value", sqlDeleteById.generate(new Binding()));
        for (Column column : table.getPrimaryKeyColumns()) {
            JVar param = method.param(column.getField().getType(), uncapitalize(column.getFieldName()));
            JAnnotationUse bind = param.annotate(Bind.class);
            bind.param("value", uncapitalize(column.getFieldName()));
        }
View Full Code Here

Examples of com.digitolio.jdbi.auto.SqlSelectByPK.generate()

        method.type();
        method.annotate(StrategyAwareMapBean.class);
        method.annotate(SingleValueResult.class);
        JAnnotationUse selectAnnotation = method.annotate(SqlQuery.class);
        SqlSelectByPK sqlSelectById = new SqlSelectByPK(table);
        selectAnnotation.param("value", sqlSelectById.generate(new Binding()));
        for (Column column : table.getPrimaryKeyColumns()) {
            JVar param = method.param(column.getField().getType(), uncapitalize(column.getFieldName()));
            JAnnotationUse bind = param.annotate(Bind.class);
            bind.param("value", uncapitalize(column.getFieldName()));
        }
View Full Code Here

Examples of com.dtolabs.rundeck.core.common.NodesYamlGenerator.generate()

        NodesYamlGenerator nodesYamlGenerator = new NodesYamlGenerator(baos);
        final NodeEntryImpl nodeEntry = new NodeEntryImpl();
        nodeEntry.setNodename("test1");
        nodeEntry.setHostname("testhostname");
        nodesYamlGenerator.addNode(nodeEntry);
        nodesYamlGenerator.generate();
        final byte[] bytes = baos.toByteArray();
        assertNotNull(bytes);
        assertTrue(bytes.length > 0);
    }
    public void testShouldSupportWriter() throws Exception{
View Full Code Here

Examples of com.dtolabs.shared.resources.ResourceXMLGenerator.generate()

    public void generateDocument(final INodeSet nodeset, final OutputStream stream) throws
        ResourceFormatGeneratorException,
        IOException {
        final ResourceXMLGenerator resourceXMLGenerator = new ResourceXMLGenerator(stream);
        resourceXMLGenerator.addNodes(nodeset.getNodes());
        resourceXMLGenerator.generate();
    }

    private static final Description DESCRIPTION = DescriptionBuilder.builder()
            .name(SERVICE_PROVIDER_TYPE)
            .title("Resource XML")
View Full Code Here

Examples of com.dtrules.samples.bookpreview.TestCaseGen_BookPreview.generate()

  }
 
  DataObj generate(){
      TestCaseGen_BookPreview gen = new TestCaseGen_BookPreview();
      try{
          return gen.generate();
      }catch(Exception e){
          return generate();
      }
  }
 
View Full Code Here

Examples of com.envoisolutions.sxc.jaxb.JAXBGenerator.generate()

            ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            if (classLoader == null) classLoader = getClass().getClassLoader();
            classLoader = new URLClassLoader(new URL[]{new File(directory).toURI().toURL()}, classLoader);
            jaxbGenerator.setClassLoader(classLoader);

            jaxbGenerator.generate();
        } catch (JAXBException e) {
            throw new MojoExecutionException("Error generating JaxB parser: " + e.getMessage(), e);
        } catch (MalformedURLException e) {
            throw new MojoExecutionException("Invalid build outputDirectory " + project.getBuild().getOutputDirectory());
        }
View Full Code Here

Examples of com.et.ar.annotations.Id.generate()

       
        for (Field f: clasz.getDeclaredFields()){
            Id id = f.getAnnotation(Id.class);
            if (id != null){
                orm.id = f.getName();
                orm.idGeneratorType = id.generate();
                orm.idType = f.getType();
            }
            Column column = f.getAnnotation(Column.class);
            if (column != null){
                ColumnField field = new ColumnField();
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.