View Javadoc

    1   /*
    2    *  soapUI, copyright (C) 2004-2007 eviware.com
    3    *
    4    *  soapUI is free software; you can redistribute it and/or modify it under the
    5    *  terms of version 2.1 of the GNU Lesser General Public License as published by
    6    *  the Free Software Foundation.
    7    *
    8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
    9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    10   *  See the GNU Lesser General Public License for more details at gnu.org.
    11   */
    12
    13  package com.eviware.soapui.model.settings;
    14
    15  /***
    16   * Base interface for settings available in the soapui model
    17   *
    18   * @author Ole.Matzura
    19   */
    20
    21  public interface Settings
    22  {
    23  	public String getString( String id, String defaultValue );
    24
    25  	public void setString( String id, String value );
    26
    27  	/***
    28  	 * booleans always default to false..
    29  	 */
    30
    31  	public boolean getBoolean( String id );
    32
    33  	public void setBoolean( String id, boolean value );
    34
    35  	public void addSettingsListener( SettingsListener listener );
    36
    37  	public void removeSettingsListener( SettingsListener listener );
    38
    39  	public void clearSetting( String id );
    40
    41  	public long getLong(String id, long defaultValue );
    42
    43  	public boolean isSet( String id );
    44
    45  	public void setLong( String id, long value );
    46  }