com.alarmpoint.spectrum.data
Class SpectrumRelation

java.lang.Object
  extended by com.alarmpoint.spectrum.data.SpectrumRelation

public class SpectrumRelation
extends java.lang.Object

Simple data object to hold the Spectrum relation data

Author:
Mike Bennett

Constructor Summary
SpectrumRelation(java.lang.String record)
          Creates a new instance of the SpectrumRelation
 
Method Summary
 boolean equals(java.lang.Object other)
          Determine if the objects are equal based on the name
 java.lang.String getName()
           
 java.lang.String getType()
           
 void setName(java.lang.String name)
           
 void setType(java.lang.String type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpectrumRelation

public SpectrumRelation(java.lang.String record)
Creates a new instance of the SpectrumRelation

Parameters:
record - String containing the data for this instance
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

equals

public boolean equals(java.lang.Object other)
Determine if the objects are equal based on the name

Overrides:
equals in class java.lang.Object
Parameters:
other - instance of SpectrumRelation to compare against
Returns:
true if equal, false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object