Package java.util

Examples of java.util.HashSet.clear()


                entered.remove(t.getRuntimeTarget());
            }
        }
        // Check whether the computed state config is legal
        targetSet.addAll(residual);
        residual.clear();
        if (!SCXMLHelper.isLegalConfig(targetSet, errorReporter)) {
            throw new ModelException("Illegal state machine configuration!");
        }
        // sort onEntry and onExit according state hierarchy
        Object[] oex = exitedStates.toArray();
View Full Code Here


            AuthorizationEntry entry = (AuthorizationEntry) iter.next();
            if (match(entry, endpoint)) {
                if (AuthorizationEntry.TYPE_ADD.equalsIgnoreCase(entry.getType())) {
                    acls.addAll(entry.getAcls());
                } else if (AuthorizationEntry.TYPE_SET.equalsIgnoreCase(entry.getType())) {
                    acls.clear();
                    acls.addAll(entry.getAcls());
                } else if (AuthorizationEntry.TYPE_REM.equalsIgnoreCase(entry.getType())) {
                    acls.removeAll(entry.getAcls());
                }
            }
View Full Code Here

        }
        assertTrue("The set should have been empty, but instead contained: "
                   + s + ".",
                   s.isEmpty());

        s.clear();
        s.add("org.apache.ws.commons.schema.XmlSchemaGroup");
        XmlSchemaGroup xsg = null;
        for (Iterator i = t.getValues(); i.hasNext(); ) {
            xsg = (XmlSchemaGroup)i.next();
            s.remove(xsg.getClass().getName());
View Full Code Here

        assertEquals("priceGroup", xsg.getName().getLocalPart());

        XmlSchemaChoice xsc = (XmlSchemaChoice)xsg.getParticle();
        assertNotNull(xsc);

        s.clear();
        s.add("fullPrice");
        s.add("salePrice");
        s.add("clearancePrice");
        s.add("freePrice");
        XmlSchemaObjectCollection items = xsc.getItems();
View Full Code Here

        resetFull();
        assertEquals("Full sets should be equal", getSet(), getConfirmedSet());
        verify();

        set2.clear();
        set2.addAll(Arrays.asList(getOtherElements()));
        assertTrue("Sets with different contents shouldn't be equal",
                   !getSet().equals(set2));
    }
View Full Code Here

        resetFull();
        assertTrue("Full collection shouldn't contain other elements",
                   !collection.containsAll(col));
       
        col.clear();
        col.addAll(Arrays.asList(getFullElements()));
        assertTrue("Full collection should containAll full elements",
                   collection.containsAll(col));
        // make sure calls to "containsAll" don't change anything
        verify();
View Full Code Here

      if (!_event.isPropagatable())
        return; //done
    }

    retry = false;
    listenerCalled.clear();
    for (Iterator it = _comp.getListenerIterator(evtnm);;) {
      final EventListener el = nextListener(it);
      if (el == null) {
        break; //done
View Full Code Here

      if (!_event.isPropagatable())
        return; //done
    }

    retry = false;
    listenerCalled.clear();
    if (page != null)
      for (Iterator it = page.getListenerIterator(evtnm);;) {
        final EventListener el = nextListener(it);
        if (el == null) {
          break; //done
View Full Code Here

    FeatureModelHelper.cloneFeatureTree(feature , featureEditor
        , featureModel , featureModelEditor , htNameMap , hsSubFeatureIDs);
   
    Set constraints = new HashSet();

    constraints.clear();
    constraints.addAll(featureModel.getAllFeatureRelation().values());
    for (Iterator<FeatureRelation> itRelation = constraints.iterator() ; itRelation.hasNext() ; ) {
      FeatureRelation relation = itRelation.next();
      if (!htNameMap.containsKey(relation.getID())) {
        Feature start = featureModel.getFeature(htNameMap.get(relation.getStartFeature().getID()));
View Full Code Here

          htNameMap.put(relation.getID() , newRelation.getID());
        }
      }
    }
   
    constraints.clear();
    constraints.addAll(constraintModel.getAllGroupConstraint().values());
    for (Iterator<GroupConstraint> itConstraint = constraints.iterator() ; itConstraint.hasNext() ; ) {
      GroupConstraint gc = itConstraint.next();
     
      boolean newFeature = false;
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.