Examples of addProperty()


Examples of gov.nasa.arc.mct.components.ExtendedProperties.addProperty()

   
  }
 
  private void persistSettings() {
    ExtendedProperties props = view.getViewProperties();
    props.addProperty("NonTimeIndependentMin", "" + independentBounds[0]);
    props.addProperty("NonTimeIndependentMax", "" + independentBounds[1]);
    props.addProperty("NonTimeDependentMin",   "" + dependentBounds  [0]);
    props.addProperty("NonTimeDependentMax",   "" + dependentBounds  [1]);
    props.addProperty("NonTimeDataPoints",     "" + dataPoints);
    view.getManifestedComponent().save();

Examples of hudson.matrix.MatrixProject.addProperty()

    }

    @Bug(8790)
    public void testFlyweightTasks() throws Exception {
        MatrixProject m = createMatrixProject();
        m.addProperty(new ParametersDefinitionProperty(
                new StringParameterDefinition("FOO","value")
        ));
        m.getBuildersList().add(new Shell("sleep 3"));
        m.setAxes(new AxisList(new TextAxis("DoesntMatter", "aaa","bbb")));

Examples of hudson.model.AbstractProject.addProperty()

                AbstractProject project = (AbstractProject) item;
                DiskUsageProperty property = (DiskUsageProperty) project.getProperty(DiskUsageProperty.class);
                if(property==null){
                    try {
                        property = new DiskUsageProperty();
                        project.addProperty(property);

                    } catch (IOException ex) {
                        Logger.getLogger(DiskUsageItemListener.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }

Examples of hudson.model.FreeStyleProject.addProperty()

        String javaVar = javaHome.substring(0, 3);
        JDK varJDK = new JDK("varJDK", javaHomeVar);
        hudson.getJDKs().add(varJDK);

        FreeStyleProject project = createFreeStyleProject();
        project.addProperty(new ParametersDefinitionProperty(
                new StringParameterDefinition("VAR_MAVEN", "XXX"),
                new StringParameterDefinition("VAR_JAVA", "XXX")));
        project.getBuildersList().add(new Maven("--help", varMaven.getName()));
        project.setJDK(varJDK);

Examples of hudson.model.Project.addProperty()

public class ProjectSpecificParameterValuesActionTransformTest extends HudsonTestCase {
    public void test() throws IOException {
        Project project = createFreeStyleProject("project");

        project.addProperty(new ParametersDefinitionProperty(
                    new BooleanParameterDefinition("key1", false, "derp")
                    ));

        ParametersAction action = new ParametersAction(
                new StringParameterValue("key1", "true")

Examples of hudson.model.User.addProperty()

            throws AddressException, IOException, UnsupportedEncodingException {
        Mailer.descriptor().setDefaultSuffix("@gmail.com");
        User u = User.get("advantiss");
        u.setFullName("Peter Samoshkin");
        Mailer.UserProperty prop = new Mailer.UserProperty("advantiss@xxx.com");
        u.addProperty(prop);

        InternetAddress[] internetAddresses = emailRecipientUtils.convertRecipientString("advantiss", envVars).toArray(new InternetAddress[0]);

        assertEquals(1, internetAddresses.length);
        assertEquals("advantiss@xxx.com", internetAddresses[0].getAddress());

Examples of io.airlift.discovery.client.ServiceAnnouncement.ServiceAnnouncementBuilder.addProperty()

        // presto announcement
        ServiceAnnouncementBuilder prestoAnnouncement = discoveryBinder(binder).bindHttpAnnouncement("presto")
                .addProperty("node_version", nodeVersion.toString());

        if (serverConfig.getDataSources() != null) {
            prestoAnnouncement.addProperty("datasources", serverConfig.getDataSources());
        }

        bindDataSource(binder, "presto-metastore", ForMetadata.class, ForShardManager.class);

        // statement resource

Examples of io.airlift.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 it.freedomotic.events.GenericEvent.addProperty()

        c.setProperty("seven", "= seven=\"Current temperature is @event.temperature celsius degrees. In fahrenheit is \" + Math.floor(((@event.temperature+40)*1.8)-40) + \" degrees.\";");
        c.setProperty("eight", "= eight=10+5;"); //this always returns a double
        c.setProperty("nine", "= nine=Math.floor(10+5).toString();"); //print the number as is to avoid conversion to double
        //c.setProperty("ten", "= if (@event.temperature<= 20) ten=2; else what=@event.temperature/10;");
        GenericEvent event = new GenericEvent(this);
        event.addProperty("zone", "Kitchen");
        event.addProperty("temperature", "25");
        event.addProperty("object.name", "Indoor Thermometer");
        Resolver resolver = new Resolver();
        resolver.addContext("event.", event.getPayload());
        Command result = new Command();

Examples of it.freedomotic.events.ProtocolRead.addProperty()

        //reconstruct freedomotic object address
        String address = board.getIpAddress() + ":" + board.getPort() + ":" + id + ":" + slot;
        LOG.info("Sending Souliss protocol read event for object address '" + address + "'");
        //building the event ProtocolRead
        ProtocolRead event = new ProtocolRead(this, "souliss", address);
        event.addProperty("souliss.typical", typical);
        event.addProperty("souliss.val", val);
        switch (Integer.parseInt(typical)) {
            case 11:
                if (val.equals("0")) {
                    event.addProperty("isOn", "false");
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.