2017-08-10 13:45:46 +05:30
|
|
|
@startuml
|
2017-08-11 15:55:12 +05:30
|
|
|
package com.iluwatar.datatransfer {
|
2017-08-11 16:17:51 +05:30
|
|
|
class CustomerClientApp {
|
|
|
|
+ CustomerClientApp()
|
|
|
|
+ main(args : String[]) {static}
|
|
|
|
- printCustomerDetails(allCustomers : List<CustomerDto>) {static}
|
|
|
|
}
|
2017-08-11 15:55:12 +05:30
|
|
|
class CustomerDto {
|
|
|
|
- firstName : String
|
|
|
|
- id : String
|
|
|
|
- lastName : String
|
|
|
|
+ CustomerDto(id : String, firstName : String, lastName : String)
|
|
|
|
+ getFirstName() : String
|
|
|
|
+ getId() : String
|
|
|
|
+ getLastName() : String
|
|
|
|
}
|
|
|
|
class CustomerResource {
|
|
|
|
- customers : List<CustomerDto>
|
|
|
|
+ CustomerResource(customers : List<CustomerDto>)
|
|
|
|
+ delete(customerId : String)
|
|
|
|
+ getAllCustomers() : List<CustomerDto>
|
|
|
|
+ save(customer : CustomerDto)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
CustomerResource --> "-customers" CustomerDto
|
2017-08-10 13:45:46 +05:30
|
|
|
@enduml
|