esoe
2 years ago
6 changed files with 40 additions and 3 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
@startuml Files |
||||
title Files class diagram |
||||
class File { |
||||
String name |
||||
byte size |
||||
} |
||||
enum Format{ |
||||
DOCUMENT |
||||
IMAGE |
||||
AUDIO |
||||
VIDEO |
||||
OTHER |
||||
} |
||||
|
||||
@enduml |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
public enum Extension { |
||||
DOCUMENT, |
||||
IMAGE, |
||||
AUDIO, |
||||
VIDEO, |
||||
OTHER; |
||||
|
||||
} |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
import annota |
||||
Format (name=noname; size=0; extension=Extension.OTHER) |
||||
public class File { |
||||
private String name; |
||||
private byte size; |
||||
|
||||
//читаем днные аннотации
|
||||
|
||||
} |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
@Inherited |
||||
@Target(ElementType.TYPE) |
||||
@Retention(RetentionPolicy.RUNTIME) |
||||
public @interface Format { |
||||
String name() default "noname"; |
||||
byte size() default "0"; |
||||
Extension extension () default Extension.OTHER; |
||||
} |
Loading…
Reference in new issue