Package org.apache.commons.collections.map

Examples of org.apache.commons.collections.map.LinkedMap$LinkedMapList


  /**
   * Returns all the childcomponents of this component.
   * @return a map of the childcomponents under this component
   */
  public Map getChildren() {
    return Collections.unmodifiableMap(new LinkedMap(_getChildren()));
  }
View Full Code Here


   * @param element contained element.
   * @param name element name
   * @throws Exception
   */
  public void addElementAfter(String id, GenericFormElement element, String afterId) throws Exception {
    LinkedMap newElements = new LinkedMap()
     
    if (!getElements().containsKey(afterId))
      throw new AraneaRuntimeException("The element '" + afterId + "' does not exist!");
   
    for (Iterator i = elements.entrySet().iterator(); i.hasNext();) {
        Map.Entry entry = (Map.Entry) i.next();
       
        newElements.put(entry.getKey(), entry.getValue());
        if (entry.getKey().equals(afterId)) {
          newElements.put(id, element);
        }
    }
   
    if (isInitialized())
      addWidget(id, element);
View Full Code Here

   * @param element contained element.
   * @param name element name
   * @throws Exception
   */
  public void addElementBefore(String id, GenericFormElement element, String beforeId) throws Exception {
    LinkedMap newElements = new LinkedMap()
   
    if (!elements.containsKey(beforeId))
      throw new AraneaRuntimeException("The element '" + beforeId + "' does not exist!");
     
    for (Iterator i = elements.entrySet().iterator(); i.hasNext();) {
        Map.Entry entry = (Map.Entry) i.next();
       
        if (entry.getKey().equals(beforeId))
            newElements.put(id, element);
        newElements.put(entry.getKey(), entry.getValue());
    }
     
    if (isInitialized())
      addWidget(id, element);
   
View Full Code Here

 
  /**
   * Returns an unmodifiable map of the children.
   */
  public Map getChildren() {
    return Collections.unmodifiableMap(new LinkedMap(_getChildren()));
  }
View Full Code Here

  /**
   * Returns elements.
   * @return elements.
   */
  public Map getElements() {
    return new LinkedMap(elements);
  }
View Full Code Here

  /**
   * Returns a unmodifiable map of all the child components under this Component.
   * @return a map of child components
   */
  public Map getChildren() {
    return Collections.unmodifiableMap(new LinkedMap(_getChildren()));
  }
View Full Code Here

     * @param cacheSize
     */
    public ItemInfoCacheImpl(int cacheSize) {
        super();
        this.cacheSize = cacheSize;
        entries = new LinkedMap(cacheSize);
    }
View Full Code Here

                    ("savepoint-flush-not-supported"));

            OpenJPASavepoint save = _spm.newSavepoint(name, this);
            if (_savepoints == null || _savepoints.isEmpty()) {
                save.save(getTransactionalStates());
                _savepoints = new LinkedMap();
            } else {
                if (_savepointCache == null)
                    save.save(Collections.EMPTY_LIST);
                else {
                    save.save(_savepointCache);
View Full Code Here

    protected void assertParameters(StoreQuery q, StoreQuery.Executor ex,
        Object[] params) {
        if (!q.requiresParameterDeclarations())
            return;

        LinkedMap paramTypes = ex.getParameterTypes(q);
        int typeCount = paramTypes.size();
        if (typeCount > params.length)
            throw new UserException(_loc.get("unbound-params",
                paramTypes.keySet()));

        Iterator itr = paramTypes.entrySet().iterator();
        Map.Entry entry;
        for (int i = 0; itr.hasNext(); i++) {
            entry = (Map.Entry) itr.next();
            if (((Class) entry.getValue()).isPrimitive() && params[i] == null)
                throw new UserException(_loc.get("null-primitive-param",
View Full Code Here

    /**
     * Record the names and order of implicit parameters.
     */
    private Parameter getParameter(String id, boolean positional) {
        if (parameterTypes == null)
            parameterTypes = new LinkedMap(6);
        if (!parameterTypes.containsKey(id))
            parameterTypes.put(id, TYPE_OBJECT);

        Class type = Object.class;
        ClassMetaData meta = null;
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.map.LinkedMap$LinkedMapList

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.