Package org.apache.commons.collections.set

Examples of org.apache.commons.collections.set.ListOrderedSet


  public static final String MARKUP = SEPERATOR + "markup" + SEPERATOR;

  private ListOrderedSet classes;

  public StyleClasses() {
    classes = new ListOrderedSet();
  }
View Full Code Here


  private String applicationIcon;

  @SuppressWarnings({"unchecked"})
  public UIPage() {
    scriptFiles = SetUniqueList.decorate(new ArrayList());
    scriptBlocks = new ListOrderedSet();
    styleFiles = new ListOrderedSet();
    styleFiles.add(DEFAULT_STYLE);
    styleBlocks = new ListOrderedSet();
    onloadScripts = new ListOrderedSet();
    onunloadScripts = new ListOrderedSet();
    onexitScripts = new ListOrderedSet();
    onsubmitScripts = new ListOrderedSet();
    popups = new ArrayList<UIPopup>();
  }
View Full Code Here

        config.addPropertyDirect("list", list);

        assertEquals("first element of the 'list' property", "foo", config.resolveContainerStore("list"));

        // set of objects
        Set set = new ListOrderedSet();
        set.add("foo");
        set.add("bar");
        config.addPropertyDirect("set", set);

        assertEquals("first element of the 'set' property", "foo", config.resolveContainerStore("set"));

        // arrays of primitives
View Full Code Here

        /**
         * Default constructor.
         */
        public DefinedKeysVisitor()
        {
            keyList = new ListOrderedSet();
            parentKeys = new Stack();
        }
View Full Code Here

        /**
         * Default constructor.
         */
        public DefinedKeysVisitor()
        {
            keyList = new ListOrderedSet();
            parentKeys = new Stack();
        }
View Full Code Here

  public static final String MARKUP = SEPARATOR + "markup" + SEPARATOR;

  private ListOrderedSet classes;

  public StyleClasses() {
    classes = new ListOrderedSet();
  }
View Full Code Here

     *
     * @return a set containing the sections.
     */
    public Set getSections()
    {
        Set sections = new ListOrderedSet();
        boolean globalSection = false;

        for (Iterator it = getRootNode().getChildren().iterator(); it.hasNext();)
        {
            ConfigurationNode node = (ConfigurationNode) it.next();
            if (isSectionNode(node))
            {
                if (globalSection)
                {
                    sections.add(null);
                    globalSection = false;
                }
                sections.add(node.getName());
            }
            else
            {
                globalSection = true;
            }
View Full Code Here

     * principal and all groups it is member of.
     */
    protected Set getPrincipals() {
        // use ListOrderedSet instead of Hashset in order to maintain the order
        // of principals (as in the Subject).
        Set principals = new ListOrderedSet();
        principals.add(principal);
        Iterator groups = principalProvider.getGroupMembership(principal);
        while (groups.hasNext()) {
            principals.add(groups.next());
        }
        return principals;
    }
View Full Code Here

//  private Map<Object, Object> attributes;

  public TobagoFacesContext(FacesContext context) {
    super(context);
    scriptFiles = SetUniqueList.decorate(new ArrayList());
    scriptBlocks = new ListOrderedSet();
    styleFiles = new ListOrderedSet();
    styleBlocks = new ListOrderedSet();
    onloadScripts = SetUniqueList.decorate(new ArrayList());
    onunloadScripts = new ListOrderedSet();
    onexitScripts = new ListOrderedSet();
    onsubmitScripts = new ListOrderedSet();
    popups = new ListOrderedSet();
  }
View Full Code Here

  }

  public static void addScriptBlock(FacesContext context, String script) {
    Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_SCRIPT_BLOCKS);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_SCRIPT_BLOCKS, set);
    }
    set.add(script);
  }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.set.ListOrderedSet

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.