|
||||||||||
| 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.XMCDAGroupSortingProblemReader
public class XMCDAGroupSortingProblemReader
TODO document properly.
A class to read MCDA group 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 credibilities. This class supports the case of a group of decision makers.
org.decisiondeck.jmcda.persist.xmcda2| Constructor Summary | |
|---|---|
XMCDAGroupSortingProblemReader()
Creates a new reader which will use the default error management strategy XMCDAErrorsManager.ErrorManagement.THROW. |
|
XMCDAGroupSortingProblemReader(InputSupplier<? extends InputStream> mainSource)
Creates a new reader with a main source. |
|
XMCDAGroupSortingProblemReader(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. |
|
XMCDAGroupSortingProblemReader(URL mainSource)
Creates a new reader with a main source. |
|
XMCDAGroupSortingProblemReader(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> |
getSourceDms()
Retrieves the source dedicated to the decision makers. |
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)
|
Map<DecisionMaker,IAssignmentsToMultipleRead> |
readAllAssignmentsToMultiple()
Reads the assignments per decision maker 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. |
Map<DecisionMaker,ICoalitions> |
readAllCoalitions()
Reads the coalitions per decision maker 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. |
Map<DecisionMaker,IOrderedAssignmentsRead> |
readAllOrderedAssignments()
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. |
Map<DecisionMaker,IRdEvaluations> |
readAllProfilesEvaluations()
Reads the profiles evaluations per decision maker 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<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 alternatives evaluations 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. |
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. |
Set<DecisionMaker> |
readDms()
Reads the decision makers 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()
Reads the evaluations 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. |
IGroupSortingResults |
readGroupResults()
Retrieves an aggregator object that gather several object type. |
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 evaluations 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. |
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. |
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. |
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 |
setSourceDms(InputSupplier<? extends InputStream> source)
Sets the dedicated source used to read the decision makers. |
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 XMCDAGroupSortingProblemReader()
XMCDAErrorsManager.ErrorManagement.THROW.
public XMCDAGroupSortingProblemReader(InputSupplier<? extends InputStream> mainSource)
XMCDAErrorsManager.ErrorManagement.THROW.
mainSource - not null.
public XMCDAGroupSortingProblemReader(InputSupplier<? extends InputStream> mainSource,
XMCDAErrorsManager errorsManager)
mainSource - not null.errorsManager - not null.public XMCDAGroupSortingProblemReader(XMCDAErrorsManager errorsManager)
errorsManager - not null.public XMCDAGroupSortingProblemReader(URL mainSource)
XMCDAErrorsManager.ErrorManagement.THROW.
mainSource - not null.| Method Detail |
|---|
public InputSupplier<? extends InputStream> getSourceAssignments()
null if not set.public InputSupplier<? extends InputStream> getSourceDms()
null if not set.public void setSourceAssignments(InputSupplier<? extends InputStream> source)
source - null for not set.public void setSourceDms(InputSupplier<? extends InputStream> source)
source - null for not set.
public IGroupSortingResults readGroupResults()
throws XmlException,
IOException,
InvalidInputException
Retrieves an aggregator object that gather several object type. The various sources set in this object are read from and gathered into the returned type. Results from successful reads are re-used instead of read again. In particular, if informations from all sources have been read already, no read occurs.
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<DecisionMaker,IRdEvaluations> readAllProfilesEvaluations()
throws IOException,
XmlException,
InvalidInputException
Reads the profiles evaluations per decision maker 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<DecisionMaker> readDms()
throws IOException,
XmlException,
InvalidInputException
Reads the decision makers 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 Map<DecisionMaker,ICoalitions> readAllCoalitions()
throws IOException,
XmlException,
InvalidInputException
Reads the coalitions per decision maker 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 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.
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.
public IRdEvaluations readProfilesEvaluations()
throws IOException,
XmlException,
InvalidInputException
Reads the profiles evaluations 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 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.
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.
public IRdEvaluations readAlternativesEvaluations()
throws IOException,
XmlException,
InvalidInputException
Reads the alternatives evaluations 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 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 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
IOException
XmlException
public Map<DecisionMaker,IAssignmentsToMultipleRead> readAllAssignmentsToMultiple()
throws IOException,
XmlException,
InvalidInputException
Reads the assignments per decision maker 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 Map<DecisionMaker,IOrderedAssignmentsRead> readAllOrderedAssignments()
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.
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.
This method also reads other data as is required to transform the original assignments read into the requested type. If no differentiated assignments information is found, equal assignments for each decision makers in the set of read decison makers are returned from the set of shared assignments.
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
Reads the evaluations 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 returns every evaluations found in the relevant source, with no distinction between REAL and FICTIVE alternatives.
This method may not be used if the dedicated source for alternatives evaluations and the dedicated source for
profiles evaluations are both set and are not equal, because in such a situation which source to use is
undetermined. In positive terms, at least one dedicated source must be null or they must be equal.
If both dedicated sources are null, this method uses the main source. If it is null as
well, an empty object is returned.
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 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 | |||||||||