Examples of addProperty()


Examples of org.jaggeryjs.scriptengine.engine.JaggeryContext.addProperty()

        JaggeryContext asyncContext = new JaggeryContext();
        asyncContext.setEngine(currentContext.getEngine());
        asyncContext.setScope(currentContext.getScope());
        asyncContext.setTenantId(currentContext.getTenantId());

        asyncContext.addProperty(Constants.SERVLET_CONTEXT, currentContext.getProperty(Constants.SERVLET_CONTEXT));
        asyncContext.addProperty(LogHostObject.LOG_LEVEL, currentContext.getProperty(LogHostObject.LOG_LEVEL));
        asyncContext.addProperty(FileHostObject.JAVASCRIPT_FILE_MANAGER, currentContext.getProperty(
                FileHostObject.JAVASCRIPT_FILE_MANAGER));
        asyncContext.addProperty(Constants.JAGGERY_CORE_MANAGER, currentContext.getProperty(Constants.JAGGERY_CORE_MANAGER));
        asyncContext.addProperty(Constants.JAGGERY_INCLUDED_SCRIPTS, new HashMap<String, Boolean>());

Examples of org.jahia.services.uicomponents.bean.toolbar.Item.addProperty()

        // add url property
        Property property = new Property();
        property.setName("js.url");
        property.setValue(jsParamName);
        item.addProperty(property);




        return item;

Examples of org.jboss.aesh.cl.internal.ProcessedOption.addProperty()

                                        parseLine.indexOf(EQUALS));
                        String value = parseLine.substring( parseLine.indexOf(EQUALS)+1);
                        if(value.length() < 1)
                            commandLine.setParserException(new OptionParserException("Option "+active.getDisplayName()+", must have a value"));
                        else {
                            active.addProperty(name, value);
                            commandLine.addOption(active);
                            active = null;
                            if(addedArgument)
                                commandLine.setParserException(new ArgumentParserException("An argument was given to an option that do not support it."));
                        }

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.addProperty()

        DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
        ModelNode request;
        try {
            builder.setOperationName("read-children-names");
            builder.addProperty("child-type", "deployment");
            request = builder.buildRequest();
        } catch (OperationFormatException e) {
            throw new IllegalStateException("Failed to build operation", e);
        }

Examples of org.jboss.as.cmp.jdbc.metadata.JDBCValueClassMetaData.addProperty()

        }

        for (String propertyName : properties.keySet()) {
            final JDBCValuePropertyMetaData propertyMetaData = properties.get(propertyName);
            propertyMetaData.setPropertyName(propertyName, valueClass.getJavaType());
            valueClass.addProperty(propertyMetaData);
        }
        return valueClass;
    }

    private static void parseValueProperty(final XMLStreamReader reader, final Map<String, JDBCValuePropertyMetaData> properties) throws XMLStreamException {

Examples of org.jboss.beans.metadata.plugins.AbstractBeanMetaData.addProperty()

   }

   public void propertyDependencyCorrectOrder() throws Throwable
   {
      AbstractBeanMetaData metaData1 = new AbstractBeanMetaData("Name1", SimpleBeanImpl.class.getName());
      metaData1.addProperty(new AbstractPropertyMetaData("string", "String1"));
     
      GenericBeanFactoryMetaData metaData2 = new GenericBeanFactoryMetaData("Name2", SimpleBeanImpl.class.getName());
      metaData2.addBeanProperty(new AbstractPropertyMetaData("string", new AbstractDependencyValueMetaData("Name1", "string")));
     
      setBeanMetaDatas(new BeanMetaData[] { metaData1, metaData2 });

Examples of org.jboss.beans.metadata.plugins.factory.GenericBeanFactoryMetaData.addProperty()

      HashSet attributes1 = new HashSet();
      attributes1.add(new AbstractPropertyMetaData("string", "String1"));
      metaData1.setProperties(attributes1);

      GenericBeanFactoryMetaData metaData2 = new GenericBeanFactoryMetaData("aspect");
      metaData2.addProperty(new AbstractPropertyMetaData("bean", SimpleBeanWithDependencyImpl.class.getName()));
      metaData2.addProperty(new AbstractPropertyMetaData("constructor", new AbstractConstructorMetaData()));
      metaData2.addBeanProperty(new AbstractPropertyMetaData("simpleBean", new AbstractDependencyValueMetaData("simple")));
      metaData2.addBeanProperty(new AbstractPropertyMetaData("string", new AbstractValueMetaData("factory")));
     
      setBeanMetaDatas(new BeanMetaData[] { metaData1, metaData2 });

Examples of org.jboss.dashboard.provider.DefaultDataSetFilter.addProperty()

    }

    @Test
    public void testFilterBySingleNumber() throws Exception {
        DefaultDataSetFilter filter = new DefaultDataSetFilter(dataSet);
        filter.addProperty("id", null, false, null, false, Arrays.asList(25), DataFilter.ALLOW_ANY);
        DataSet result = dataSet.filter(filter);
        assertDataSetValue(result, 0, 0, "25");
    }

    @Test

Examples of org.jboss.dna.graph.request.ReadNodeRequest.addProperty()

        // Create a single federated request...
        final FederatedRequest request = new FederatedRequest(original);
        // And "fork" the original request ...
        final ReadNodeRequest projected = new ReadNodeRequest(location("/a/b/c"), "workspaceM");
        projected.setActualLocationOfNode(Location.create(projected.at().getPath(), UUID.randomUUID()));
        projected.addProperty(property("propA", "valueA"));
        projected.addProperty(property("propB", "valueB"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child1"));
        projected.addChild(child(projected.getActualLocationOfNode(), "child2"));
        request.add(projected, true, false, mirrorProjection);
        request.freeze();

Examples of org.jboss.forge.roaster.model.source.JavaClassSource.addProperty()

   @Test
   public void testChangePropertyType()
   {
      JavaClassSource source = Roaster.create(JavaClassSource.class).setName("MyClass");
      PropertySource<JavaClassSource> property = source.addProperty(Date.class, "myDate");
      property.setType(Timestamp.class);
      Assert.assertEquals("Timestamp", source.getField("myDate").getType().getName());
      Assert.assertEquals("Timestamp", source.getMethod("getMyDate").getReturnType().getName());
      Assert.assertNotNull(source.getMethod("setMyDate", Timestamp.class));
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.