Email Answering System
Version 1.0

com.ninecode.email.connector
Class EmailMappedRecord

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.ninecode.email.connector.EmailMappedRecord
All Implemented Interfaces:
Cloneable, Map, MappedRecord, Record, Serializable

public class EmailMappedRecord
extends HashMap
implements MappedRecord

The Record object used for interaction.

Author:
Derrick Oswald
See Also:
Serialized Form

Field Summary
protected  String mDescription
          The description.
protected  String mName
          The name.
 
Constructor Summary
EmailMappedRecord()
          Creates a new instance of EmailMappedRecord
 
Method Summary
 Object clone()
          Creates and returns a copy of this object.
 boolean equals(Object obj)
          Check if this instance is equal to another Record.
 String getRecordName()
          Gets the name of the Record.
 String getRecordShortDescription()
          Gets a short description string for the Record.
 int hashCode()
          Returns the hash code for the Record instance.
 void setRecordName(String name)
          Sets the name of the Record.
 void setRecordShortDescription(String description)
          Sets a short description string for the Record.
 
Methods inherited from class java.util.HashMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

mName

protected String mName
The name.


mDescription

protected String mDescription
The description.

Constructor Detail

EmailMappedRecord

public EmailMappedRecord()
Creates a new instance of EmailMappedRecord

Method Detail

clone

public Object clone()
Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object.

Specified by:
clone in interface Record
Overrides:
clone in class HashMap
Returns:
The cloned object.
Throws:
CloneNotSupportedException - If the object's class does not support the Cloneable interface Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

equals

public boolean equals(Object obj)
Check if this instance is equal to another Record.

Specified by:
equals in interface Record
Overrides:
equals in class AbstractMap
Returns:
true if two instances are equal.

getRecordName

public String getRecordName()
Gets the name of the Record.

Specified by:
getRecordName in interface Record
Returns:
String representing name of the Record.

getRecordShortDescription

public String getRecordShortDescription()
Gets a short description string for the Record. This property is used primarily by application development tools.

Specified by:
getRecordShortDescription in interface Record
Returns:
String representing a short description of the Record.

hashCode

public int hashCode()
Returns the hash code for the Record instance.

Specified by:
hashCode in interface Record
Overrides:
hashCode in class AbstractMap
Returns:
The hash code.

setRecordName

public void setRecordName(String name)
Sets the name of the Record.

Specified by:
setRecordName in interface Record
Parameters:
name - Name of the Record.

setRecordShortDescription

public void setRecordShortDescription(String description)
Sets a short description string for the Record. This property is used primarily by application development tools.

Specified by:
setRecordShortDescription in interface Record
Parameters:
description - Description of the Record.

Email Answering System
Version 1.0

Copyright © 2003 Derrick Oswald. All rights reserved.