|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DockModelEncoder
This is an interface for a class that encodes a DockModel
to a destination.
It can also encode a DockingPathModel
.
Information on using dock model encoders is in How to Use Dock Model Encoders and Decoders in The Sanaware Developer Guide.
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. |
Method Detail |
---|
boolean canExport(DockModel dockModel, java.lang.String destinationName)
dockModel
- The dock model that has to be exported.destinationName
- The name of the location where the dock model should be saved.
boolean canSave(DockModel dockModel)
dockModel
- The dock model that has to be saved.
void export(DockModel dockModel, java.lang.String destinationName) throws java.io.IOException, java.lang.IllegalArgumentException
dockModel
- The dock model that has to be exported.destinationName
- The name of the location, where the dock model should be saved.
java.lang.IllegalArgumentException
- If the dock model can not be exported to the new location by this encoder.
java.io.IOException
- If an error occurs while exporting the data.void save(DockModel dockModel) throws java.io.IOException, java.lang.IllegalArgumentException
dockModel
- The dock model model that has to be saved.
java.lang.IllegalArgumentException
- If the dock model can not be saved by this encoder.
java.io.IOException
- If an error occurs while saving the data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |