fleXplorer.util.IndexesSetting
Class XML

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

public class XML
extends Setting


Constructor Summary
XML(MFT mft)
          Construcst a XML object
XML(MFT mft, java.lang.String filePath)
          Construcst a XML object
 
Method Summary
 java.lang.String getFilePath()
          Returns the path of the xml file.
 void setFilePath(java.lang.String filePath)
          Sets the path of the xml file.
 boolean setIndexes()
          Adds to each term of a facet of the faceted taxonomy the ids of the documents that belongs to it.
 boolean setSpecificIndexes(java.util.ArrayList<java.lang.String> dates, java.util.ArrayList<java.lang.String> normal)
          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

XML

public XML(MFT mft)
Construcst a XML object

Parameters:
mft - the materialized faceted taxonomy.

XML

public XML(MFT mft,
           java.lang.String filePath)
Construcst a XML object

Parameters:
mft - the materialized faceted taxonomy.
filePath - the path of the xml file.
Method Detail

setFilePath

public void setFilePath(java.lang.String filePath)
Sets the path of the xml file.

Parameters:
filePath - the path of the xml file.

getFilePath

public java.lang.String getFilePath()
Returns the path of the xml file.

Returns:
the path of the xml file.

setSpecificIndexes

public boolean setSpecificIndexes(java.util.ArrayList<java.lang.String> dates,
                                  java.util.ArrayList<java.lang.String> normal)
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.

Returns:
true if the additions complete successfully; false otherwise.

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.