Package org.apache.commons.collections.map

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


     * Return a Map of value=label, each pair representing a grid column header.
     * @param formData
     * @return
     */
    protected Map<String, String> getHeaderMap(FormData formData) {
        Map<String, String> headerMap = new ListOrderedMap();
        Object optionProperty = getProperty(FormUtil.PROPERTY_OPTIONS);
        if (optionProperty != null && optionProperty instanceof Collection) {
            for (Map opt : (FormRowSet) optionProperty) {
                Object value = opt.get("value");
                Object label = opt.get("label");
                if (value != null && label != null) {
                    headerMap.put(value.toString(), label.toString());
                }
            }
        }
        return headerMap;
    }
View Full Code Here


    private class Entries {

        private final ListOrderedMap principalNamesToEntries;

        private Entries(NodeImpl node, Collection principalNames) throws RepositoryException {
            principalNamesToEntries = new ListOrderedMap();
            for (Iterator it = principalNames.iterator(); it.hasNext();) {
                principalNamesToEntries.put(it.next(), new ArrayList());
            }
            collectEntries(node);
        }
View Full Code Here

                    int numberOfColumns,
                    DatabaseMap containingDB)
    {
        this.tableName = tableName;
        dbMap = containingDB;
        columns = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

     */
    public TableMap(String tableName, DatabaseMap containingDB)
    {
        this.tableName = tableName;
        dbMap = containingDB;
        columns = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

                    DatabaseMap containingDB)
    {
        this.tableName = tableName;
        this.prefix = prefix;
        dbMap = containingDB;
        columns = Collections.synchronizedMap(new ListOrderedMap());
    }
View Full Code Here

    /**
     * Constructs a new DatabaseMap.
     */
    public DatabaseMap()
    {
        tables = Collections.synchronizedMap(new ListOrderedMap());
        idGenerators = new HashMap(ID_GENERATORS_INITIAL_SIZE);
    }
View Full Code Here

     *             in a future version of Torque.
     */
    public DatabaseMap(String name, int numberOfTables)
    {
        this.name = name;
        tables = Collections.synchronizedMap(new ListOrderedMap());
        idGenerators = new HashMap(ID_GENERATORS_INITIAL_SIZE);
    }
View Full Code Here

     *             in a future version of Torque.
     */
    public DatabaseMap(String name)
    {
        this.name = name;
        tables = Collections.synchronizedMap(new ListOrderedMap());
        idGenerators = new HashMap(ID_GENERATORS_INITIAL_SIZE);
    }
View Full Code Here

        private final ListOrderedMap pksPerTable;
        private final Logger logger = LoggerFactory.getLogger(PkTableMap.class);

        public PkTableMap()
        {
            this.pksPerTable = new ListOrderedMap();
        }
View Full Code Here

        /**
         * Copy constructor
         * @param allowedPKs
         */
        public PkTableMap(PkTableMap allowedPKs) {
            this.pksPerTable = new ListOrderedMap();
            Iterator iterator = allowedPKs.pksPerTable.entrySet().iterator();
            while ( iterator.hasNext() ) {
                Map.Entry entry = (Map.Entry) iterator.next();
                String table = (String)entry.getKey();
                SortedSet pkObjectSet = (SortedSet) entry.getValue();
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.map.ListOrderedMap

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.