|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javadocking.model.codec.DockModelPropertiesEncoder
public class DockModelPropertiesEncoder
This class encodes the DockModel and DockingPathModel
into a java.util.Properties object.
After that, it encodes this properties object in a file with extension .dck.
| Field Summary | |
|---|---|
static java.lang.String |
EXTENSION
The extension of the files generated by this dock model group encoder. |
| Constructor Summary | |
|---|---|
DockModelPropertiesEncoder()
|
|
| Method Summary | |
|---|---|
boolean |
canExport(DockModel dockModel,
java.lang.String destinationName)
Checks whether this encoder can export the given dock model to a new specified location. |
boolean |
canSave(DockModel dockModel)
Checks whether this encoder can save the given dock model in the location, where it originally came from. |
void |
export(DockModel dockModel,
java.lang.String destinationName)
Exports the dock model to the specified location. |
void |
save(DockModel dockModel)
Saves the dock model in the location, where it originally came from. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXTENSION
| Constructor Detail |
|---|
public DockModelPropertiesEncoder()
| Method Detail |
|---|
public boolean canExport(DockModel dockModel,
java.lang.String destinationName)
DockModelEncoder
canExport in interface DockModelEncoderdockModel - The dock model that has to be exported.destinationName - The name of the location where the dock model should be saved.
public boolean canSave(DockModel dockModel)
DockModelEncoder
canSave in interface DockModelEncoderdockModel - The dock model that has to be saved.
public void export(DockModel dockModel,
java.lang.String destinationName)
throws java.io.IOException,
java.lang.IllegalArgumentException
DockModelEncoder
export in interface DockModelEncoderdockModel - The dock model that has to be exported.destinationName - The name of the location, where the dock model should be saved.
java.io.IOException - If an error occurs while exporting the data.
java.lang.IllegalArgumentException - If the dock model can not be exported to the new location by this encoder.
public void save(DockModel dockModel)
throws java.io.IOException,
java.lang.IllegalArgumentException
DockModelEncoder
save in interface DockModelEncoderdockModel - The dock model model that has to be saved.
java.io.IOException - If an error occurs while saving the data.
java.lang.IllegalArgumentException - If the dock model can not be saved by this encoder.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||