|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
university.PersonAdapterImpl
public class PersonAdapterImpl
Adapter Class for the purpose of using People from the university as remote objects
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Fields inherited from interface university.PersonAdapter |
---|
SERVICENAME |
Constructor Summary | |
---|---|
PersonAdapterImpl(Person p)
Creates a new instance of PersonAdapterImpl |
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. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PersonAdapterImpl(Person p) throws java.rmi.RemoteException
p
- the person object to be used by the adapter.
java.rmi.RemoteException
Method Detail |
---|
public java.lang.String getName() throws java.rmi.RemoteException
getName
in interface PersonAdapter
java.rmi.RemoteException
public void setName(java.lang.String name) throws java.rmi.RemoteException
setName
in interface PersonAdapter
name
- The name of the person.
java.rmi.RemoteException
public Sex getGender() throws java.rmi.RemoteException
getGender
in interface PersonAdapter
java.rmi.RemoteException
public Unit getAffiliation() throws java.rmi.RemoteException
getAffiliation
in interface PersonAdapter
java.rmi.RemoteException
public int getID() throws java.rmi.RemoteException
getID
in interface PersonAdapter
java.rmi.RemoteException
public Address getAddress() throws java.rmi.RemoteException
getAddress
in interface PersonAdapter
java.rmi.RemoteException
public java.lang.String printDescription() throws java.rmi.RemoteException
printDescription
in interface PersonAdapter
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |