|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.jmcda.persist.utils.ExportUtils
public class ExportUtils
| Constructor Summary | |
|---|---|
ExportUtils()
|
|
| Method Summary | ||
|---|---|---|
static void |
copySettings(ExportSettings source,
ExportSettings target)
Copies the settings found in the given source to the given target, overriding the target to make it equivalent to the source. |
|
static FunctionWithInputCheck<Category,String> |
getCategoryRankFct(ISortingData sortingData)
Retrieves a function that associates to a category its rank (1 is the best one) as an English formatted string. |
|
static
|
getInputToIntToStringFct(Map<I,Integer> ints)
Retrieves a function that associates to an object an integer as an English formatted string. |
|
static
|
getInputToIntToStringFctWithInputCheck(Map<I,Integer> ints)
Retrieves a function that associates to an object an integer as an English formatted string. |
|
static ExportSettings |
newExportByIndexSettings(IGroupSortingData source)
Note that the returned settings contain copy of the given source data, thus writing to the source data is not reflected in the settings, thus after a write the previously returned settings object should not be used anymore as it will be outdated. |
|
static ExportSettings |
newExportByIndexSettings(ISortingData source,
int countFrom)
Note that the returned settings contain copy of the given source data, thus writing to the source data is not reflected in the settings, thus after a write the previously returned settings object should not be used anymore as it will be outdated. |
|
static ExportSettings |
newExportSettings(ISortingData source)
Note that the returned settings contain copy of the given source data, thus writing to the source data is not reflected in the settings, thus after a write the previously returned settings object should not be used anymore as it will be outdated. |
|
static void |
setOrder(ISortingData source,
ExportSettings target)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExportUtils()
| Method Detail |
|---|
public static void copySettings(ExportSettings source,
ExportSettings target)
source - not null.target - not null.public static <I> FunctionWithInputCheck<I,String> getInputToIntToStringFctWithInputCheck(Map<I,Integer> ints)
InvalidInputException iff it is asked about an input object that did not exist in the given data at the
time this method was called.
I - the input object type.ints - not null.
null.public static FunctionWithInputCheck<Category,String> getCategoryRankFct(ISortingData sortingData)
InvalidInputException iff it is asked for a rank of a category that did not exist in the given data at
the time this method was called, otherwize it returns a string corresponding to a number between one and the
number of categories.
sortingData - not null.
null.public static <I> Function<I,String> getInputToIntToStringFct(Map<I,Integer> ints)
InvalidInputException iff it is asked about an input object that did not exist in the given data at the
time this method was called.
I - the input object type.ints - not null.
null.
public static ExportSettings newExportByIndexSettings(ISortingData source,
int countFrom)
source - not null. The profiles must all be ordered through the categories and profiles object.countFrom - the index to start counting from (typically zero or one). Applies to alternatives, profiles, criteria,
categories.
public static ExportSettings newExportSettings(ISortingData source)
source - not null. The profiles must all be ordered through the categories and profiles object.
public static void setOrder(ISortingData source,
ExportSettings target)
public static ExportSettings newExportByIndexSettings(IGroupSortingData source)
source - not null. The profiles must all be ordered through the categories and profiles object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||