fleXplorer.util.IndexesSetting
Class Documents

java.lang.Object
  extended by fleXplorer.util.IndexesSetting.Setting
      extended by fleXplorer.util.IndexesSetting.Documents

public class Documents
extends Setting


Constructor Summary
Documents(MFT mft)
          Constructs a Documents object.
Documents(MFT mft, java.util.ArrayList<Document> docs)
          Constructs a Documents object.
 
Method Summary
 java.util.ArrayList<Document> getDocs()
          Returns the list of documents.
 void setDocs(java.util.ArrayList<Document> docs)
          Sets the list that contains the documents to be indexed
 boolean setIndexes()
          Adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it.
 
Methods inherited from class fleXplorer.util.IndexesSetting.Setting
getFT, getLegalIds, setFT, setLegalIds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Documents

public Documents(MFT mft)
Constructs a Documents object.

Parameters:
mft - the materialized faceted taxonomy.

Documents

public Documents(MFT mft,
                 java.util.ArrayList<Document> docs)
Constructs a Documents object.

Parameters:
mft - the materialized faceted taxonomy.
docs - the list with the Document.
Method Detail

setDocs

public void setDocs(java.util.ArrayList<Document> docs)
Sets the list that contains the documents to be indexed

Parameters:
docs - the list of Documents

getDocs

public java.util.ArrayList<Document> getDocs()
Returns the list of documents.

Returns:
the list of documents.

setIndexes

public boolean setIndexes()
Adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it. Preconditions: Always true.
Postconditions: Firstly checks if exists the specified terms and then adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it.

Specified by:
setIndexes in class Setting
Returns:
true if the additions complete successfully; false otherwise.