Examples of addProperty()


Examples of org.apache.jackrabbit.spi.Batch.addProperty()

            rs.getNodeInfo(si, getNodeId(testPath));
        } catch (RepositoryException e) {
            Batch b = rs.createBatch(si, getNodeId("/"));
            b.addNode(getNodeId("/"), resolver.getQName("test"), NameConstants.NT_UNSTRUCTURED, null);
            QValueFactory qvf = rs.getQValueFactory();
            b.addProperty(getNodeId("/test"), resolver.getQName("prop"), qvf.create("value", PropertyType.STRING));
            b.addProperty(getNodeId("/test"), resolver.getQName("propMV"), new QValue[] {qvf.create(1), qvf.create(2)});
            rs.submit(b);
        }
    }

Examples of org.apache.jetspeed.om.page.Fragment.addProperty()

        f.setName("TestPortlet");
        Property p = pageManager.newProperty();
        p.setLayout("TestLayout");
        p.setName("row");
        p.setValue("0");
        f.addProperty(p);
        p = pageManager.newProperty();
        p.setLayout("TestLayout");
        p.setName("column");
        p.setValue("0");
        f.addProperty(p);

Examples of org.apache.jmeter.config.ConfigTestElement.addProperty()

    }
   
    public void testRecovery() throws Exception
    {
        ConfigTestElement config = new ConfigTestElement();
        config.addProperty(new StringProperty("name","config"));
        config.setRunningVersion(true);
        LoginConfig loginConfig = new LoginConfig();
        loginConfig.setUsername("user1");
        loginConfig.setPassword("pass1");
        assertTrue(config.getProperty("login") instanceof NullProperty);

Examples of org.apache.jmeter.sampler.DebugSampler.addProperty()

        headerManager.add(new Header("1stLevelTestHeader", "testValue1"));
        HeaderManager headerManager2 = new HeaderManager();
        headerManager2.add(new Header("2ndLevelTestHeader", "testValue2"));

        DebugSampler debugSampler = new DebugSampler();
        debugSampler.addProperty(new StringProperty("name", "DebugSampler_50799"));
        debugSampler.setRunningVersion(true);
        assertTrue(debugSampler.getProperty("HeaderManager.headers") instanceof NullProperty);
        debugSampler.addTestElement(headerManager);
        assertFalse(debugSampler.getProperty("HeaderManager.headers") instanceof NullProperty);
        assertEquals(debugSampler.getProperty("HeaderManager.headers").getStringValue() ,"[1stLevelTestHeader  testValue1]");

Examples of org.apache.jmeter.testelement.property.MultiProperty.addProperty()

                MultiProperty multiVal = (MultiProperty) val;
                Collection<JMeterProperty> newValues = replaceValues(multiVal.iterator(), transform);
                multiVal.clear();
                Iterator<JMeterProperty> propIter = newValues.iterator();
                while (propIter.hasNext()) {
                    multiVal.addProperty(propIter.next());
                }
                if (log.isDebugEnabled()) {
                    log.debug("Replacement result: " + multiVal);
                }
            } else {

Examples of org.apache.jmeter.testelement.property.TestElementProperty.addProperty()

                            subProp.setName("Header.name");// $NON-NLS-1$
                            // Must be same as Header.HNAME - but that is built
                            // later
                        }
                    }
                    prop.addProperty(subProp);
                }
                reader.moveUp();
            }
            return prop;
        } catch (InstantiationException e) {

Examples of org.apache.juddi.datatype.response.RegistryInfo.addProperty()

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,PropertyHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(PropertyHandler.TAG_NAME);
      obj.addProperty((Property)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }

Examples of org.apache.lucene.facet.index.attributes.CategoryAttribute.addProperty()

     * properties, but it is kept here for two reasons: 1) Using the array
     * version has some performance cost, and 2) it is expected that most
     * calls will be for this version (single property).
     */
    CategoryAttribute ca = mapCategoryAttribute(categoryPath);
    ca.addProperty(property);
    return ca;
  }

  /**
   * Add a category with multiple properties.

Examples of org.apache.lucene.facet.index.attributes.CategoryAttributeImpl.addProperty()

   
    CategoryContainer cc = new CategoryContainer();
    EnhancementsDocumentBuilder builder = new EnhancementsDocumentBuilder(taxoW, iParams);
    for (int i = 1; i <= NUM_CATEGORIES; i++) {
      CategoryAttributeImpl ca = new CategoryAttributeImpl(new CategoryPath(Integer.toString(i)));
      ca.addProperty(new CustomProperty(i));
     
      cc.addCategory(ca);
    }
    builder.setCategories(cc);
    w.addDocument(builder.build(new Document()));

Examples of org.apache.maven.archiva.configuration.ProxyConnectorConfiguration.addProperty()

        action.prepare();
        ProxyConnectorConfiguration connector = action.getConnector();
        assertInitialProxyConnector( connector );

        // Add some arbitrary properties.
        connector.addProperty( "username", "general-tso" );
        connector.addProperty( "password", "chicken" );

        // Perform Test w/no property key.
        preRequest( action );
        String status = action.removeProperty();
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.