databeans
Class DeviceAddParams

java.lang.Object
  extended bydatabeans.DeviceAddParams

public class DeviceAddParams
extends java.lang.Object

Parameter bean for adding new devices to the database. Bean contains all data needed to discover new devices on the network, and holds the methods to verify that data.

Version:
0.1
Author:
gswalters

Constructor Summary
DeviceAddParams()
          Construct a default DeviceAddParams with empty values.
 
Method Summary
 java.lang.String getBase()
           
 java.lang.String getComm()
           
 java.lang.String getRequestType()
           
 int getStart()
           
 int getStop()
           
 boolean isMonitored()
           
 boolean isValid()
          Verify all the IP address parameters.
 boolean isValidBase()
          Verify the base IP address parameter.
 boolean isValidStart()
          Verify the start IP host address parameter.
 boolean isValidStop()
          Verify the stop IP host address parameter.
 void setBase(java.lang.String base)
           
 void setComm(java.lang.String comm)
           
 void setMonitored(boolean monitored)
           
 void setRequestType(java.lang.String requestType)
           
 void setStart(int start)
           
 void setStop(int stop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceAddParams

public DeviceAddParams()
Construct a default DeviceAddParams with empty values.

Method Detail

getBase

public java.lang.String getBase()

setBase

public void setBase(java.lang.String base)

getStart

public int getStart()

setStart

public void setStart(int start)

getStop

public int getStop()

setStop

public void setStop(int stop)

getComm

public java.lang.String getComm()

setComm

public void setComm(java.lang.String comm)

isMonitored

public boolean isMonitored()

setMonitored

public void setMonitored(boolean monitored)

getRequestType

public java.lang.String getRequestType()

setRequestType

public void setRequestType(java.lang.String requestType)

isValid

public boolean isValid()
Verify all the IP address parameters. Checks the base, start, and stop values.

Returns:
true if okay and false if not

isValidBase

public boolean isValidBase()
Verify the base IP address parameter.

Returns:
true if okay and false if not

isValidStart

public boolean isValidStart()
Verify the start IP host address parameter.

Returns:
true if okay and false if not

isValidStop

public boolean isValidStop()
Verify the stop IP host address parameter.

Returns:
true if okay and false if not