Package java.util

Examples of java.util.WeakHashMap$ValueIterator


            builder = new CMBuilder(nodeFactory);
        }
        fCMBuilder = builder;
        System.out.println("flag1");
        fSchemaHandler = new XSDHandler(fGrammarBucket);
        fJAXPCache = new WeakHashMap();
       
        fSettingsChanged = true;
    }
View Full Code Here


    /**
     * Puts an ElementsByTagName object in the cache.
     */
    public void putElementsByTagName(Node n, String ln, ElementsByTagName l) {
        if (elementsByTagNames == null) {
            elementsByTagNames = new WeakHashMap(11);
        }
        SoftDoublyIndexedTable t;
        t = (SoftDoublyIndexedTable)elementsByTagNames.get(n);
        if (t == null) {
            elementsByTagNames.put(n, t = new SoftDoublyIndexedTable());
View Full Code Here

         indexes.put(name, info);
         patternMap.put(pattern, info);

         Map tbl = (Map)bestIndexers.get(style);
         if ( tbl == null ) {
            tbl = new WeakHashMap();
            bestIndexers.put(style, tbl);
         }
         tbl.clear();
         idxList = (IndexerInfo[])indexes.values().toArray(EmptyIndexerInfo);
        
View Full Code Here

      String style = idx.style;
      patternMap.remove(idx.pattern);

      Map tbl = (Map)bestIndexers.get(style);
      if ( tbl == null ) {
         tbl = new WeakHashMap();
         bestIndexers.put(style, tbl);
      }
      tbl.clear();

      idxList = (IndexerInfo[])indexes.values().toArray(EmptyIndexerInfo);
View Full Code Here

    /**
     * Puts an ElementsByTagName object in the cache.
     */
    public void putElementsByTagName(Node n, String ln, ElementsByTagName l) {
        if (elementsByTagNames == null) {
            elementsByTagNames = new WeakHashMap(11);
        }
        SoftDoublyIndexedTable t;
        t = (SoftDoublyIndexedTable)elementsByTagNames.get(n);
        if (t == null) {
            elementsByTagNames.put(n, t = new SoftDoublyIndexedTable());
View Full Code Here

     * Puts an ElementsByTagNameNS object in the cache.
     */
    public void putElementsByTagNameNS(Node n, String ns, String ln,
                                       ElementsByTagNameNS l) {
        if (elementsByTagNamesNS == null) {
            elementsByTagNamesNS = new WeakHashMap(11);
        }
        SoftDoublyIndexedTable t;
        t = (SoftDoublyIndexedTable)elementsByTagNamesNS.get(n);
        if (t == null) {
            elementsByTagNamesNS.put(n, t = new SoftDoublyIndexedTable());
View Full Code Here

            if (configuration == null) {
                configuration = StAXParserConfiguration.DEFAULT;
            }
            Map map = (Map)inputFactoryPerCLMap.get(configuration);
            if (map == null) {
                map = Collections.synchronizedMap(new WeakHashMap());
                inputFactoryPerCLMap.put(configuration, map);
                factory = null;
            } else {
                factory = (XMLInputFactory)map.get(cl);
            }
View Full Code Here

            if (configuration == null) {
                configuration = StAXWriterConfiguration.DEFAULT;
            }
            Map map = (Map)outputFactoryPerCLMap.get(configuration);
            if (map == null) {
                map = Collections.synchronizedMap(new WeakHashMap());
                outputFactoryPerCLMap.put(configuration, map);
                factory = null;
            } else {
                factory = (XMLOutputFactory)map.get(cl);
            }
View Full Code Here

            } else if (t == Hashtable.class) {
                m = new Hashtable();
            } else if (t == TreeMap.class || t == SortedMap.class) {
                m = new TreeMap();
            } else if (t == WeakHashMap.class) {
                m = new WeakHashMap();
            } else {
                throw MESSAGES.unsupportedFieldType(v, f, t);
            }
            return parseMap(v, m, elementValueType, f, classLoader);
        }
View Full Code Here

            initializer = cls.getDeclaredMethod("doAnalyze");
        } catch (NoSuchMethodException ex) {
            throw JacORBMessages.MESSAGES.unexpectedException(ex);
        }

        workDone = new WeakHashMap();
        workInProgress = new HashMap();
    }
View Full Code Here

TOP

Related Classes of java.util.WeakHashMap$ValueIterator

Copyright © 2018 www.massapicom. 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.