|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.coursett.IdConvertor
public class IdConvertor
Conversion of ids to sequential numbers.
This class is used by TimetableXMLSaver to anonymise benchmark data sets.
Conversion file can be provided by IdConvertor.File system property (e.g. -DIdConvertor.File=.\idconf.xml).
| Field Summary | |
|---|---|
Hashtable |
iConversion
|
static IdConvertor |
sInstance
|
| Constructor Summary | |
|---|---|
protected |
IdConvertor()
Constructor -- use getInstance() to get an instance of this class. |
| Method Summary | |
|---|---|
String |
convert(String type,
String id)
Convert id of given type. |
static IdConvertor |
getInstance()
Get an instance of IdConvertor class. |
void |
load()
Load id conversion file. |
void |
save()
Save id conversion file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static IdConvertor sInstance
public Hashtable iConversion
| Constructor Detail |
|---|
protected IdConvertor()
getInstance() to get an instance of this class.
| Method Detail |
|---|
public static IdConvertor getInstance()
public String convert(String type,
String id)
public void save()
public void load()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||