Package com.inesm.KeyManager.model
Interface Resource
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
NetworkResource,SharedResource
- All Known Implementing Classes:
Key,Message,Mission,Receipt,Request,Role,Settings,Station,User
A station local resource that is used internally. This interface
allows the resource to be compatible with no-lone zone operations,
and operation logs.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(String data) Deserializes the resource from a data string generated by theserialize()method.Gets the station resource identifier.Serializes a resource into a string.
-
Method Details
-
deserialize
Deserializes the resource from a data string generated by theserialize()method.- Parameters:
data- the serialized data as a string- Throws:
IOException- if an error occurred during the serialization processClassNotFoundException- if its was not possible to load the class data, or the class data was not found
-
serialize
Serializes a resource into a string.- Returns:
- the string representing the serialization of the resource.
- Throws:
IOException- if an error occurred during serialization
-
getResourceID
String getResourceID()Gets the station resource identifier.- Returns:
- a string containing the resource identifier.
-