backend.domainObjects
Class AccessPoint

java.lang.Object
  extended by backend.domainObjects.AccessPoint

public class AccessPoint
extends java.lang.Object

This class corresponds to the <accesspoint> tag-section in XML. It contains fields for the ID, name, channel, address, rating, and other facts about an access point. It parses this data with its fromXML method, like most other classes in the domainObjects package.

Author:
ptm2

Constructor Summary
AccessPoint()
           
 
Method Summary
 void fromXML(org.kxml2.io.KXmlParser theParser)
          This method, like most other fromXML methods, assumes that the KXmlParser you give it has just found an <accesspoint> tag.
 java.lang.String getAddress()
          returns the street address of the access point
 java.lang.String getChannel()
          returns the channel
 java.lang.String getCity()
          returns the city the access point is in
 java.lang.String getDatarate()
          returns the data rate
 java.lang.String getEncryption()
          returns the encryption
 java.lang.String getFirstSeen()
          returns the time when the access point was first added to the database
 java.lang.String getID()
          returns the ID
 java.lang.String getLastSeen()
          returns the time when the access point's stats were last altered for our database
 java.lang.String getMAC()
          returns the MAC address
 java.lang.String getName()
          returns the name
 java.lang.String getRating()
          returns the rating
 java.lang.String getState()
          returns the state the access point is in
 java.lang.String getType()
          returns the type
 java.lang.String getZIP()
          returns the ZIP code the access point is in
 java.lang.String toString()
          This object returns a string containing all the fields of the AccessPoint class, formatted nicely.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessPoint

public AccessPoint()
Method Detail

getID

public java.lang.String getID()
returns the ID


getType

public java.lang.String getType()
returns the type


getName

public java.lang.String getName()
returns the name


getMAC

public java.lang.String getMAC()
returns the MAC address


getChannel

public java.lang.String getChannel()
returns the channel


getEncryption

public java.lang.String getEncryption()
returns the encryption


getDatarate

public java.lang.String getDatarate()
returns the data rate


getFirstSeen

public java.lang.String getFirstSeen()
returns the time when the access point was first added to the database


getLastSeen

public java.lang.String getLastSeen()
returns the time when the access point's stats were last altered for our database


getAddress

public java.lang.String getAddress()
returns the street address of the access point


getCity

public java.lang.String getCity()
returns the city the access point is in


getState

public java.lang.String getState()
returns the state the access point is in


getZIP

public java.lang.String getZIP()
returns the ZIP code the access point is in


getRating

public java.lang.String getRating()
returns the rating


fromXML

public void fromXML(org.kxml2.io.KXmlParser theParser)
This method, like most other fromXML methods, assumes that the KXmlParser you give it has just found an <accesspoint> tag. It looks for tags that mark the fields of the AccessPoint class and fills in its fields from the KXmlParser's getText() method when it finds them. This class has no child-objects in this big has-a tree.


toString

public java.lang.String toString()
This object returns a string containing all the fields of the AccessPoint class, formatted nicely.

Overrides:
toString in class java.lang.Object