|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.pangaea.metadataportal.harvester.MetadataDocument
de.pangaea.metadataportal.harvester.OAIMetadataDocument
public class OAIMetadataDocument
Special implementation of MetadataDocument that adds OAI set support to internal fields
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.pangaea.metadataportal.harvester.MetadataDocument |
|---|
MetadataDocument.XMLConverter |
| Field Summary | |
|---|---|
protected Set<String> |
sets
|
| Fields inherited from class de.pangaea.metadataportal.harvester.MetadataDocument |
|---|
datestamp, deleted, iconfig, identifier |
| Constructor Summary | |
|---|---|
OAIMetadataDocument(SingleIndexConfig iconfig)
Constructor, that creates an empty instance for the supplied index configuration. |
|
| Method Summary | |
|---|---|
void |
addSet(String set)
Adds an OAI set to the set Set. |
protected org.apache.lucene.document.Document |
createEmptyDocument()
Helper method that generates an empty Lucene Document instance. |
Set<String> |
getSets()
Returns all OAI sets as Set. |
void |
loadFromLucene(org.apache.lucene.document.Document ldoc)
"Harvests" a stored Lucene Document from index for re-parsing. |
void |
setHeaderInfo(String status,
String identifier,
String datestampStr)
Deprecated. |
String |
toString()
|
| Methods inherited from class de.pangaea.metadataportal.harvester.MetadataDocument |
|---|
addDefaultField, addField, addFields, addSystemVariables, createInstanceFromLucene, evaluateTemplate, evaluateTemplateAsXHTML, getConverter, getDatestamp, getFinalDOM, getIdentifier, getLuceneDocument, getXML, isDeleted, processDocumentBoost, processFilters, processXPathVariables, setDatestamp, setDeleted, setFinalDOM, setIdentifier, walkNodeTexts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Set<String> sets
getSets()| Constructor Detail |
|---|
public OAIMetadataDocument(SingleIndexConfig iconfig)
| Method Detail |
|---|
@PublicForDigesterUse
@Deprecated
public void setHeaderInfo(String status,
String identifier,
String datestampStr)
throws ParseException
ParseExceptionpublic void addSet(String set)
Set.
public Set<String> getSets()
Set.
public void loadFromLucene(org.apache.lucene.document.Document ldoc)
throws Exception
MetadataDocumentDocument from index for re-parsing.
Extracts XML blob, identifier and datestamp from Document.
Stored fields are not restored. They are regenerated by re-executing all
XPath and Templates.
SingleIndexConfig is used for index specific conversions.
loadFromLucene in class MetadataDocumentException
protected org.apache.lucene.document.Document createEmptyDocument()
throws Exception
MetadataDocumentDocument instance.
The standard fields are set to the doc properties (identifier, datestamp)
createEmptyDocument in class MetadataDocumentDocument or null, if doc was deleted.
Exception - if an exception occurs during transformation (various types of exceptions can be thrown).
IllegalStateException - if identifier is empty.public String toString()
toString in class MetadataDocument
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||