Examples of values()


Examples of java.util.jar.Attributes.values()

        String notset = CoreMessages.notSet().getMessage();

        // Mule Version, Timestamp, and Server ID
        Manifest mf = MuleManifest.getManifest();
        Attributes att = mf.getMainAttributes();
        if (att.values().size() > 0)
        {
            header.add(StringUtils.defaultString(MuleManifest.getProductDescription(), notset));
            header.add(CoreMessages.version().getMessage() + " Build: "
                    + StringUtils.defaultString(MuleManifest.getBuildNumber(), notset));
View Full Code Here

Examples of javax.json.JsonObject.values()

                    return NO_ATTRIBUTES;
                }

                if (value.getValueType() == ValueType.OBJECT) {
                    JsonObject jsonObject = (JsonObject) value;
                    ArrayList<Attribute> attributesList = new ArrayList<Attribute>(jsonObject.values().size());

                    Iterator<Entry<String, JsonValue>> iter = jsonObject.entrySet().iterator();
                    while (iter.hasNext()) {
                        Entry<String, JsonValue> nextEntry = iter.next();
                        JsonValue nextValue = nextEntry.getValue();
View Full Code Here

Examples of javax.management.openmbean.CompositeData.values()

            if (i == 0) {
                echo("Columns: " + cdata.getCompositeType().keySet());
            }
            messageIDs[i] = (String)cdata.get("JMSMessageID");
            echo("message " + i + " : " + cdata.values());
        }

        TabularData table = proxy.browseAsTable();
        echo("Found tabular data: " + table);
        assertTrue("Table should not be empty!", table.size() > 0);
View Full Code Here

Examples of javax.management.openmbean.CompositeDataSupport.values()

         itemNames, itemDescriptions, itemTypes);
      HashMap map = new HashMap();
      map.put("name1", "value1");
      map.put("name2", new Integer(2));
      CompositeDataSupport data = new CompositeDataSupport(compositeType, map);
      Collection values = data.values();
      assertTrue("data values contain 2 elements", values.size() == 2);
      assertTrue("data values should have value1", values.contains("value1"));
      assertTrue("data values should have 2", values.contains(new Integer(2)));
      assertTrue("data values should not have name1", values.contains("name1") == false);
      assertTrue("data values should not have null", values.contains(null) == false);
View Full Code Here

Examples of javax.management.openmbean.TabularData.values()

                                                                 getTestQueueName()));

            // Find the first message on the queue
            TabularData data = managedQueue.viewMessages(1L, 2L);

            Iterator values = data.values().iterator();
            assertTrue("No Messages found via JMX", values.hasNext());

            // Get its message ID
            Long msgID = (Long) ((CompositeDataSupport) values.next()).get("AMQ MessageId");
View Full Code Here

Examples of javax.management.openmbean.TabularDataSupport.values()

            //verify the DLE exchange exists, has the expected type, and a single binding for the DLQ
            ManagedExchange exchange = jmxUtils.getManagedExchange(QUEUE_WITH_DLQ_NAME + "_DLE");
            assertEquals("Wrong exchange type", "fanout", exchange.getExchangeType());
            TabularDataSupport bindings = (TabularDataSupport) exchange.bindings();
            assertEquals(1, bindings.size());
            for(Object o : bindings.values())
            {
                CompositeData binding = (CompositeData) o;

                String bindingKey = (String) binding.get(ManagedExchange.BINDING_KEY);
                String[] queueNames = (String[]) binding.get(ManagedExchange.QUEUE_NAMES);
View Full Code Here

Examples of javax.script.Bindings.values()

        throw e;
    }

    PyFunction findDecoratedFunction(ScriptEngine engine, String name) {
        Bindings bindings = engine.getBindings(ScriptContext.ENGINE_SCOPE);
        for (Object o : bindings.values()) {
            if (o instanceof PyFunction) {
                PyFunction f = (PyFunction) o;
                PyObject d = f.__findattr__("__decorator__");
                if (d instanceof PyFunction && name.equals(((PyFunction)d).__name__)) {
                    return f;
View Full Code Here

Examples of jsprit.core.problem.Skills.values()

    @Override
    public void visit(TourActivity activity) {
        if(activity instanceof TourActivity.JobActivity){
            Skills skills = ((TourActivity.JobActivity) activity).getJob().getRequiredSkills();
            skillBuilder.addAllSkills(skills.values());
        }
    }

    @Override
    public void finish() {
View Full Code Here

Examples of krati.retention.clock.Clock.values()

        scnValues[0] = scnValues[0] + 1;
        c = new Clock(scnValues);
        assertTrue(c.after(c1));
        assertTrue(c1.before(c));
       
        scnValues[1] = c.values()[1] - 1;
        c = new Clock(scnValues);
       
        assertEquals(Occurred.CONCURRENTLY, c.compareTo(c1));
       
        long[] scnValuesNew = new long[2];
View Full Code Here

Examples of logformat.slog2.CategoryMap.values()

        {
            PipedInputLog.this.next_kind_idx  = kind_idx;

            CategoryMap  objdefs;
            objdefs     = PipedInputLog.super.getCategoryMap();
            objdef_itr  = objdefs.values().iterator();
            if ( objdef_itr.hasNext() )
                next_objdef = (Category) objdef_itr.next();
            else
                next_objdef = null;
        }
View Full Code Here
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.