|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.extensiblecatalog.nacm.model.AuthorityRecord
public class AuthorityRecord
Represents the necessary fields for an authority record.
Field Summary | |
---|---|
static java.lang.String |
MARC
|
Constructor Summary | |
---|---|
AuthorityRecord()
Creates a new, empty AuthorityRecord Note that this constructor is only present for JavaBeans compliance and should not be used |
|
AuthorityRecord(Name authorizedForm,
java.lang.String originalXML,
java.lang.Integer xmlHash,
java.lang.Boolean generated)
Creates a new AuthorityRecord |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.Set<Name> |
getAlternateForms()
Gets the alternate forms for this name |
Name |
getAuthorizedForm()
Gets the authorized form for this name in normalized form |
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.lang.String |
getRecordType()
Determines the type of record Use static types defined in this class |
java.util.Set<Name> |
getSeeAlsoReferences()
Gets other names which may be related to 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 |
isGenerated()
Determines whether this record was imported or generated |
void |
setAlternateForms(java.util.Set<Name> alternateForms)
Sets the alternate forms for this name |
void |
setAuthorizedForm(Name authorizedForm)
Sets the authorized form for this name in normalized form |
void |
setGenerated(java.lang.Boolean generated)
Sets whether this record was imported or generated |
void |
setId(java.lang.Long id)
Sets the unique ID associated with this record |
void |
setOriginalXML(java.lang.String xml)
Sets the original source XML for this record |
void |
setRecordType(java.lang.String recordType)
Sets the record type |
void |
setSeeAlsoReferences(java.util.Set<Name> seeAlsoReferences)
Sets other names which may be related to 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 |
Field Detail |
---|
public static final java.lang.String MARC
Constructor Detail |
---|
public AuthorityRecord()
public AuthorityRecord(Name authorizedForm, java.lang.String originalXML, java.lang.Integer xmlHash, java.lang.Boolean generated)
authorizedForm
- the authorized form of the nameoriginalXML
- the original record XMLxmlHash
- the hash code of the XMLgenerated
- whether or not this is a generated recordMethod Detail |
---|
public Name getAuthorizedForm()
public void setAuthorizedForm(Name authorizedForm)
authorizedForm
- public java.util.Set<Name> getAlternateForms()
public void setAlternateForms(java.util.Set<Name> alternateForms)
alternateForms
- All known alternate forms for this namepublic java.util.Set<Name> getSeeAlsoReferences()
public void setSeeAlsoReferences(java.util.Set<Name> seeAlsoReferences)
seeAlsoReferences
- All known names which may be related to this name, in normalized formpublic java.lang.String getOriginalXML()
public void setOriginalXML(java.lang.String xml)
xml
- the XML data for this recordpublic java.lang.Boolean isGenerated()
public void setGenerated(java.lang.Boolean generated)
generated
- true if the record was generatedpublic java.lang.Integer getXMLHash()
public void setXMLHash(java.lang.Integer code)
code
- a hash code for the original XMLpublic java.lang.String getRecordType()
public void setRecordType(java.lang.String recordType)
recordType
- a String representing the record type
and corresponding to one of the static
items in this classpublic java.lang.Long getId()
public void setId(java.lang.Long id)
id
- a unique IDpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |