Examples of values()


Examples of org.apache.openjpa.audit.Auditable.values()

    Auditable auditable = cls.getAnnotation(Auditable.class);
    if (auditable == null) {
      return;
    }
   
    List<AuditableOperation> events = Arrays.asList(auditable.values());
    if (events.contains(AuditableOperation.ALL) || events.contains(AuditableOperation.CREATE)) {
      _newTypes.add(cls);
      _allTypes.add(cls);
    }
    if (events.contains(AuditableOperation.ALL) || events.contains(AuditableOperation.UPDATE)) {
View Full Code Here

Examples of org.apache.openjpa.util.CacheMap.values()

        // unlikely that this method will be called in a performance intensive
        // environment. In any event applications can revert to the old behavior
        // by simply calling removeAll().
        CacheMap orig = _cache;
        _cache = newCacheMap();
        for (Object o : orig.values()) {
            Class<?> curClass = ((DataCachePCData) o).getType();
            if (subs) {
                if (cls == curClass || (cls != null && cls.isAssignableFrom(curClass))) {
                    orig.remove(((DataCachePCData) o).getId());
                }
View Full Code Here

Examples of org.apache.pig.data.InternalMap.values()

        FindQuantiles fq = new FindQuantiles();
       
        Map<String, Object> res = fq.exec(in);
       
        InternalMap weightedPartsData = (InternalMap) res.get(FindQuantiles.WEIGHTED_PARTS);
        Iterator<Object> it = weightedPartsData.values().iterator();
        float[] probVec = getProbVec((Tuple)it.next());
        new DiscreteProbabilitySampleGenerator(probVec);
        float sum = 0.0f;
        for (float f : probVec) {
            sum += f;
View Full Code Here

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

                if (cps == null)
                    /* The document does not have custom properties. */
                    return;

                for (CustomProperty cp : cps.values()) {
                    cp.getName();
                    cp.getValue();
                }
            }
        };
View Full Code Here

Examples of org.apache.sling.api.resource.ValueMap.values()

        final ValueMap vm = this.createPropertyMap(this.rootNode);
        assertTrue(vm.containsKey(TEST_PATH));
        search(vm.keySet().iterator(), TEST_PATH);
        search(vm.keySet().iterator(), PROP1);
        search(vm.keySet().iterator(), PROP2);
        search(vm.values().iterator(), VALUE);
        search(vm.values().iterator(), VALUE1);
        search(vm.values().iterator(), VALUE2);
    }

    public void testContainsKeyEmpty() {
View Full Code Here

Examples of org.apache.sling.models.annotations.Default.values()

        if (type instanceof Class) {
            Class<?> injectedClass = (Class<?>) type;
            if (injectedClass.isArray()) {
                Class<?> componentType = injectedClass.getComponentType();
                if (componentType == String.class) {
                    value = defaultAnnotation.values();
                } else if (componentType == Integer.TYPE) {
                    value = defaultAnnotation.intValues();
                } else if (componentType == Integer.class) {
                    value = ArrayUtils.toObject(defaultAnnotation.intValues());
                } else if (componentType == Long.TYPE) {
View Full Code Here

Examples of org.apache.sling.resourceresolver.impl.tree.ResourceProviderEntry.values()

            log.debug(" Provider Set for path {} {} ", path, Arrays
                    .toString(providersSet.toArray(new ProviderHandler[providersSet.size()])));
        }
        this.iteratorPath = path;
        providers = providersSet.iterator();
        baseEntryValues = (atPath != null) ? atPath.values().iterator() : null;
        delayed = new HashMap<String, Resource>();
        visited = new HashSet<String>();
        nextResource = seek();
    }
View Full Code Here

Examples of org.apache.torque.generator.option.Options.values()

        if (optionsInContext)
        {
            // Only consider options visible from the current namespace.
            Options visibleOptions
                    = controllerState.getVisibleOptions();
            for (Option option : visibleOptions.values())
            {
                QualifiedName qualifiedName = option.getQualifiedName();
                context.put(qualifiedName.getName(), option.getValue());
            }
            log.debug("Put options in context " + visibleOptions.keySet());
View Full Code Here

Examples of org.apache.tuscany.core.invocation.MethodHashMap.values()

        if (policyBuilder != null) {
            // invoke the reference builder to handle additional policy metadata
            policyBuilder.build(configuredService);
        }
        // add tail interceptor
        for (InvocationConfiguration iConfig : (Collection<InvocationConfiguration>) iConfigMap.values()) {
            iConfig.addTargetInterceptor(new InvokerInterceptor());
        }

        externalService.getConfiguredService().setContextFactory(config);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.search.DocumentMap.values()

        } catch (Exception e) {
            e.printStackTrace();
        }

        // FileWriter writer = new FileWriter("indexed.txt");
        for (Document doc : docs.values()) {
            org.apache.lucene.document.Document luceneDoc = doc.createLuceneDocument();
            // writer.write(luceneDoc.toString());
            // writer.write('\n');
            // writer.write('\n');
           
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.