info.extensiblecatalog.nacm.model
Class BibliographicRecord

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

public class BibliographicRecord
extends java.lang.Object

Represents the necessary fields in a bibliographic record.

Author:
Dean Rzonca

Constructor Summary
BibliographicRecord()
          Creates a new, empty BibliographicRecord This constructor is only provided for JavaBeans compliance
BibliographicRecord(java.lang.String originalXML, java.lang.Integer xmlHash)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Set<AuthorityLink> getAuthorizedAuthors()
          Gets the authorized authors associated with this record
 java.util.Set<AuthorityLink> getAuthorizedSubjects()
          Gets the authorized subjects associated with this record
 java.util.Set<Name> getAuthors()
          Gets the original authors for this record, as they were entered
 java.lang.Long getId()
          Gets the unique ID associated with this record
 java.lang.String getOriginalXML()
          Gets the original, raw XML for this record
 java.util.Set<Name> getSubjects()
          Gets the original subjects for this record, as they were entered
 java.util.Set<Name> getTitles()
          Gets the titles associated with this record
 java.lang.Integer getXMLHash()
          Gets a hash code for the original XML Useful for determining whether this record is duplicated The hash code is identical for identical records
 int hashCode()
           
 java.lang.Boolean isMatched()
          Determines if matching has been performed on this record
 void setAuthorizedAuthors(java.util.Set<AuthorityLink> authors)
          Sets the authorized authors associated with this record
 void setAuthorizedSubjects(java.util.Set<AuthorityLink> subjects)
          Sets the authorized subjects associated with this record
 void setAuthors(java.util.Set<Name> authors)
          Sets the original authors for this record, as they were entered
 void setId(java.lang.Long id)
          Sets the unique ID associated with this record
 void setMatched(java.lang.Boolean matched)
          Set whether matching has been performed on this record
 void setOriginalXML(java.lang.String xml)
          Sets the original source XML for this record
 void setSubjects(java.util.Set<Name> subjects)
          Sets the original subjects for this record, as they were entered
 void setTitles(java.util.Set<Name> titles)
          Sets the titles associated with this record
 void setXMLHash(java.lang.Integer code)
          Sets a hash code for the original XML This must be identical for identical XML
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BibliographicRecord

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


BibliographicRecord

public BibliographicRecord(java.lang.String originalXML,
                           java.lang.Integer xmlHash)
Method Detail

getAuthors

public java.util.Set<Name> getAuthors()
Gets the original authors for this record, as they were entered

Returns:
all authors, as they were entered

setAuthors

public void setAuthors(java.util.Set<Name> authors)
Sets the original authors for this record, as they were entered

Parameters:
authors - all authors, as they were entered

getSubjects

public java.util.Set<Name> getSubjects()
Gets the original subjects for this record, as they were entered

Returns:
all subjects, as they were entered

setSubjects

public void setSubjects(java.util.Set<Name> subjects)
Sets the original subjects for this record, as they were entered

Parameters:
authors - all subjects, as they were entered

getAuthorizedAuthors

public java.util.Set<AuthorityLink> getAuthorizedAuthors()
Gets the authorized authors associated with this record

Returns:
Information about the authorized authors

setAuthorizedAuthors

public void setAuthorizedAuthors(java.util.Set<AuthorityLink> authors)
Sets the authorized authors associated with this record

Parameters:
authors - Information about the authorized authors

getAuthorizedSubjects

public java.util.Set<AuthorityLink> getAuthorizedSubjects()
Gets the authorized subjects associated with this record

Returns:
Information about the authorized subjects

setAuthorizedSubjects

public void setAuthorizedSubjects(java.util.Set<AuthorityLink> subjects)
Sets the authorized subjects associated with this record

Parameters:
authors - Information about the authorized subjects

getTitles

public java.util.Set<Name> getTitles()
Gets the titles associated with this record

Returns:
all titles associated with this record

setTitles

public void setTitles(java.util.Set<Name> titles)
Sets the titles associated with this record

Parameters:
titles - all titles associated with this record

getOriginalXML

public java.lang.String getOriginalXML()
Gets the original, raw XML for this record

Returns:
the XML that was originally imported

setOriginalXML

public void setOriginalXML(java.lang.String xml)
Sets the original source XML for this record

Parameters:
xml - the XML data for this record

getXMLHash

public java.lang.Integer getXMLHash()
Gets a hash code for the original XML Useful for determining whether this record is duplicated The hash code is identical for identical records

Returns:
a hash code for the XML

setXMLHash

public void setXMLHash(java.lang.Integer code)
Sets a hash code for the original XML This must be identical for identical XML

Parameters:
code - a hash code for the original XML

isMatched

public java.lang.Boolean isMatched()
Determines if matching has been performed on this record

Returns:
true if this record has been matched

setMatched

public void setMatched(java.lang.Boolean matched)
Set whether matching has been performed on this record

Parameters:
matched - true if matching has been performed

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

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