Package java.util

Examples of java.util.HashSet$MyIterator


      children.clear();
   }

   public Set getChildrenDirect(boolean includeMarkedAsDeleted)
   {
      Set result = new HashSet();
      for (NodeSpiMock child : children.values())
      {
         if (!includeMarkedAsDeleted && child.isDeleted()) continue;
         result.add(child);
      }
      return result;
   }
View Full Code Here


      return data.keySet();
   }

   public Set getChildrenNamesDirect()
   {
      return new HashSet(children.keySet());
   }
View Full Code Here

    String realPath = getRealPath(path);
    if (realPath != null) {

      String[] dir = new File(realPath).list();
      if (dir.length > 0) {
        HashSet set = new HashSet(dir.length);
        for (int i = 0; i < dir.length; i++)
          set.add(dir[i]);
        return set;
      }
    }
    return null;
  }
View Full Code Here

            boolean sessionSerializable = true;
            int attributeCount = 0;
            long size = 0;

            HttpSession httpSession = session.getSession();
            Set processedObjects = new HashSet(1000);
            try {
                for (Enumeration e = httpSession.getAttributeNames(); e.hasMoreElements();) {
                    String name = (String) e.nextElement();
                    Object o = httpSession.getAttribute(name);
                    sessionSerializable = sessionSerializable && o instanceof Serializable;
View Full Code Here

        // context.findApplicationParameters() returns all parameters that are declared in a context descriptor regardless
        // of whether they are overridden in a deployment descriptor or not or not.

        // creating a set of parameter names that are declared in a context descriptor
        // and can not be ovevridden in a deployment descriptor.
        Set nonOverridableParams = new HashSet();
        ApplicationParameter[] appParams = context.findApplicationParameters();
        for (int i = 0; i < appParams.length; i++) {
            if (appParams[i] != null && ! appParams[i].getOverride()) {
                nonOverridableParams.add(appParams[i].getName());
            }
        }

        List initParams = new ArrayList();
        ServletContext servletCtx = context.getServletContext();
        for (Enumeration e = servletCtx.getInitParameterNames(); e.hasMoreElements(); ) {
            String paramName = (String) e.nextElement();

            ApplicationParam param = new ApplicationParam();
            param.setName(paramName);
            param.setValue(servletCtx.getInitParameter(paramName));
            // if the parameter is declared in a deployment descriptor
            // and it is not declared in a context descriptor with override=false,
            // the value comes from the deployment descriptor
            param.setFromDeplDescr(context.findParameter(paramName) != null && ! nonOverridableParams.contains(paramName));
            initParams.add(param);
        }

        return initParams;
    }
View Full Code Here

  public static final String CONNECTIONS = "BPMN.Connections";

  @SuppressWarnings("unchecked")
  public ProcessHandler() {
    if ((this.validParents == null) && (this.validPeers == null)) {
      this.validParents = new HashSet();
      this.validParents.add(Definitions.class);

      this.validPeers = new HashSet();
      this.validPeers.add(null);
            this.validPeers.add(ItemDefinition.class);
            this.validPeers.add(Message.class);
            this.validPeers.add(Interface.class);
            this.validPeers.add(Escalation.class);
View Full Code Here

public class GlobalHandler extends BaseAbstractHandler implements Handler {
 
    public GlobalHandler() {
        if ( (this.validParents == null) && (this.validPeers == null) ) {
            this.validParents = new HashSet();
            this.validParents.add( Process.class );

            this.validPeers = new HashSet();        
            this.validPeers.add( null );           

            this.allowNesting = false;
        }
    }
View Full Code Here

    public void populatePropertyFromMetaValue(PropertyMap propMap, MetaValue metaValue, PropertyDefinitionMap propDefMap)
    {
        if (metaValue == null)
            return;
        PropertiesMetaValue propertiesValue = (PropertiesMetaValue)metaValue;
        Set<String> mapMemberPropNames = new HashSet();
        for (Object key : propertiesValue.keySet())
            mapMemberPropNames.add((String)key);
        // There won't be any keys when loading a Configuration for the first time.
        for (String mapMemberPropName : mapMemberPropNames)
        {
            // We assume the PropertyMap is an "open map", since that's what PropertiesMetaValue maps to.
            PropertySimple mapMemberProp = propMap.getSimple(mapMemberPropName);
View Full Code Here

public class ItemDefinitionHandler extends BaseAbstractHandler implements Handler {
 
  @SuppressWarnings("unchecked")
  public ItemDefinitionHandler() {
    if ((this.validParents == null) && (this.validPeers == null)) {
      this.validParents = new HashSet();
      this.validParents.add(Definitions.class);

      this.validPeers = new HashSet();
      this.validPeers.add(null);
            this.validPeers.add(ItemDefinition.class);
            this.validPeers.add(Message.class);
            this.validPeers.add(Interface.class);
            this.validPeers.add(Escalation.class);
View Full Code Here

public class OperationHandler extends BaseAbstractHandler implements Handler {
 
  @SuppressWarnings("unchecked")
  public OperationHandler() {
    if ((this.validParents == null) && (this.validPeers == null)) {
      this.validParents = new HashSet();
      this.validParents.add(Interface.class);

      this.validPeers = new HashSet();
      this.validPeers.add(null);
      this.validPeers.add(Operation.class);

      this.allowNesting = false;
    }
View Full Code Here

TOP

Related Classes of java.util.HashSet$MyIterator

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.