From c5b9c63b39a5948a50795740be28450cdd436172 Mon Sep 17 00:00:00 2001 From: Gopinath Langote Date: Thu, 14 Sep 2017 21:52:07 +0530 Subject: [PATCH] #631 - Partial Response : Add puml file --- .../etc/partial-response.urm.puml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 partial-response/etc/partial-response.urm.puml diff --git a/partial-response/etc/partial-response.urm.puml b/partial-response/etc/partial-response.urm.puml new file mode 100644 index 000000000..8331ad086 --- /dev/null +++ b/partial-response/etc/partial-response.urm.puml @@ -0,0 +1,25 @@ +@startuml +package com.iluwatar.partialresponse { + class FieldJsonMapper { + + FieldJsonMapper() + + toJson(video : Video, fields : String[]) : String + } + class Video { + - description : String + - director : String + - id : Integer + - language : String + - length : Integer + - title : String + + Video(id : Integer, title : String, length : Integer, description : String, director : String, language : String) + + toString() : String + } + class VideoResource { + - fieldJsonMapper : FieldJsonMapper + - videos : Map + + VideoResource(fieldJsonMapper : FieldJsonMapper, videos : Map) + + getDetails(id : Integer, fields : String[]) : String + } +} +VideoResource --> "-fieldJsonMapper" FieldJsonMapper +@enduml \ No newline at end of file