|
||||||||||
| 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.XMCDAOrderedIntervals
public class XMCDAOrderedIntervals
Methods for reading and writing continuous intervals informations (called scales in XMCDA terms) from and to XMCDA fragments.
| Constructor Summary | |
|---|---|
XMCDAOrderedIntervals()
Creates a new object which will use the default error management strategy XMCDAErrorsManager.ErrorManagement.THROW. |
|
XMCDAOrderedIntervals(XMCDAErrorsManager errorsManager)
Creates a new object delegating error management to the given error manager in case of unexpected data read. |
|
| Method Summary | |
|---|---|
Criterion.PreferenceDirection |
read(XPreferenceDirection.Enum xDirection)
Retrieves the direction equivalent to the given XMCDA direction. |
IOrderedInterval |
read(XScale xScale)
Retrieves the given scale as a proper interval. |
XPreferenceDirection.Enum |
write(Criterion.PreferenceDirection preferenceDirection)
Retrieves the given preference direction as an XMCDA preference direction. |
XScale |
write(IOrderedInterval interval)
Retrieves the given interval as an XMCDA scale. |
| 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 XMCDAOrderedIntervals()
XMCDAErrorsManager.ErrorManagement.THROW.
public XMCDAOrderedIntervals(XMCDAErrorsManager errorsManager)
errorsManager - not null.| Method Detail |
|---|
public XScale write(IOrderedInterval interval)
Retrieves the given interval as an XMCDA scale.
This method does not accept discrete intervals.
interval - not null, with no step size.
null iff the given interval contains no information: no preference direction and only
infinite bounds.public XPreferenceDirection.Enum write(Criterion.PreferenceDirection preferenceDirection)
preferenceDirection - not null, not unknown.
null.
public IOrderedInterval read(XScale xScale)
throws InvalidInputException
xScale - not null.
null iff unexpected content has been read and this object does not
follow the XMCDAErrorsManager.ErrorManagement.THROW strategy.
InvalidInputException - iff unexpected content has been read and this object follows the XMCDAErrorsManager.ErrorManagement.THROW
strategy.public Criterion.PreferenceDirection read(XPreferenceDirection.Enum xDirection)
xDirection - not null.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||