Package java.util

Examples of java.util.Enumeration


      // formulaire est connu et on peut les g�rer comme ce que j'ai
      // fait plus haut ( login, password ... )
      // CETTE PARTIE N'EST DONC PAS A REPRENDRE.

      // sauve les metaData
      Enumeration ps = request.getParameterNames();
      while (ps.hasMoreElements()) {
        String name = ps.nextElement() + "";
        if (name.startsWith("META_")) {
          name = name.substring(5);
          u.setMetaData(name, request.getParameter("META_" + name));
        }
      }
View Full Code Here


   * @see fr.dyade.aaa.common.TimerTask#run()
   */
  public void run() {
    initializeRecords();
   
    Enumeration mbeans = attlist.keys();
    while (mbeans.hasMoreElements()) {
      String name = (String) mbeans.nextElement();

      Set mBeans = null;
      try {
        mBeans = MXWrapper.queryNames(name);
      } catch (Exception exc) {
View Full Code Here

      String url = "jdbc:teiid:"+databaseName+";ApplicationName=ODBC"; //$NON-NLS-1$ //$NON-NLS-2$
      info.put("user", user); //$NON-NLS-1$
      info.put("password", password); //$NON-NLS-1$
      this.connection =  (ConnectionImpl)driver.connect(url, info);
      int hash = this.connection.getConnectionId().hashCode();
      Enumeration keys = this.props.propertyNames();
      while (keys.hasMoreElements()) {
        String key = (String)keys.nextElement();
        Statement stmt = this.connection.createStatement();
        stmt.execute("SET " + key + " '" + this.props.getProperty(key) + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        stmt.close();
      }
      this.client.authenticationSucess(hash, hash);
View Full Code Here

        new ActionError("error.editSection.templateMissing");
      errors.add("template", error);
    }
    // validate metadata
    try {
      Enumeration names = request.getParameterNames();
      // dangerous ?
      TypeBean type = SectionTypes.getSectionBean(null, getTemplate());
      while (names.hasMoreElements()) {
        String name = names.nextElement() + "";
        if (name.startsWith("META_")) {
          String tname = name.substring(5);
          String value = request.getParameter(name);
          PropertyBean prop = type.getProperty(tname);
          if ("".equals(value.trim())) {
View Full Code Here

    log.debug("SampleAction.execute()");
   
    //Local Variables
   
    //Log the incoming values
    Enumeration myLoop= request.getParameterNames();
    String tmpObject;
   
    log.debug("======");
    while (myLoop.hasMoreElements()){
      tmpObject = ""+myLoop.nextElement();
      log.debug("Incoming key:"+tmpObject+" value:"+request.getParameter(tmpObject));
    }
   
    log.debug(inForm);
   
View Full Code Here

     * @return List of User instances.
     */
    public static List loadUsers( Properties properties )
    {
        List users = new ArrayList();
        Enumeration propertyNames = properties.propertyNames();
        String propertyName;
        String userName;
        String password;
        while( propertyNames.hasMoreElements() )
        {
            propertyName = (String) propertyNames.nextElement();
            if( propertyName.startsWith( "user." ) )
            {
                userName = propertyName.substring( 5 );
                password = properties.getProperty( propertyName );
                users.add( new User( userName, password ) );
View Full Code Here

    {
      HttpSession session = request.getSession(true);

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.EXPENSE);

      Enumeration enmattr = request.getAttributeNames();

      request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.EXPENSE);

      request.setAttribute("body", "EDIT");
View Full Code Here

        MethodOfContactVO currentMobileVO = null;
        MethodOfContactVO currentEmailVO = null;

        Vector currentMOCs = individualCurrent.getMOC();
        if (currentMOCs != null) {
          Enumeration e = currentMOCs.elements();
          while (e.hasMoreElements()) {
            MethodOfContactVO mocVO = (MethodOfContactVO)e.nextElement();
            String syncAs = mocVO.getSyncAs();
            if (syncAs != null && (! syncAs.equals(""))) {
              if (syncAs.equals("Work")) {
                currentWorkPhone = mocVO.getContent();
                currentWorkVO = mocVO;
View Full Code Here

        //      System.err.println(tempToolBar.getLayout());
        //      tempToolBar.setLayout(new FlowLayout());
        int z = 2;

        if (toolBarType == wrapper_toolset) {
          Enumeration enm = hpps.keys();

          while (enm.hasMoreElements()) {
            String root = (String) enm.nextElement();
            String userPrefix = "";
            hpp = (HierarchyPropertyParser) hpps.get(root);

            if (!hpp.goTo(rootPackage)) {
              System.out.println("[KnowledgeFlow] Processing user package... ");
View Full Code Here

      m_configAndPerspectives.setLayout(new BorderLayout());
      m_configAndPerspectives.add(m_perspectiveToolBar, BorderLayout.CENTER);
     
      try {
        Properties visible = Utils.readProperties(VISIBLE_PERSPECTIVES_PROPERTIES_FILE);
        Enumeration keys = (java.util.Enumeration)visible.propertyNames();
        if (keys.hasMoreElements()) {

          String toolBarIsVisible =
            visible.getProperty("weka.gui.beans.KnowledgeFlow.PerspectiveToolBarVisisble");
          if (toolBarIsVisible != null && toolBarIsVisible.length() > 0) {
            m_configAndPerspectivesVisible = toolBarIsVisible.equalsIgnoreCase("yes");
View Full Code Here

TOP

Related Classes of java.util.Enumeration

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.