net.jini.lookup.entry
Class AddressBean

java.lang.Object
  |
  +--net.jini.lookup.entry.AddressBean

public class AddressBean
extends java.lang.Object
implements EntryBean, java.io.Serializable

A JavaBeans(TM) component that encapsulates an Address object.

See Also:
Address, Location, LocationBean, Serialized Form

Field Summary
protected  Address assoc
          The Address object associated with this JavaBeans component.
 
Constructor Summary
AddressBean()
          Construct an instance of this JavaBeans component that is linked to a new Address object.
 
Method Summary
 Entry followLink()
          Return the Entry linked to by this JavaBeans component.
 java.lang.String getCountry()
          Return the value of the country field in the Address object linked to by this JavaBeans component.
 java.lang.String getLocality()
          Return the value of the locality field in the Address object linked to by this JavaBeans component.
 java.lang.String getOrganization()
          Return the value of the organization field in the Address object linked to by this JavaBeans component.
 java.lang.String getOrganizationalUnit()
          Return the value of the organizationalUnit field in the Address object linked to by this JavaBeans component.
 java.lang.String getPostalCode()
          Return the value of the postalCode field in the Address object linked to by this JavaBeans component.
 java.lang.String getStateOrProvince()
          Return the value of the stateOrProvince field in the Address object linked to by this JavaBeans component.
 java.lang.String getStreet()
          Return the value of the street field in the Address object linked to by this JavaBeans component.
 void makeLink(Entry e)
          Make a link to an Entry object.
 void setCountry(java.lang.String x)
          Set the value of the country field in the Address object linked to by this JavaBeans component.
 void setLocality(java.lang.String x)
          Set the value of the locality field in the Address object linked to by this JavaBeans component.
 void setOrganization(java.lang.String x)
          Set the value of the organization field in the Address object linked to by this JavaBeans component.
 void setOrganizationalUnit(java.lang.String x)
          Set the value of the organizationalUnit field in the Address object linked to by this JavaBeans component.
 void setPostalCode(java.lang.String x)
          Set the value of the postalCode field in the Address object linked to by this JavaBeans component.
 void setStateOrProvince(java.lang.String x)
          Set the value of the stateOrProvince field in the Address object linked to by this JavaBeans component.
 void setStreet(java.lang.String x)
          Set the value of the street field in the Address object linked to by this JavaBeans component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assoc

protected Address assoc
The Address object associated with this JavaBeans component.
Constructor Detail

AddressBean

public AddressBean()
Construct an instance of this JavaBeans component that is linked to a new Address object.
Method Detail

makeLink

public void makeLink(Entry e)
Make a link to an Entry object.
Specified by:
makeLink in interface EntryBean
Parameters:
e - the Entry object to link to
Throws:
java.lang.ClassCastException - the Entry is not of the correct type for this JavaBeans component

followLink

public Entry followLink()
Return the Entry linked to by this JavaBeans component.
Specified by:
followLink in interface EntryBean

getStreet

public java.lang.String getStreet()
Return the value of the street field in the Address object linked to by this JavaBeans component.

setStreet

public void setStreet(java.lang.String x)
Set the value of the street field in the Address object linked to by this JavaBeans component.

getOrganization

public java.lang.String getOrganization()
Return the value of the organization field in the Address object linked to by this JavaBeans component.

setOrganization

public void setOrganization(java.lang.String x)
Set the value of the organization field in the Address object linked to by this JavaBeans component.

getOrganizationalUnit

public java.lang.String getOrganizationalUnit()
Return the value of the organizationalUnit field in the Address object linked to by this JavaBeans component.

setOrganizationalUnit

public void setOrganizationalUnit(java.lang.String x)
Set the value of the organizationalUnit field in the Address object linked to by this JavaBeans component.

getLocality

public java.lang.String getLocality()
Return the value of the locality field in the Address object linked to by this JavaBeans component.

setLocality

public void setLocality(java.lang.String x)
Set the value of the locality field in the Address object linked to by this JavaBeans component.

getStateOrProvince

public java.lang.String getStateOrProvince()
Return the value of the stateOrProvince field in the Address object linked to by this JavaBeans component.

setStateOrProvince

public void setStateOrProvince(java.lang.String x)
Set the value of the stateOrProvince field in the Address object linked to by this JavaBeans component.

getPostalCode

public java.lang.String getPostalCode()
Return the value of the postalCode field in the Address object linked to by this JavaBeans component.

setPostalCode

public void setPostalCode(java.lang.String x)
Set the value of the postalCode field in the Address object linked to by this JavaBeans component.

getCountry

public java.lang.String getCountry()
Return the value of the country field in the Address object linked to by this JavaBeans component.

setCountry

public void setCountry(java.lang.String x)
Set the value of the country field in the Address object linked to by this JavaBeans component.


Copyright © 1999 Sun Microsystems, Inc. All rights reserved