Package com.eviware.soapui.settings

Examples of com.eviware.soapui.settings.Setting


  public List<Setting> getSettings()
  {
    ArrayList<Setting> settings = new ArrayList<Setting>();
    for( Field field : settingsClass.getFields() )
    {
      Setting annotation = field.getAnnotation( Setting.class );
      if( annotation != null )
      {
        settings.add( annotation );
      }
    }
View Full Code Here


  {
    StringToStringMap result = new StringToStringMap();

    for( Field field : settingsClass.getFields() )
    {
      Setting annotation = field.getAnnotation( Setting.class );
      if( annotation != null )
      {
        try
        {
          result.put( annotation.name(),
              settings.getString( field.get( null ).toString(), annotation.defaultValue() ) );
        }
        catch( Exception e )
        {
          SoapUI.logError( e );
        }
View Full Code Here

  public void storeValues( StringToStringMap values, Settings settings )
  {
    for( Field field : settingsClass.getFields() )
    {
      Setting annotation = field.getAnnotation( Setting.class );
      if( annotation != null )
      {
        try
        {
          settings.setString( field.get( null ).toString(), values.get( annotation.name() ) );
        }
        catch( IllegalArgumentException e )
        {
          SoapUI.logError( e );
        }
View Full Code Here

    }

    public List<Setting> getSettings() {
        ArrayList<Setting> settings = new ArrayList<Setting>();
        for (Field field : settingsClass.getFields()) {
            Setting annotation = field.getAnnotation(Setting.class);
            if (annotation != null) {
                settings.add(annotation);
            }
        }
        return settings;
View Full Code Here

    public StringToStringMap getValues(Settings settings) {
        StringToStringMap result = new StringToStringMap();

        for (Field field : settingsClass.getFields()) {
            Setting annotation = field.getAnnotation(Setting.class);
            if (annotation != null) {
                try {
                    result.put(annotation.name(),
                            settings.getString(field.get(null).toString(), annotation.defaultValue()));
                } catch (Exception e) {
                    SoapUI.logError(e);
                }
            }
        }
View Full Code Here

        storeValues(values, settings);
    }

    public void storeValues(StringToStringMap values, Settings settings) {
        for (Field field : settingsClass.getFields()) {
            Setting annotation = field.getAnnotation(Setting.class);
            if (annotation != null) {
                try {
                    settings.setString(field.get(null).toString(), values.get(annotation.name()));
                } catch (IllegalArgumentException e) {
                    SoapUI.logError(e);
                } catch (IllegalAccessException e) {
                    SoapUI.logError(e);
                }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.settings.Setting

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.