public class Landmark extends Object
Landmark
class is a container for the landmark
information. It consists of a name and optional a description, coordinates and
address information.
Constructor and Description |
---|
Landmark(String name,
String description,
QualifiedCoordinates coordinates,
AddressInfo addressInfo)
Constructs a new
Landmark object. |
Modifier and Type | Method and Description |
---|---|
AddressInfo |
getAddressInfo()
Returns the
AddressInfo of the landmark. |
String |
getDescription()
Returns the landmark description.
|
String |
getName()
Gets the landmark name.
|
QualifiedCoordinates |
getQualifiedCoordinates()
Returns the
QualifiedCoordinates of the landmark. |
void |
setAddressInfo(AddressInfo addressInfo)
Sets the
AddressInfo of the landmark. |
void |
setDescription(String description)
Sets the description of the landmark.
|
void |
setName(String name)
Sets the name of the landmark.
|
void |
setQualifiedCoordinates(QualifiedCoordinates coordinates)
Sets the
QualifiedCoordinates of the landmark. |
public Landmark(String name, String description, QualifiedCoordinates coordinates, AddressInfo addressInfo)
Landmark
object.name
- the name of the landmarkdescription
- description of the landmark.
null
if not available.coordinates
- the Coordinates
of the landmark.
null
if not known.addressInfo
- the textual address information of the landmark.
null
if not known.NullPointerException
- if the name is null
public String getName()
setName(String)
public String getDescription()
null
if not availablesetDescription(String)
public QualifiedCoordinates getQualifiedCoordinates()
QualifiedCoordinates
of the landmark.QualifiedCoordinates
of the
landmark. null
if not available.setQualifiedCoordinates(QualifiedCoordinates)
public AddressInfo getAddressInfo()
AddressInfo
of the landmark.AddressInfo
of the landmarksetAddressInfo(AddressInfo)
public void setName(String name)
name
- name for the landmarkNullPointerException
- if the parameter is null
getName()
public void setDescription(String description)
description
- description for the landmark, null
may be passed in to indicate that description
is not available.getDescription()
public void setQualifiedCoordinates(QualifiedCoordinates coordinates)
QualifiedCoordinates
of the landmark.coordinates
- the qualified coordinates of the landmarkgetQualifiedCoordinates()
public void setAddressInfo(AddressInfo addressInfo)
AddressInfo
of the landmark.addressInfo
- the AddressInfo
of the landmarkgetAddressInfo()
Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.