Examples of containsValue()


Examples of org.apache.pdfbox.cos.COSDictionary.containsValue()

     */
    private COSName add(COSName kind, String prefix, COSObjectable object)
    {
        // return the existing key if the item exists already
        COSDictionary dict = (COSDictionary)resources.getDictionaryObject(kind);
        if (dict != null && dict.containsValue(object.getCOSObject()))
        {
            return dict.getKeyForValue(object.getCOSObject());
        }

        // add the item with a new key
View Full Code Here

Examples of org.apache.poi.hpsf.CustomProperties.containsValue()

        assertTrue(customProperties.containsKey("Boolean"));
       
        // Check the values went in
        assertEquals("Wert \u00e4", customProperties.get("Schl\u00fcssel \u00e4"));
        assertEquals(Boolean.TRUE, customProperties.get("Boolean"));
        assertTrue(customProperties.containsValue(Boolean.TRUE));
        assertTrue(customProperties.containsValue("Wert \u00e4"));
       
        // Check that things that aren't in aren't in
        assertFalse(customProperties.containsKey("False Boolean"));
        assertFalse(customProperties.containsValue(Boolean.FALSE));
View Full Code Here

Examples of org.apache.tapestry.services.PersistentFieldBundle.containsValue()

        PersistentFieldChange change = new PersistentFieldChangeImpl("", "field", value);
        Collection<PersistentFieldChange> changes = Arrays.asList(change);

        PersistentFieldBundle bundle = new PersistentFieldBundleImpl(changes);

        assertTrue(bundle.containsValue("", "field"));
        assertTrue(bundle.containsValue(null, "field"));

        assertSame(bundle.getValue("", "field"), value);
        assertSame(bundle.getValue(null, "field"), value);
View Full Code Here

Examples of org.apache.tapestry5.services.PersistentFieldBundle.containsValue()

        PersistentFieldChange change = new PersistentFieldChangeImpl("", "field", value);
        Collection<PersistentFieldChange> changes = Arrays.asList(change);

        PersistentFieldBundle bundle = new PersistentFieldBundleImpl(changes);

        assertTrue(bundle.containsValue("", "field"));
        assertTrue(bundle.containsValue(null, "field"));

        assertSame(bundle.getValue("", "field"), value);
        assertSame(bundle.getValue(null, "field"), value);
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.NamespaceMap.containsValue()

                }

                // tns: is conventional, and besides we have unit tests that are hardcoded to it.
                if (!xmlsNamespaceMap.containsKey(WSDLConstants.CONVENTIONAL_TNS_PREFIX)
                // if some wants something other than TNS, they get it.
                    && !xmlsNamespaceMap.containsValue(entry.getKey())) {
                    xmlsNamespaceMap.add(WSDLConstants.CONVENTIONAL_TNS_PREFIX, entry.getKey());
                }

                // ditto for xsd: instead of just namespace= for the schema schema.
                if (!xmlsNamespaceMap.containsKey("xsd")
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.NamespaceMap.containsValue()

                // We prefer explicit prefixes over those generated in the types.
                // This loop may have intended to support prefixes from individual aegis files,
                // but that isn't a good idea.
                for (Iterator itr = e.getAdditionalNamespaces().iterator(); itr.hasNext();) {
                    Namespace n = (Namespace) itr.next();
                    if (!nsMap.containsValue(n.getURI())) {
                        nsMap.add(n.getPrefix(), n.getURI());
                    }
                }

                org.w3c.dom.Document schema = new DOMOutputter().output(new Document(e));
View Full Code Here

Examples of org.castor.cache.Cache.containsValue()

    }

    public void testContainsValue() throws CacheAcquireException {
        Cache cache = initialize();

        assertTrue(cache.containsValue("first value"));
        assertTrue(cache.containsValue("second value"));
        assertTrue(cache.containsValue("third value"));
        assertFalse(cache.containsValue("fourth value"));
        assertFalse(cache.containsValue("fifth value"));
    }
View Full Code Here

Examples of org.dcm4che3.data.Attributes.containsValue()

        int grayscaleValue = 0xffff;
        if (param instanceof DicomImageReadParam) {
            DicomImageReadParam dParam = (DicomImageReadParam) param;
            Attributes psAttrs = dParam.getPresentationState();
            if (psAttrs != null) {
                if (psAttrs.containsValue(Tag.OverlayData | gg0000))
                    ovlyAttrs = psAttrs;
                grayscaleValue = Overlays.getRecommendedDisplayGrayscaleValue(
                        psAttrs, gg0000);
            } else
                grayscaleValue = dParam.getOverlayGrayscaleValue();
View Full Code Here

Examples of org.fjank.jcache.CacheRegion.containsValue()

        return acc.isPresent(key);
    }

    public boolean containsValue(Object value) {
       CacheRegion region = acc.getRegion();
       return region.containsValue(value);
    }

    /**
     * Returns the value to which this map maps the specified key.  Returns
     * <tt>null</tt> if the map contains no mapping for this key. 
View Full Code Here

Examples of org.jboss.metatype.api.values.CompositeValue.containsValue()

      SimpleValue nullInteger = initIntegerNull();
      CompositeMetaType compositeMetaType = initCompositeMetaType();
      Map<String, MetaValue> map = initMapValues();
      CompositeValue v = new CompositeValueSupport(compositeMetaType, map);

      assertTrue("data should contain value value1", v.containsValue(value1));
      assertTrue("data should contain value 2", v.containsValue(integer2));
      assertFalse("data should not contain value name1", v.containsValue(name1));
      assertFalse("data should not contain key null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));
      assertFalse("data should not contain key <empty>", v.containsValue(emptyString));
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.