public class LocationBean extends Object implements EntryBean, Serializable
Location
,
Address
,
AddressBean
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Location |
assoc
The Location object associated with this JavaBeans component.
|
Constructor and Description |
---|
LocationBean()
Construct a new JavaBeans component linked to a new empty
Location object.
|
LocationBean(String floor,
String room,
String building) |
Modifier and Type | Method and Description |
---|---|
Entry |
followLink()
Return the Entry linked to by this JavaBeans component.
|
String |
getBuilding()
Return the value of the building field in the Location object linked to
by this JavaBeans component.
|
String |
getFloor()
Return the value of the floor field in the Location object linked to by
this JavaBeans component.
|
String |
getRoom()
Return the value of the room field in the Location object linked to by
this JavaBeans component.
|
void |
makeLink(Entry e)
Make a link to an Entry object.
|
void |
setBuilding(String x)
Set the value of the building field in the Location object linked to by
this JavaBeans component.
|
void |
setFloor(String x)
Set the value of the floor field in the Location object linked to by
this JavaBeans component.
|
void |
setRoom(String x)
Set the value of the room field in the Location object linked to by this
JavaBeans component.
|
protected Location assoc
public LocationBean()
@ConstructorProperties(value={"floor","room","building"}) public LocationBean(String floor, String room, String building)
public void makeLink(Entry e)
makeLink
in interface EntryBean
e
- the Entry object to link toClassCastException
- the Entry is not of the
correct type for this JavaBeans componentpublic Entry followLink()
followLink
in interface EntryBean
public String getFloor()
setFloor(java.lang.String)
public void setFloor(String x)
x
- a String specifying the floor valuegetFloor()
public String getRoom()
setRoom(java.lang.String)
public void setRoom(String x)
x
- a String specifying the room valuegetRoom()
public String getBuilding()
setBuilding(java.lang.String)
public void setBuilding(String x)
x
- a String specifying the building valuegetBuilding()
Copyright © 2016–2018. All rights reserved.