Examples of addProperty()


Examples of com.massivecraft.mcore.xlib.gson.JsonObject.addProperty()

    ItemStack[] itemStacks = src.getContents();
   
    if (src instanceof PlayerInventory)
    {
      // Add the size "player"
      jsonInventory.addProperty(SIZE, PLAYER);
     
      // Cast to PlayerInventory
      PlayerInventory psrc = (PlayerInventory)src;
     
      // helmet

Examples of com.mysema.query.codegen.EntityType.addProperty()

                        String name = component.getNodeName();
                        Class<?> clazz = component.getType().getReturnedClass();
                        Type propertyType = getType(pc.getMappedClass(), clazz, name);
                        AnnotatedElement annotated = getAnnotatedElement(pc.getMappedClass(), name);
                        Property property = createProperty(entityType, name, propertyType, annotated);
                        entityType.addProperty(property);
                        // handle component properties
                        EntityType embeddedType = createEmbeddableType(propertyType);
                        while (properties.hasNext()) {
                            handleProperty(embeddedType, clazz, (org.hibernate.mapping.Property) properties.next());
                        }

Examples of com.ning.http.client.providers.netty.NettyAsyncHttpProviderConfig.addProperty()

            AsyncHttpClientConfig.Builder b = new AsyncHttpClientConfig.Builder();
            b.setFollowRedirect(true).setConnectionTimeout(-1).setReadTimeout(-1).setUserAgent("loader/1.1");

            NettyAsyncHttpProviderConfig nettyConfig = new NettyAsyncHttpProviderConfig();

            nettyConfig.addProperty("child.tcpNoDelay", "true");
            nettyConfig.addProperty("child.keepAlive", "true");

            final AsyncHttpClient c = new AsyncHttpClient(b.setAsyncHttpClientProviderConfig(nettyConfig).build());
            Client client = ClientFactory.getDefault().newClient();
            RequestBuilder request = client.newRequestBuilder();

Examples of com.opengamma.batch.domain.RiskRun.addProperty()

    riskRun.setNumRestarts(0);
    riskRun.setComplete(false);
    riskRun.setSnapshotMode(snapshotMode);

    for (Map.Entry<String, String> parameter : batchParameters.entrySet()) {
      riskRun.addProperty(parameter.getKey(), parameter.getValue());
    }

    getHibernateTemplate().save(riskRun);
    getHibernateTemplate().saveOrUpdateAll(riskRun.getProperties());
    getHibernateTemplate().flush();

Examples of com.opensymphony.module.sitemesh.Page.addProperty()

public class ExtractPropertyTag extends PropertyTag {

    public int doEndTag() {
        Page page = getPage();
        page.addProperty("_sitemesh.removefrompage." + getProperty(), "true");
        return super.doEndTag();
    }

}

Examples of com.proofpoint.discovery.client.ServiceDescriptor.ServiceDescriptorBuilder.addProperty()

                .setNodeId(expected.getNodeId())
                .setPool(expected.getPool())
                .setState(expected.getState());

        for (Map.Entry<String, String> entry : expected.getProperties().entrySet()) {
            builder.addProperty(entry.getKey(), entry.getValue());
        }

        assertDescriptorEquals(expected, builder.build());
    }

Examples of com.sgfj.SGFNode.addProperty()

            try {
                node.getCommentProperty();
                fail("SGFPropertyNotFoundException expected!");
            } catch (SGFPropertyNotFoundException e) {
            }
            node.addProperty(new SGFTextProperty(SGFPropertyName.C, "a".toCharArray()));
            node.addProperty(new SGFTextProperty(SGFPropertyName.C, "b".toCharArray()));
            assertEquals("ab", node.getCommentProperty());
        } catch (Exception e) {
            e.printStackTrace();
            fail("No exceptions are expected.");

Examples of com.steadystate.css.dom.CSSStyleDeclarationImpl.addProperty()

            try
            {
                Property property =
                    new Property(name, new CSSValueImpl(value), important);
                this.addLocator(property);
                decl.addProperty(property);
            }
            catch (DOMException e)
            {
                // call ErrorHandler?
            }

Examples of com.sun.appserv.web.cache.CacheManager.addProperty()

        WebProperty[] props = cacheConfig.getWebProperty();
        for (int i = 0; i < props.length; i++) {
            name = props[i].getAttributeValue(WebProperty.NAME);
            value = props[i].getAttributeValue(WebProperty.VALUE);

            manager.addProperty(name, value);
        }
       
        // configure the default cache-helper
        DefaultHelper defHelperConfig = cacheConfig.getDefaultHelper();

Examples of com.sun.enterprise.deployment.EntityManagerReferenceDescriptor.addProperty()

        } else if (TagNames.NAME_VALUE_PAIR_NAME.equals(element.getQName())) {
            propertyName = value;
        } else if (TagNames.NAME_VALUE_PAIR_VALUE.equals(element.getQName())) {
            EntityManagerReferenceDescriptor entityMgrReferenceDescriptor =
                (EntityManagerReferenceDescriptor)getDescriptor();
            entityMgrReferenceDescriptor.addProperty(propertyName, value);
            propertyName = null;
        } else {
            super.setElementValue(element, value);
        }
    }   
TOP
Copyright © 2015 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.