Examples of FunctionDescriptor


Examples of com.sun.enterprise.tools.verifier.web.FunctionDescriptor

        NodeList nl = doc.getElementsByTagName(FUNCTION);
        List<FunctionDescriptor> list = new ArrayList<FunctionDescriptor>();
        if (nl != null) {
            int size = nl.getLength();
            for (int i = 0; i < size; i++) {
                list.add(new FunctionDescriptor(nl.item(i)));
            }
        }
        return list.toArray(new FunctionDescriptor[0]);
    }
View Full Code Here

Examples of com.sun.enterprise.tools.verifier.web.FunctionDescriptor

        NodeList nl = doc.getElementsByTagName(FUNCTION);
        List<FunctionDescriptor> list = new ArrayList<FunctionDescriptor>();
        if (nl != null) {
            int size = nl.getLength();
            for (int i = 0; i < size; i++) {
                list.add(new FunctionDescriptor(nl.item(i)));
            }
        }
        return list.toArray(new FunctionDescriptor[0]);
    }
View Full Code Here

Examples of eu.admire.registry.function.FunctionDescriptor

 
 
  @Test
  public void testLookupFunctionName() throws LookupFailedException
  {
    FunctionDescriptor function = registry.lookupFunction("FunctionTest2");
    Assert.assertNotNull(function);
   
    Assert.assertTrue(function.getName().equals(mFunctionDescriptor.getName()));
    Assert.assertTrue(function.getParameters().keySet().size()==mFunctionDescriptor.getParameters().keySet().size());
    Assert.assertTrue(function.getParameters().keySet().size()==mFunctionDescriptor.getParameters().keySet().size());
  }
View Full Code Here

Examples of eu.admire.registry.function.FunctionDescriptor

    // Query results: ?input ?type ?index
    List<ResultSet> results = mApp.queryAll(generateInputQuery,
        generateFunctionReturnQuery);
    URI functionLocation = null;
    FunctionDescriptor io = null;
    Map<String, Parameter> inputs = new HashMap<String, Parameter>();
    Parameter output = null;
    if (results.size() >= 2) {
      ResultSet resultset = results.get(0);
      while (resultset.next()) {
View Full Code Here

Examples of eu.admire.registry.function.FunctionDescriptor

  }

  @Override
  public FunctionDescriptor lookupFunction(String name)
      throws LookupFailedException {
    FunctionDescriptor descriptor = null;
    try {
      LOG.debug("Looking up function '" + name + "' information.");
      String function = mQueries.queryFunction(name);
      if (function != null) {
        LOG.debug("Found function '" + name
View Full Code Here

Examples of eu.admire.registry.function.FunctionDescriptor

                }
            }
            else
            {
                // find out if it's a function
                FunctionDescriptor function = mFunctionRegistry.lookupFunction(name);
                LOG.debug("Function registry returned : " + function);
                if (function != null)
                {
                    DispelObject object = new DispelObject();
                    object.type = DispelObjectType.FUNCTION;
                    object.name = name;
                    object.dispel = lookupImplementation(function.getLocation());
                    usedObjects.add(object);
                }
                else
                {
                    // check if it's stored in-memory
View Full Code Here

Examples of eu.admire.registry.function.FunctionDescriptor

    Map<String, Parameter> inputs = new HashMap<String, Parameter>();
    inputs.put("input1", input1);
    inputs.put("input2", input2);
    inputs.put("input3", input3);

    FunctionDescriptor function;
    URI location = new URI("http://admire.function.examle.org/");
    function = new SimpleRDFFunctionDescriptor("DummyFunction1", inputs, output, location);
    registry.registerFunction(function);

  }
View Full Code Here

Examples of org.teiid.query.function.FunctionDescriptor

        es1.setType(DataTypeManager.DefaultDataClasses.STRING);      
        List elements = new ArrayList();
        elements.add(es1);
       
        Function func = new Function("concat", new Expression[] { es1, new Constant("abc")}); //$NON-NLS-1$ //$NON-NLS-2$
        FunctionDescriptor fd = FakeMetadataFactory.SFM.getSystemFunctionLibrary().findFunction("concat", new Class[] { DataTypeManager.DefaultDataClasses.STRING, DataTypeManager.DefaultDataClasses.STRING }); //$NON-NLS-1$
        func.setFunctionDescriptor(fd);
        func.setType(DataTypeManager.DefaultDataClasses.STRING);
        ExpressionSymbol expr = new ExpressionSymbol("expr", func); //$NON-NLS-1$
        List projectElements = new ArrayList();
        projectElements.add(expr);
View Full Code Here

Examples of org.teiid.query.function.FunctionDescriptor

        es1.setType(DataTypeManager.DefaultDataClasses.STRING);      
        List elements = new ArrayList();
        elements.add(es1);
       
        Function func = new Function("convert", new Expression[] { es1, new Constant("integer")}); //$NON-NLS-1$ //$NON-NLS-2$
        FunctionDescriptor fd = FakeMetadataFactory.SFM.getSystemFunctionLibrary().findFunction("convert", new Class[] { DataTypeManager.DefaultDataClasses.STRING, DataTypeManager.DefaultDataClasses.STRING }); //$NON-NLS-1$
        func.setFunctionDescriptor(fd);
        func.setType(DataTypeManager.DefaultDataClasses.INTEGER);
        ExpressionSymbol expr = new ExpressionSymbol("expr", func); //$NON-NLS-1$
        List projectElements = new ArrayList();
        projectElements.add(expr);
View Full Code Here

Examples of org.teiid.query.function.FunctionDescriptor

        es1.setType(DataTypeManager.DefaultDataClasses.STRING);      
        List elements = new ArrayList();
        elements.add(es1);

        Function func = new Function("lookup", new Expression[] { new Constant("pm1.g1"), new Constant("e2"), new Constant("e1"), es1 }); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
        FunctionDescriptor desc = FakeMetadataFactory.SFM.getSystemFunctionLibrary().findFunction("lookup", new Class[] { String.class, String.class, String.class, String.class } ); //$NON-NLS-1$
        func.setFunctionDescriptor(desc);
        func.setType(DataTypeManager.DefaultDataClasses.STRING);
       
        ExpressionSymbol expr = new ExpressionSymbol("expr", func); //$NON-NLS-1$
        List projectElements = new ArrayList();
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.