Examples of addProperty()


Examples of org.codehaus.groovy.grails.commons.spring.DefaultBeanConfiguration.addProperty()

        return copiedBeanDefinition;
    }

    private void replaceWithScopedProxy(BeanDefinitionRegistry appCtx, String beanName, String targetBeanName) {
        BeanConfiguration scopedProxy = new DefaultBeanConfiguration(ScopedProxyFactoryBean.class);
        scopedProxy.addProperty("targetBeanName", targetBeanName);

        BeanDefinition scopedBeanDefinition = scopedProxy.getBeanDefinition();
        appCtx.registerBeanDefinition(beanName, scopedBeanDefinition);
    }

Examples of org.criticalfailure.torchlight.core.domain.entity.object.ObjectTemplate.addProperty()

        }
        for(ObjectProperty origProp : template.getProperties()) {
            ObjectProperty op = objectPropertyFactory.createObjectProperty(origProp);
            logger.trace("op: " + op);

            ot.addProperty(op);
            op.setObjectTemplate(ot);
        }

        logger.info("Object template created: " + ot);
        return ot;

Examples of org.datanucleus.metadata.ImplementsMetaData.addProperty()

                }
                else if (parent instanceof ImplementsMetaData)
                {
                    ImplementsMetaData implmd = (ImplementsMetaData)parent;
                    PropertyMetaData propmd = newPropertyObject(implmd, attrs);
                    implmd.addProperty(propmd);
                    pushStack(propmd);
                }
                else if (parent instanceof FetchGroupMetaData)
                {
                    FetchGroupMetaData fgmd = (FetchGroupMetaData)parent;

Examples of org.datanucleus.metadata.PersistenceUnitMetaData.addProperty()

            }
            else if (localName.equals("property"))
            {
                // New "property" for the current persistence unit
                PersistenceUnitMetaData pumd = (PersistenceUnitMetaData)getStack();
                pumd.addProperty(getAttr(attrs, "name"), getAttr(attrs, "value"));
            }
            else if (localName.equals("mapping-file"))
            {
                // Processed elsewhere
            }

Examples of org.datanucleus.query.node.Node.addProperty()

                // LOCATE(string_primary, string_primary[, simple_arithmetic_expression])
                // Convert to ({stringExpr}.indexOf(strExpr[, posExpr]) + 1)
                processExpression();
                Node searchNode = stack.pop();
                Node invokeNode = new Node(NodeType.INVOKE, "indexOf");
                invokeNode.addProperty(searchNode);
                if (!p.parseChar(','))
                {
                    throw new QueryCompilerSyntaxException("',' expected", p.getIndex(), p.getInput());
                }

Examples of org.datanucleus.store.StoreData.addProperty()

                Node attr = attributeMap.item(j);
                String attrName = attr.getNodeName();
                String attrValue = attr.getNodeValue();
                if (!attrName.equals("name") && !attrName.equals("type"))
                {
                    data.addProperty(attrName, attrValue);
                }
            }
            classes.add(data);
        }

Examples of org.drools.decisiontable.parser.xls.PropertiesSheetListener.CaseInsensitiveMap.addProperty()

    }

    @Test
    public void testCaseInsensitive() {
        CaseInsensitiveMap map = new PropertiesSheetListener.CaseInsensitiveMap();
        map.addProperty("x3", new String[]{ "hey", "B2" } );
        map.addProperty("x4", new String[]{ "wHee", "C3" } );
        map.addProperty("XXx", new String[]{ "hey2", "D4" } );

        assertNull( map.getProperty("x") );
        assertEquals("hey", map.getSingleProperty("x3"));

Examples of org.dspace.content.packager.PackageParameters.addProperty()

            String popt[] = line.getOptionValues('o');
            for (int i = 0; i < popt.length; ++i)
            {
                String pair[] = popt[i].split("\\=", 2);
                if (pair.length == 2)
                    pkgParams.addProperty(pair[0].trim(), pair[1].trim());
                else if (pair.length == 1)
                    pkgParams.addProperty(pair[0].trim(), "");
                else
                    System.err
                            .println("Warning: Illegal package option format: \""

Examples of org.eclipse.e4.xwt.metadata.IMetaclass.addProperty()

    convertorRegister.register(double.class, String.class,
        NumberToStringConverter.fromDouble(true));

    Class<?> type = org.eclipse.swt.browser.Browser.class;
    IMetaclass browserMetaclass = (IMetaclass) registerMetaclass(type);
    browserMetaclass.addProperty(new DynamicProperty(type, String.class,
        PropertiesConstants.PROPERTY_URL));
    IMetaclass buttonMetaclass = (IMetaclass) registerMetaclass(Button.class);
    buttonMetaclass.addProperty(new DataProperty(IConstants.XAML_COMMAND,
        IUserDataConstants.XWT_COMMAND_KEY, ICommand.class));

Examples of org.eclipse.orion.server.core.resources.ResourceShape.addProperty()

  public void testSerializeSingleProperty() throws Exception {
    // given
    TestResource testResource = new TestResource();
    Serializer<JSONObject> jsonSerializer = new JSONSerializer();
    ResourceShape resourceShape = new ResourceShape();
    resourceShape.addProperty(TestResource.STRING_PROPERTY);

    // when
    JSONObject jsonObject = jsonSerializer.serialize(testResource, resourceShape);
    String jsonString = jsonObject.toString();
    jsonObject = new JSONObject(jsonString);
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.