|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAHelper
org.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAHelperWithVarious
org.decisiondeck.jmcda.persist.xmcda2.aggregates.XMCDASortingProblemReader
public class XMCDASortingProblemReader
A class to read MCDA sorting problems defined in XMCDA documents, including the typical preferences informations related to a sorting problem, namely thresholds and coalitions; and sorting results, namely assignments. Support is given for assignments to single categories, assignments to multiple categories and assignments with credibilites. This class supports the case of a single decision maker.
org.decisiondeck.jmcda.persist.xmcda2| Constructor Summary | |
|---|---|
XMCDASortingProblemReader()
Creates a new reader which will use the default error management strategy XMCDAErrorsManager.ErrorManagement.THROW. |
|
XMCDASortingProblemReader(InputSupplier<? extends InputStream> mainSource)
Creates a new reader with a main source. |
|
XMCDASortingProblemReader(InputSupplier<? extends InputStream> mainSource,
XMCDAErrorsManager errorsManager)
Creates a new reader with a main source, and delegating error management to the given error manager in case of unexpected data read. |
|
XMCDASortingProblemReader(URL mainSource)
Creates a new reader with a main source. |
|
XMCDASortingProblemReader(XMCDAErrorsManager errorsManager)
Creates a new reader delegating error management to the given error manager in case of unexpected data read. |
|
| Method Summary | |
|---|---|
void |
clearCache()
Clears the information cached in this class, resulting in the loss of any previously read information that had been remembered by this class. |
boolean |
equal(InputSupplier<? extends InputStream> source1,
InputSupplier<? extends InputStream> source2)
Tests whether two sources are equal when replacing a null source with the main source. |
XMCDAAlternatives.AlternativesParsingMethod |
getAlternativesParsingMethod()
Retrieves the parsing method used to read alternatives. |
InputSupplier<? extends InputStream> |
getSourceAlternatives()
Retrieves the source dedicated to alternatives. |
InputSupplier<? extends InputStream> |
getSourceAlternativesEvaluations()
Retrieves the source dedicated to alternatives evaluations. |
InputSupplier<? extends InputStream> |
getSourceAssignments()
Retrieves the source dedicated to assignments. |
InputSupplier<? extends InputStream> |
getSourceCategories()
Retrieves the source dedicated to categories. |
InputSupplier<? extends InputStream> |
getSourceCategoriesProfiles()
Retrieves the source dedicated to definition of the categories through bounding profiles. |
InputSupplier<? extends InputStream> |
getSourceCoalitions()
Retrieves the source dedicated to coalitions. |
InputSupplier<? extends InputStream> |
getSourceCriteria()
Retrieves the source dedicated to criteria. |
InputSupplier<? extends InputStream> |
getSourceMain()
Retrieves the main source. |
InputSupplier<? extends InputStream> |
getSourceProfiles()
Retrieves the source dedicated to profiles. |
InputSupplier<? extends InputStream> |
getSourceProfilesEvaluations()
Retrieves the source dedicated to profiles evaluations. |
String |
getSourceVersion()
Retrieves the XMCDA version of the documents read by this object. |
XMCDADoc.XMCDA |
getXMCDA(InputSupplier<? extends InputStream> source)
Retrieves the XMCDA document from the given source or from the main source if the given source is null. |
Set<Alternative> |
readAlternatives()
Reads the alternatives from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
IRdEvaluations |
readAlternativesEvaluations()
Reads the evaluations from the alternatives evaluations source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
IAssignmentsRead |
readAssignments()
Reads the assignments from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully, as a set of assignments of an alternative to a single category. |
IAssignmentsToMultipleRead |
readAssignmentsToMultiple()
Reads the assignments from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully, as a set of assignments of an alternative to multiple categories. |
IAssignmentsWithCredibilitiesRead |
readAssignmentsWithCredibilities()
Reads the assignments from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully, as a set of assignments of an alternative to multiple categories with associated credibilities. |
NavigableSet<Category> |
readCategories()
Reads the categories from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
ICatsAndProfs |
readCategoriesProfiles()
Reads the categories, together with their relations with the profiles defining them, from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
ICoalitions |
readCoalitions()
Reads the coalitions from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
Set<Criterion> |
readCriteria()
Reads the criteria from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
IRdEvaluations |
readEvaluations()
Retrieves the union of the evaluations read from the alternatives evaluations source and the evaluations read from the profiles evaluations source, or from the the main source if the dedicated source is not set. |
Set<Alternative> |
readProfiles()
Reads the profiles from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
IRdEvaluations |
readProfilesEvaluations()
Reads the profiles from the profiles evaluations source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
Map<Criterion,IOrderedInterval> |
readScales()
Reads the scales from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
ISortingData |
readSortingData()
Retrieves an aggregator object that gather several object type. |
ISortingPreferences |
readSortingPreferences()
Retrieves an aggregator object that gather several object type. |
ISortingResults |
readSortingResults()
Retrieves an aggregator object that gather several object type. |
ISortingResultsToMultiple |
readSortingResultsToMultiple()
Retrieves an aggregator object that gather several object type. |
ISortingResultsWithCredibilities |
readSortingResultsWithCredibilities()
Retrieves an aggregator object that gather several object type. |
ICriteriaWithThresholds |
readThresholds()
Reads the thresholds from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. |
void |
setAlternativesParsingMethod(XMCDAAlternatives.AlternativesParsingMethod alternativesParsingMethod)
Sets the parsing method used to read alternatives and profiles. |
void |
setSourceAlternatives(InputSupplier<? extends InputStream> sourceAlternatives)
Sets the dedicated source used to read alternatives. |
void |
setSourceAlternativesEvaluations(InputSupplier<? extends InputStream> sourceAlternativesEvaluations)
Sets the dedicated source used to read the evaluations of the alternatives. |
void |
setSourceAssignments(InputSupplier<? extends InputStream> source)
Sets the dedicated source used to read assignments. |
void |
setSourceCategories(InputSupplier<? extends InputStream> source)
Sets the dedicated source used to read the categories. |
void |
setSourceCategoriesProfiles(InputSupplier<? extends InputStream> sourceCategoriesProfiles)
Sets the dedicated source used to read the categories and associated profiles. |
void |
setSourceCoalitions(InputSupplier<? extends InputStream> sourceCoalitions)
Sets the dedicated source used to read the coalitions. |
void |
setSourceCriteria(InputSupplier<? extends InputStream> sourceCriteria)
Sets the dedicated source used to read the criteria. |
void |
setSourceMain(InputSupplier<? extends InputStream> sourceMain)
Sets the main source used to read all types of objects for which no dedicated source is set. |
void |
setSourceProfiles(InputSupplier<? extends InputStream> sourceProfiles)
Sets the dedicated source used to read the profiles. |
void |
setSourceProfilesEvaluations(InputSupplier<? extends InputStream> source)
Sets the dedicated source used to read the profiles evaluations. |
| Methods inherited from class org.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAHelper |
|---|
error, getStrategy, setStrategy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMCDASortingProblemReader()
XMCDAErrorsManager.ErrorManagement.THROW.
public XMCDASortingProblemReader(InputSupplier<? extends InputStream> mainSource)
XMCDAErrorsManager.ErrorManagement.THROW.
mainSource - not null.
public XMCDASortingProblemReader(InputSupplier<? extends InputStream> mainSource,
XMCDAErrorsManager errorsManager)
mainSource - not null.errorsManager - not null.public XMCDASortingProblemReader(XMCDAErrorsManager errorsManager)
errorsManager - not null.public XMCDASortingProblemReader(URL mainSource)
XMCDAErrorsManager.ErrorManagement.THROW.
mainSource - not null.| Method Detail |
|---|
public void setSourceCategoriesProfiles(InputSupplier<? extends InputStream> sourceCategoriesProfiles)
sourceCategoriesProfiles - null for not set.public InputSupplier<? extends InputStream> getSourceCategories()
null if not set.public InputSupplier<? extends InputStream> getSourceCategoriesProfiles()
null if not set.public InputSupplier<? extends InputStream> getSourceProfiles()
null if not set.public InputSupplier<? extends InputStream> getSourceProfilesEvaluations()
null if not set.
public NavigableSet<Category> readCategories()
throws IOException,
XmlException,
InvalidInputException
Reads the categories from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public ICatsAndProfs readCategoriesProfiles()
throws IOException,
XmlException,
InvalidInputException
Reads the categories, together with their relations with the profiles defining them, from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public Set<Alternative> readProfiles()
throws IOException,
XmlException,
InvalidInputException
Reads the profiles from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. Which profiles are returned depend on the chosen parsing method.
The returned set iteration order matches the order of the source.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.#setAlternativesParsingMethod(AlternativesParsingMethod)
public IRdEvaluations readProfilesEvaluations()
throws IOException,
XmlException,
InvalidInputException
Reads the profiles from the profiles evaluations source, or from the the main source if the dedicated source is
not set, or retrieves the results of the previous read if it ended successfully. This method returns every
evaluations found in the relevant source. To restrict these evaluations to those concerning the profiles, the
EvaluationsUtils class may be useful.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.public void setSourceCategories(InputSupplier<? extends InputStream> source)
source - null for not set.public void setSourceProfiles(InputSupplier<? extends InputStream> sourceProfiles)
sourceProfiles - null for not set.public void setSourceProfilesEvaluations(InputSupplier<? extends InputStream> source)
source - null for not set.public InputSupplier<? extends InputStream> getSourceAlternatives()
null if not set.public void setSourceAlternatives(InputSupplier<? extends InputStream> sourceAlternatives)
sourceAlternatives - null for not set.public InputSupplier<? extends InputStream> getSourceAlternativesEvaluations()
null if not set.public void setSourceAlternativesEvaluations(InputSupplier<? extends InputStream> sourceAlternativesEvaluations)
sourceAlternativesEvaluations - null for not set.public InputSupplier<? extends InputStream> getSourceCoalitions()
null if not set.public void setSourceCoalitions(InputSupplier<? extends InputStream> sourceCoalitions)
sourceCoalitions - null for not set.public InputSupplier<? extends InputStream> getSourceCriteria()
null if not set.public void setSourceCriteria(InputSupplier<? extends InputStream> sourceCriteria)
sourceCriteria - null for not set.public InputSupplier<? extends InputStream> getSourceMain()
null if not set.public void setSourceMain(InputSupplier<? extends InputStream> sourceMain)
sourceMain - null for not set.public XMCDAAlternatives.AlternativesParsingMethod getAlternativesParsingMethod()
public void setAlternativesParsingMethod(XMCDAAlternatives.AlternativesParsingMethod alternativesParsingMethod)
alternativesParsingMethod - not null.
public Set<Alternative> readAlternatives()
throws IOException,
XmlException,
InvalidInputException
Reads the alternatives from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. Which alternatives are returned depend on the chosen parsing method.
The returned set iteration order matches the order of the source.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.#setAlternativesParsingMethod(AlternativesParsingMethod)
public ICoalitions readCoalitions()
throws IOException,
XmlException,
InvalidInputException
Reads the coalitions from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public Set<Criterion> readCriteria()
throws IOException,
XmlException,
InvalidInputException
Reads the criteria from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully. This method also sets the scales and thresholds in this object.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public Map<Criterion,IOrderedInterval> readScales()
throws IOException,
XmlException,
InvalidInputException
Reads the scales from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public ICriteriaWithThresholds readThresholds()
throws IOException,
XmlException,
InvalidInputException
Reads the thresholds from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public XMCDADoc.XMCDA getXMCDA(InputSupplier<? extends InputStream> source)
throws IOException,
XmlException
null. Ensures that it contains an XMCDA document conforming to the XMCDA schema.
source - may be null, in which case the main source in this object must be non null.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the contents of the source happens while parsing the source, including if
the given source does not contain a valid XMCDA document.public InputSupplier<? extends InputStream> getSourceAssignments()
null if not set.
public IAssignmentsRead readAssignments()
throws IOException,
XmlException,
InvalidInputException
Reads the assignments from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully, as a set of assignments of an alternative to a single category.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.public void setSourceAssignments(InputSupplier<? extends InputStream> source)
source - null for not set.
public IAssignmentsToMultipleRead readAssignmentsToMultiple()
throws IOException,
XmlException,
InvalidInputException
Reads the assignments from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully, as a set of assignments of an alternative to multiple categories.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public IAssignmentsWithCredibilitiesRead readAssignmentsWithCredibilities()
throws IOException,
XmlException,
InvalidInputException
Reads the assignments from the dedicated source, or from the the main source if the dedicated source is not set, or retrieves the results of the previous read if it ended successfully, as a set of assignments of an alternative to multiple categories with associated credibilities.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public IRdEvaluations readEvaluations()
throws IOException,
XmlException,
InvalidInputException
Retrieves the union of the evaluations read from the alternatives evaluations source and the evaluations read from the profiles evaluations source, or from the the main source if the dedicated source is not set. The results of possible previous successful reads are re-used. If the two relevant sources are equal, the source is read only once. This method returns every evaluations found, with no distinction between REAL and FICTIVE alternatives.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public ISortingData readSortingData()
throws IOException,
XmlException,
InvalidInputException
Retrieves an aggregator object that gather several object type. The various sources set in this object are read from and the results gathered into the returned object. Results from previous successful reads are re-used instead of read again. In particular, if informations from all sources have been read already, no read occurs.
The returned object is writable.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public IRdEvaluations readAlternativesEvaluations()
throws IOException,
XmlException,
InvalidInputException
Reads the evaluations from the alternatives evaluations source, or from the the main source if the dedicated
source is not set, or retrieves the results of the previous read if it ended successfully. This method returns
every evaluations found in the relevant source. To restrict these evaluations to those concerning the real
alternatives, or to those concerning the profiles, the EvaluationsUtils class may be useful.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public boolean equal(InputSupplier<? extends InputStream> source1,
InputSupplier<? extends InputStream> source2)
null source with the main source. If both
resulting sources are null, this method returns true. This method can be used to test
whether the effective sources that this reader will use are equal.
source1 - may be null.source2 - may be null.
true iff both sources are equal from the point of view of this class.
public ISortingPreferences readSortingPreferences()
throws IOException,
XmlException,
InvalidInputException
Retrieves an aggregator object that gather several object type. The various sources set in this object are read from and the results gathered into the returned object. Results from previous successful reads are re-used instead of read again. In particular, if informations from all sources have been read already, no read occurs.
The returned object is writable.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public ISortingResults readSortingResults()
throws IOException,
XmlException,
InvalidInputException
Retrieves an aggregator object that gather several object type. The various sources set in this object are read from and the results gathered into the returned object. Results from previous successful reads are re-used instead of read again. In particular, if informations from all sources have been read already, no read occurs.
The returned object is writable.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public ISortingResultsToMultiple readSortingResultsToMultiple()
throws IOException,
XmlException,
InvalidInputException
Retrieves an aggregator object that gather several object type. The various sources set in this object are read from and the results gathered into the returned object. Results from previous successful reads are re-used instead of read again. In particular, if informations from all sources have been read already, no read occurs.
The returned object is writable.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.
public ISortingResultsWithCredibilities readSortingResultsWithCredibilities()
throws IOException,
XmlException,
InvalidInputException
Retrieves an aggregator object that gather several object type. The various sources set in this object are read from and the results gathered into the returned object. Results from previous successful reads are re-used instead of read again. In particular, if informations from all sources have been read already, no read occurs.
The returned object is writable.
In case of unexpected data, an InvalidInputException is thrown if this object follows the
XMCDAErrorsManager.ErrorManagement.THROW strategy, otherwise, non conforming informations will be skipped.
null.
IOException - if an exception happens while opening or closing the given reader, or while parsing the source.
XmlException - if an exception related to the xml correctness of the source happens while parsing the source,
including if the given source does not contain a valid XMCDA document.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.public void clearCache()
public String getSourceVersion()
null if not uniform or nothing read yet.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||