Examples of apply()


Examples of org.apache.myfaces.view.facelets.TemplateClient.apply()

        //return found;
        TemplateClient ccClient = _isolatedTemplateContext.get(_currentTemplateContext).getCompositeComponentClient();
        if (ccClient != null)
        {
            return ccClient.apply(this, parent, name);
        }
        return false;
    }
   
    private final static class CompositeComponentTemplateManager extends TemplateManager implements TemplateClient
View Full Code Here

Examples of org.apache.myfaces.view.facelets.TemplateManager.apply()

            client = itr.next();
            if (client.equals(owner))
            {
                continue;
            }
            found = client.apply(ctx, parent, name);
        }
        return found;
    }
   
    private final static class TemplateManagerImpl extends TemplateManager implements TemplateClient
View Full Code Here

Examples of org.apache.openejb.util.StringTemplate.apply()

           
            if (stringTemplate == null){
                stringTemplate = template.values().iterator().next();
            }
           
            return  stringTemplate.apply(contextData);
         
        }

        @Override public Map<String, String> getNames(Class interfce, Interface type) {
            Map<String, String> names = new HashMap<String, String>();
View Full Code Here

Examples of org.apache.phoenix.pig.util.QuerySchemaParserFunction.apply()

                pair =  parseFunction.apply(tableSchema);
        this.config.setSchemaType(SchemaType.TABLE);
             } else if (location.startsWith(PHOENIX_QUERY_SCHEME)) {
                this.selectQuery = location.substring(PHOENIX_QUERY_SCHEME.length());
                final QuerySchemaParserFunction queryParseFunction = new QuerySchemaParserFunction(this.config);
                pair = queryParseFunction.apply(this.selectQuery);
                config.setSelectStatement(this.selectQuery);
        this.config.setSchemaType(SchemaType.QUERY);
            }
            this.tableName = pair.getFirst();
            final String selectedColumns = pair.getSecond();
View Full Code Here

Examples of org.apache.phoenix.pig.util.TableSchemaParserFunction.apply()

        Pair<String,String> pair = null;
        try {
            if (location.startsWith(PHOENIX_TABLE_NAME_SCHEME)) {
                String tableSchema = location.substring(PHOENIX_TABLE_NAME_SCHEME.length());
                final TableSchemaParserFunction parseFunction = new TableSchemaParserFunction();
                pair =  parseFunction.apply(tableSchema);
        this.config.setSchemaType(SchemaType.TABLE);
             } else if (location.startsWith(PHOENIX_QUERY_SCHEME)) {
                this.selectQuery = location.substring(PHOENIX_QUERY_SCHEME.length());
                final QuerySchemaParserFunction queryParseFunction = new QuerySchemaParserFunction(this.config);
                pair = queryParseFunction.apply(this.selectQuery);
View Full Code Here

Examples of org.apache.phoenix.schema.ColumnModifier.apply()

        ScanRanges scanRanges = context.getScanRanges();
        PDataType type = scanRanges.getSchema().getField(slotIndex).getDataType();
        ColumnModifier modifier = tableRef.getTable().getPKColumns().get(slotIndex).getColumnModifier();
        if (modifier != null) {
            buf.append('~');
            range = modifier.apply(range, 0, new byte[range.length], 0, range.length);
        }
        Format formatter = context.getConnection().getFormatter(type);
        buf.append(type.toStringLiteral(range, formatter));
    }
   
View Full Code Here

Examples of org.apache.poi.ss.format.CellFormat.apply()

                        attrs = tagStyle(cell, style);
                        //Set the value that is rendered for the cell
                        //also applies the format
                        CellFormat cf = CellFormat.getInstance(
                                style.getDataFormatString());
                        CellFormatResult result = cf.apply(cell);
                        content = result.text;
                        if (content.equals(""))
                            content = "&nbsp;";
                    }
                }
View Full Code Here

Examples of org.apache.provisionr.core.templates.PoolTemplate.apply()

            .imageId("default")
            .file("http://provisionr.incubator.apache.org", destinationPath)
            .createSoftware();

        PoolTemplate template = getPoolTemplateWithId(TEST_POOL_TEMPLATE, 5000);
        final Pool pool = template.apply(Pool.builder()
            .provider(provider)
            .network(network)
            .adminAccess(adminAccess)
            .software(software)
            .hardware(hardware)
View Full Code Here

Examples of org.apache.shindig.social.core.util.NullPropertyFilter.apply()

   * perform the test
   */
  @Test
  public void testApply() {
    PropertyFilter pf = new NullPropertyFilter();
    Assert.assertTrue(pf.apply(null, null, null));
    JSONArray jsa = new JSONArray();
    Assert.assertTrue(pf.apply(null, null, jsa));
    jsa.add("element");
    Assert.assertFalse(pf.apply(null, null, jsa));
    Assert.assertTrue(pf.apply(null, null, Lists.newArrayList()));
View Full Code Here

Examples of org.apache.torque.generator.configuration.controller.Loglevel.apply()

           {
               unitDescriptor.getLoglevel().apply();
           }
           else
           {
               oldLoglevel.apply();
           }
           UnitConfigurationReader configurationReader
                    = new UnitConfigurationReader();

            UnitConfiguration unitConfiguration
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.