Examples of Enum


Examples of com.alibaba.toolkit.util.enumeration.Enum

            throws ResourceBundleCreateException {
        String id = (String) resourceNode.selectObject(ResourceBundleConstant.XPATH_RESOURCE_ID);

        // ���ָ����enum����, ���Դ�enumֵ��Ϊresource key.
        if (enumType != null) {
            Enum enumObj = Enum.getEnumByName(enumType, (String) id);

            if (enumObj == null) {
                throw new ResourceBundleCreateException(ResourceBundleConstant.RB_ENUM_ID_NOT_FOUND,
                                                        new Object[] {
                    id,
                    enumType.getName()
                }, null);
            }

            id = enumObj.toString();
        }

        Object value = null;
        String type = resourceNode.getName();
View Full Code Here

Examples of com.eviware.soapui.config.CredentialsConfig.AuthType.Enum

        Settings settings = wsdlRequest.getSettings();
        String password = PropertyExpander.expandProperties(context, wsdlRequest.getPassword());
        String domain = PropertyExpander.expandProperties(context, wsdlRequest.getDomain());

        Enum authType = Enum.forString(wsdlRequest.getAuthType());

        registerSpnegoAuthSchemeFactory(authType);

        String wssPasswordType = null;
View Full Code Here

Examples of com.eviware.soapui.config.LoadTestLimitTypesConfig.Enum

  public void setLimitType( Enum limitType )
  {
    if( limitType == null )
      return;

    Enum oldType = getLimitType();
    getConfig().setLimitType( limitType );
    notifyPropertyChanged( LIMITTYPE_PROPERRY, oldType, limitType );
  }
View Full Code Here

Examples of com.eviware.soapui.config.RunTestCaseRunModeTypeConfig.Enum

    testCaseRunner = null;

    if( targetTestCase != null )
    {
      Enum runMode = getRunMode();

      if( runMode == RunTestCaseRunModeTypeConfig.PARALLELL )
      {
        runningTestCase = createTestCase( targetTestCase );
      }
View Full Code Here

Examples of com.eviware.soapui.config.StrategyTypeConfig.Enum

    pcs.firePropertyChange( "delay", oldValue, delay );
  }

  public void setStrategy( StrategyTypeConfig.Enum strategy )
  {
    Enum oldValue = config.getStrategy();
    config.setStrategy( strategy );

    pcs.firePropertyChange( "strategy", oldValue, strategy );
  }
View Full Code Here

Examples of com.eviware.soapui.config.TestSuiteRunTypesConfig.Enum

    return runListeners.toArray( new ProjectRunListener[runListeners.size()] );
  }

  public TestSuiteRunType getRunType()
  {
    Enum runType = getConfig().getRunType();

    if( TestSuiteRunTypesConfig.PARALLELL.equals( runType ) )
      return TestSuiteRunType.PARALLEL;
    else
      return TestSuiteRunType.SEQUENTIAL;
View Full Code Here

Examples of com.eviware.soapui.config.TestSuiteRunTypesConfig.Enum

    return new WsdlTestCase( this, testCaseConfig, forLoadTest );
  }

  public TestSuiteRunType getRunType()
  {
    Enum runType = getConfig().getRunType();

    if( runType.equals( TestSuiteRunTypesConfig.PARALLELL ) )
      return TestSuiteRunType.PARALLEL;
    else
      return TestSuiteRunType.SEQUENTIAL;
  }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.Enum

      if (e instanceof MessageField) {
        addOption((MessageField) e, type);
        continue;
      }
      if (e instanceof Enum) {
        Enum anEnum = (Enum) e;
        String name = anEnum.getName();
        enumsByName.put(name, anEnum);
      }
    }
  }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.Enum

  //   optional Type type = 1 [default = ONE];
  // }
  @Test public void should_provide_Literals_for_default_value() {
    FieldOption option = xtext.find("default", FieldOption.class);
    IScope scope = scopeProvider.scope_LiteralLink_target(valueOf(option), reference);
    Enum typeEnum = xtext.find("Type", " {", Enum.class);
    assertThat(descriptionsIn(scope), containAllLiteralsIn(typeEnum));
  }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.Enum

  //
  // option optimize_for = SPEED;
  @Test public void should_provide_Literals_for_native_option() {
    Option option = xtext.find("optimize_for", Option.class);
    IScope scope = scopeProvider.scope_LiteralLink_target(valueOf(option), reference);
    Enum optimizeModeEnum = descriptorProvider.primaryDescriptor().enumByName("OptimizeMode");
    assertThat(descriptionsIn(scope), containAllLiteralsIn(optimizeModeEnum));
  }
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.