|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.retrieval.AbstractRetrieverUIMetadata
An abstract class describing metadata for a MIND retriever which can be used by UIs for a reasonable handling of queries and documents. TODO: getAliases instead of getXPath? TODO: comments
| Field Summary | |
protected java.lang.String[] |
collections
|
protected Retriever |
retriever
|
protected Schema |
schema
|
protected java.lang.String[] |
sortedAttributes
|
protected java.lang.String[] |
sortedSearchAttributes
|
protected java.lang.String[] |
sortModel
|
| Constructor Summary | |
AbstractRetrieverUIMetadata(Retriever retriever)
|
|
| Method Summary | |
java.lang.String |
extract(org.w3c.dom.Document doc,
java.lang.String attName)
Extracts the content of the specified XML document given by the XPath expressions of the specified attribute. |
java.util.List |
extractList(org.w3c.dom.Document doc,
java.lang.String attName)
Extracts the content of the specified XML document given by the XPath expressions of the specified attribute. |
java.lang.String |
getCollectionFromDocID(java.lang.String docID)
Returns the collection which is encoded in the specified doc ID. |
Retriever |
getRetriever()
Returns the associated retriever. |
Schema |
getSchema()
Returns the schema used by the retriever. |
java.lang.String[] |
getSortedAttributeNames()
Returns the attributes names with could be used for displaying details. |
java.lang.String[] |
getSortedSearchAttributeNames()
Returns the attributes names with could be used for searching. |
java.lang.String[] |
getSortModel()
Returns the attributes names with could be used for sorting. |
java.lang.String |
toHuman(java.lang.String attName)
Converts the specified attribute name into a human-readable label. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.unidu.is.retrieval.RetrieverUIMetadata |
getAuthorAttributeNames, getCollections, getTitleAttributeNames, getYearAttributeNames |
| Field Detail |
protected Retriever retriever
protected Schema schema
protected java.lang.String[] sortedSearchAttributes
protected java.lang.String[] sortedAttributes
protected java.lang.String[] sortModel
protected java.lang.String[] collections
| Constructor Detail |
public AbstractRetrieverUIMetadata(Retriever retriever)
| Method Detail |
public Retriever getRetriever()
getRetriever in interface RetrieverUIMetadataRetrieverUIMetadata.getRetriever()public Schema getSchema()
getSchema in interface RetrieverUIMetadatapublic java.lang.String[] getSortedSearchAttributeNames()
This implementation returns all attributes with a search predicate in the order of appearence in the schema.
getSortedSearchAttributeNames in interface RetrieverUIMetadatapublic java.lang.String[] getSortedAttributeNames()
This implementation returns all attributes in the order of appearence in the schema.
getSortedAttributeNames in interface RetrieverUIMetadatapublic java.lang.String[] getSortModel()
This implementation returns all attributes with a search predicate (except "image") in the order of appearence in the schema.
getSortModel in interface RetrieverUIMetadataRetrieverUIMetadata.getSortModel()public java.lang.String toHuman(java.lang.String attName)
This implementation converts the first character into upper-case, and replaces hyphens by spaces.
toHuman in interface RetrieverUIMetadataattName - attribute name
public java.lang.String extract(org.w3c.dom.Document doc,
java.lang.String attName)
extract in interface RetrieverUIMetadatadoc - XML docoumentattName - attribute name
public java.util.List extractList(org.w3c.dom.Document doc,
java.lang.String attName)
extractList in interface RetrieverUIMetadatadoc - XML docoumentattName - attribute name
public java.lang.String getCollectionFromDocID(java.lang.String docID)
getCollectionFromDocID in interface RetrieverUIMetadatadocID - document ID
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||