|
BenQ Mobile |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.microedition.location.Landmark
The Landmark class represents a landmark, i.e. a known location
with a name. A landmark has
a name by which it is known to the end user, a textual description,
QualifiedCoordinates
and optionally AddressInfo.
This class is only a container for the information. The constructor
does not validate the parameters passed in but just stores the
values, except the name field is never allowed to be null.
The get* methods return the values passed in the constructor.
When the platform implementation returns Landmark objects, it
MUST ensure that it only returns objects where the parameters
have values set as described for their semantics in nLm class.
| Constructor Summary | |
Landmark(java.lang.String name,
java.lang.String description,
QualifiedCoordinates coordinates,
AddressInfo addressInfo)
Constructs a new Landmark object with the values specified. |
|
| Method Summary | |
AddressInfo |
getAddressInfo()
Gets the AddressInfo of the landmark. |
java.lang.String |
getDescription()
Gets the landmark description. |
java.lang.String |
getName()
Gets the landmark name. |
QualifiedCoordinates |
getQualifiedCoordinates()
Gets the QualifiedCoordinates of the landmark. |
void |
setAddressInfo(AddressInfo addressInfo)
Sets the AddressInfo of the landmark. |
void |
setDescription(java.lang.String description)
Sets the description of the landmark. |
void |
setName(java.lang.String name)
Sets the name of the landmark. |
void |
setQualifiedCoordinates(QualifiedCoordinates coordinates)
Sets the QualifiedCoordinates of the landmark. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Landmark(java.lang.String name,
java.lang.String description,
QualifiedCoordinates coordinates,
AddressInfo addressInfo)
Landmark object with the values specified.
name - the name of the landmarkdescription - description of the landmark.
May be null if not available.coordinates - the Coordinates of the landmark.
May be null if not known.addressInfo - the textual address information of the landmark.
May be null if not known.
java.lang.NullPointerException - if the name is null| Method Detail |
public java.lang.String getName()
setName(String)public java.lang.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(java.lang.String name)
name - name for the landmark
java.lang.NullPointerException - if the parameter is nullgetName()public void setDescription(java.lang.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()
|
BenQ Mobile |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |