com.alarmpoint.spectrum.data
Class SpectrumModel
java.lang.Object
com.alarmpoint.spectrum.data.SpectrumModel
- Direct Known Subclasses:
- SpectrumRelationship
public class SpectrumModel
- extends java.lang.Object
Simple data object to hold the model data
- Author:
- Mike Bennett
Constructor Summary |
SpectrumModel(java.lang.String record)
Creates a new instance of the Model |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SpectrumModel
public SpectrumModel(java.lang.String record)
- Creates a new instance of the Model
- Parameters:
record
- String containing the data for this instance
If the system environment variable "CLIMNAMEWIDTH" has been set, then
the integration will use this value to set the width of the fields that
hold the model name and associated data. Otherwise the default of 18
characters will be used for the field width.
Tested with field widths of 256 chars - see
http://community.xmatters.com/message/8178 for details.
setHandle
public void setHandle(java.lang.String handle)
getHandle
public java.lang.String getHandle()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
setTypeHnd
public void setTypeHnd(java.lang.String typeHnd)
getTypeHnd
public java.lang.String getTypeHnd()
setTypeName
public void setTypeName(java.lang.String typeName)
getTypeName
public java.lang.String getTypeName()
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 Model to compare against
- Returns:
- true if equal, false otherwise
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object