/** GSWKeyValueAssociation.h - <title>GSWeb: Class GSWKeyValueAssociation</title>

   Copyright (C) 1999-2002 Free Software Foundation, Inc.
   
   Written by:	Manuel Guesdon <mguesdon@orange-concept.com>
   Date: 	Feb 1999
   
   $Revision: 25651 $
   $Date: 2007-11-30 15:24:24 -0600 (Fri, 30 Nov 2007) $

   This file is part of the GNUstep Web Library.
   
   <license>
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.
   
   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.
   
   You should have received a copy of the GNU Library General Public
   License along with this library; if not, write to the Free
   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   </license>
**/

// $Id: GSWKeyValueAssociation.h 25651 2007-11-30 21:24:24Z dwetzel $

#ifndef _GSWKeyValueAssociation_h__
	#define _GSWKeyValueAssociation_h__

//====================================================================
@interface GSWKeyValueAssociation : GSWAssociation
{
  NSString* _keyPath;
  BOOL      _isValueSettable;
}

-(id)initWithKeyPath:(NSString*)aKeyPath;

-(id)valueInComponent:(GSWComponent*)component;
-(void)setValue:(id)aValue
       inComponent:(GSWComponent*)component;
-(BOOL)isValueConstant;
-(BOOL)isValueSettable;

@end

@interface GSWKeyValueAssociation (GSWAssociationB)

-(NSString*)keyPath;
-(NSString*)debugDescription;
@end

#endif //_GSWKeyValueAssociation_h__




