info.extensiblecatalog.nacm.model
Class Name

java.lang.Object
  extended by info.extensiblecatalog.nacm.model.Name

public class Name
extends java.lang.Object

Represents a single name in the model

Author:
Dean Rzonca

Constructor Summary
Name()
          Creates a new, empty Name This constructor is only provided for JavaBeans compliance
Name(java.lang.String original, java.lang.String normalized)
          Creates a new Name
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getId()
          Gets the unique ID associated with this record
 java.lang.String getNormalizedForm()
          Gets the normalized form of this name
 java.lang.String getOriginalForm()
          Gets the original form of this name, exactly as entered
 int hashCode()
           
 void setId(java.lang.Long id)
          Sets the unique ID associated with this record
 void setNormalizedForm(java.lang.String normalizedForm)
          Sets the normalized form of this name
 void setOriginalForm(java.lang.String originalForm)
          Sets the original form of this name, exactly as entered
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Name

public Name()
Creates a new, empty Name This constructor is only provided for JavaBeans compliance


Name

public Name(java.lang.String original,
            java.lang.String normalized)
Creates a new Name

Parameters:
original - the name, exactly as entered
normalized - the normalized form of the name
Method Detail

getId

public java.lang.Long getId()
Gets the unique ID associated with this record

Returns:
a unique ID

setId

public void setId(java.lang.Long id)
Sets the unique ID associated with this record

Parameters:
id - a unique ID

getNormalizedForm

public java.lang.String getNormalizedForm()
Gets the normalized form of this name

Returns:
the name

setNormalizedForm

public void setNormalizedForm(java.lang.String normalizedForm)
Sets the normalized form of this name

Parameters:
normalizedForm - the name

getOriginalForm

public java.lang.String getOriginalForm()
Gets the original form of this name, exactly as entered

Returns:
the name

setOriginalForm

public void setOriginalForm(java.lang.String originalForm)
Sets the original form of this name, exactly as entered

Parameters:
originalForm - the name

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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