/**
**
** MiddCor-C# DemoJava
**			CORBA Solution for .Net with C# Language mapping							 
**																			 
**				
** Copyright:
**			Middsol GmbH, Hamburg
**			Germany  2004
**			www.middsol.com
**			info@middsol.com	
**
*/

package Attributes;


import java.rmi.RemoteException;
import javax.rmi.PortableRemoteObject;
import java.util.*;


public class GreetingsImpl extends PortableRemoteObject implements Greetings{

	private String 	m_strName;
	private boolean 	m_oBar;


	public GreetingsImpl() throws RemoteException {
		super(); 
	}
	
	public void setFirstName( String a_strName) 
		throws RemoteException {
		System.out.println("Method executed: setFirstName\n\tName= '"+ a_strName + "'\n");
		m_strName = a_strName;
	}


	public String getFirstName() 
		throws RemoteException {
		System.out.println("Method executed: getFirstName\n\tReturn '"+ m_strName + "'\n");
		return m_strName;

	}



	public void setBar( boolean a_oBar)
		throws RemoteException {
		System.out.println("Method executed: setBar\n\tBar= '" + a_oBar + "'\n");
		m_oBar = a_oBar;
	}

	public boolean isBar()
		throws RemoteException {
		System.out.println("Method executed: isBar\n\tReturn '" + m_oBar + "'\n");
		return m_oBar;
	}

	public boolean getBar()
		throws RemoteException {
		System.out.println("Method executed: getBar\n\tReturn '" + m_oBar + "'\n");
		return m_oBar;
	}


}

