Package edu.indiana.lib.twinpeaks.search
Class MatchItem
- java.lang.Object
-
- edu.indiana.lib.twinpeaks.search.MatchItem
-
public class MatchItem extends Object
Encapsulate one matching search item
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatchItem.PartPairContainer class for Part ID and Value
-
Constructor Summary
Constructors Constructor Description MatchItem()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPartStructure(org.osid.shared.Id partStructureId, Serializable value)Add an additional PartStructure too the listStringgetDatabase()Fetch the Asset "origin database"StringgetDescription()Fetch additional descriptive textStringgetDisplayName()Fetch the Asset "display name"StringgetId()Fetch the Asset IDStringgetOpenUrl()Fetch the OpenURL generated at search timeIteratorpartPairIterator()Get an interator for the PartStructureId list (PartPair objects)voidsetDatabase(String database)Set the Asset "origin database"voidsetDescription(String text)Set description textvoidsetDisplayName(String displayName)Set the Asset "display name"voidsetId(String id)Set the IDvoidsetOpenUrl(String url)Save the OpenUrl discovered at search time
-
-
-
Method Detail
-
getDatabase
public String getDatabase()
Fetch the Asset "origin database"- Returns:
- The database name (eg EAP)
-
setDatabase
public void setDatabase(String database)
Set the Asset "origin database"- Parameters:
database- The database this record was found in
-
getDisplayName
public String getDisplayName()
Fetch the Asset "display name"- Returns:
- Display name text
-
setDisplayName
public void setDisplayName(String displayName)
Set the Asset "display name"- Parameters:
displayName- Display name text
-
getDescription
public String getDescription()
Fetch additional descriptive text- Returns:
- Additional text
-
setDescription
public void setDescription(String text)
Set description text- Parameters:
text- Description text
-
getId
public String getId()
Fetch the Asset ID- Returns:
- ID text
-
setId
public void setId(String id)
Set the ID- Parameters:
id- ID text
-
addPartStructure
public void addPartStructure(org.osid.shared.Id partStructureId, Serializable value)Add an additional PartStructure too the list- Parameters:
partStructureId- The PartStructure Id to addvalue- PartStructure value
-
partPairIterator
public Iterator partPairIterator()
Get an interator for the PartStructureId list (PartPair objects)- Returns:
- PartStructure list Iterator
-
getOpenUrl
public String getOpenUrl()
Fetch the OpenURL generated at search time- Returns:
- The generated OpenURL
-
setOpenUrl
public void setOpenUrl(String url)
Save the OpenUrl discovered at search time- Parameters:
url- URL string
-
-