university
Interface PersonAdapter

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
PersonAdapterImpl

public interface PersonAdapter
extends java.rmi.Remote

Interface for Person adpater so that the class already created in the the Person hierarchy can be used as remote objects.


Field Summary
static java.lang.String SERVICENAME
           
 
Method Summary
 Address getAddress()
          Get the Address of the Person.
 Unit getAffiliation()
          Returns the unit a person belongs to.
 Sex getGender()
          Returns the sex of a person
 int getID()
          Returns the ID of a person.
 java.lang.String getName()
          Returns the name of a person
 java.lang.String printDescription()
          Get a description of the Person.
 void setName(java.lang.String name)
          Set the persons name to a new name.
 

Field Detail

SERVICENAME

static final java.lang.String SERVICENAME
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
                         throws java.rmi.RemoteException
Returns the name of a person

Returns:
The name of the person
Throws:
java.rmi.RemoteException

setName

void setName(java.lang.String name)
             throws java.rmi.RemoteException
Set the persons name to a new name.

Parameters:
name - The name of the person.
Throws:
java.rmi.RemoteException

getGender

Sex getGender()
              throws java.rmi.RemoteException
Returns the sex of a person

Returns:
The gender of the person
Throws:
java.rmi.RemoteException

getAffiliation

Unit getAffiliation()
                    throws java.rmi.RemoteException
Returns the unit a person belongs to.

Returns:
The unit that the person belongs to
Throws:
java.rmi.RemoteException

getID

int getID()
          throws java.rmi.RemoteException
Returns the ID of a person.

Returns:
The ID of the person
Throws:
java.rmi.RemoteException

getAddress

Address getAddress()
                   throws java.rmi.RemoteException
Get the Address of the Person.

Returns:
The Address of the Person.
Throws:
java.rmi.RemoteException

printDescription

java.lang.String printDescription()
                                  throws java.rmi.RemoteException
Get a description of the Person.

Returns:
A String representing a Person.
Throws:
java.rmi.RemoteException