Examples of ListOrderedMap


Examples of net.asfun.jangod.util.ListOrderedMap

    }
    if ( runtime.get(CHILD_FLAG, 1) != null &&
        runtime.get(INSERT_FLAG, 1) == null) {
      StringBuilder sb = new StringBuilder((String)fetchRuntimeScope(SEMI_RENDER, 1));
      //replace the block identify with block content
      ListOrderedMap blockList = (ListOrderedMap) fetchRuntimeScope(BLOCK_LIST, 1);
      Iterator<Item> mi = blockList.iterator();
      int index;
      String replace;
      Item item;
      while( mi.hasNext() ) {
        item = mi.next();
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

    /**
    * Remove the stamp from stack (when resuming)
    */
    private static void popTransactionStartStamp() {
        ListOrderedMap map = (ListOrderedMap) suspendedTxStartStamps.get();
        if (map.size() > 0) {
            transactionStartStamp.set((Timestamp) map.remove(map.lastKey()));
        } else {
            Debug.logError("Error in transaction handling - no saved start stamp found - using NOW.", module);
            transactionStartStamp.set(UtilDateTime.nowTimestamp());
        }
    }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

        foreignKeys = new ArrayList(5);
        indices = new ArrayList(5);
        unices = new ArrayList(5);
        columnsByName = new Hashtable();
        columnsByJavaName = new Hashtable();
        options = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

     * parent table, small column list size allocation, non-unique).
     */
    public Index()
    {
        indexColumns = new ArrayList(3);
        options = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

     * @param name column name
     */
    public Column(String name)
    {
        this.name = name;
        options = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

   */
  public LanguageVariantDependentValuesMatrix() {
    super();

    // initialize map
    elementMatrix = new ListOrderedMap();
    propertyMatrix = new ListOrderedMap();
  }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

   * Remember the given page headline under the given language variant.
   */
  public void addProperty(String property, String value, LanguageVariant languageVariant) throws RQLException {
    if (propertyMatrix.containsKey(property)) {
      // add at existing property new language variant value
      ListOrderedMap lvMap = getPropertyMap(property);
      lvMap.put(languageVariant, value);
    } else {
      // initialize new property at all
      ListOrderedMap lvMap = new ListOrderedMap();
      lvMap.put(languageVariant, value);
      propertyMatrix.put(property, lvMap);
    }
  }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

    // add
    TemplateElement templateElement = contentElement.getTemplateElement();
    if (elementMatrix.containsKey(templateElement)) {
      // add for new language variant
      ListOrderedMap lvMap = getElementMap(templateElement);
      lvMap.put(languageVariant, contentElement);
    } else {
      // initialize new template element
      ListOrderedMap lvMap = new ListOrderedMap();
      lvMap.put(languageVariant, contentElement);
      elementMatrix.put(templateElement, lvMap);
    }
  }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

    /**
    * Remove the stamp from stack (when resuming)
    */
    private static void popTransactionStartStamp() {
        ListOrderedMap map = (ListOrderedMap) suspendedTxStartStamps.get();
        if (map.size() > 0) {
            transactionStartStamp.set((Timestamp) map.remove(map.lastKey()));
        } else {
            Debug.logError("Error in transaction handling - no saved start stamp found - using NOW.", module);
            transactionStartStamp.set(UtilDateTime.nowTimestamp());
        }
    }
View Full Code Here

Examples of org.apache.commons.collections.map.ListOrderedMap

    /**
     * Fill the map and list with OIDs from the configuration file
     */
  private static synchronized void fillExtendedKeyUsageOidsAndTexts() {
      final ListOrderedMap map = new ListOrderedMap();
      final Configuration conf = ConfigurationHolder.instance();
      final String ekuname = "extendedkeyusage.name.";
      final String ekuoid = "extendedkeyusage.oid.";
      for (int i = 0; i < 255; i++) {
        final String oid = conf.getString(ekuoid+i);
        if (oid != null) {
          String name = conf.getString(ekuname+i);
          if (name != null) {
            // A null value in the properties file means that we should not use this value, so set it to null for real
            if (name.equalsIgnoreCase("null")) {
              name = null;
            }
            map.put(oid, name);
          } else {
            log.error("Found extended key usage oid "+oid+", but no name defined. Not adding to list of extended key usages.");
          }
        } else {
          // No eku with that number = no more ekus so break,
          log.debug("Read "+i+" extended key usages.");
          break;
        }
      }
      extendedKeyUsageOids = map.asList();
      if (extendedKeyUsageOids == null) {
        log.error("Extended key usage OIDs is null, there is a serious error with extendedkeyusage.properties");
        extendedKeyUsageOids = new ArrayList<String>();
      }
      extendedKeyUsageOidsAndNames = Collections.synchronizedMap(map);
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.