PlantUML 을사용해서 UML 그리기 - PlantUML 언어참조가이드(Version 1.2023.11)
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: element names and relation labels If you want to use non-letters in the class (or enum...) display name, you can either : PlantUML 언어참조가이드 (1.2023.11) 62 / 551 3.5 Adding methods 3 CLASS DIAGRAM • Use Use the as keyword in the class definition to assign an alias • Put quotes "" around the class name @startuml class "This is my class" as class1 class class2 as "It works this way too" class2 *-- "foo/dummy"0 码力 | 552 页 | 7.88 MB | 1 年前3Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2023.11)
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml 2.2 Actors The name defining an actor is enclosed between colons. You can also use the actor keyword to define an actor actor. An alias can be assigned using the as keyword and can be used later instead of the actor’s name, e. g. when defining relations. You can see from the following examples, that the actor definitions0 码力 | 551 页 | 7.79 MB | 1 年前3Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2020.23)
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml 2.2 Actors The name defining an actor is enclosed between colons. You can also use the actor keyword to define an actor actor. An alias can be assigned using the as keyword and can be used later instead of the actor's name, e. g. when defining relations. You can see from the following examples, that the actor definitions0 码力 | 311 页 | 3.15 MB | 1 年前3PlantUML 1.2019.6 Language Reference Guide
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: methods To declare fields and methods, you can use the symbol : followed by the field's or method's name. The system checks for parenthesis to choose between methods and fields. @startuml Object <|-- ArrayList group between brackets {} all fields and methods. Note that the syntax is highly flexible about type/name order. @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer0 码力 | 174 页 | 1.92 MB | 1 年前3PlantUML 1.2021.3 Language Reference Guide
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml 2.2 Actors The name defining an actor is enclosed between colons. You can also use the actor keyword to define an actor actor. An alias can be assigned using the as keyword and can be used later instead of the actor’s name, e. g. when defining relations. You can see from the following examples, that the actor definitions0 码力 | 416 页 | 4.33 MB | 1 年前3PlantUML 1.2020.22 Language Reference Guide
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml 2.2 Actors The name defining an actor is enclosed between colons. You can also use the actor keyword to define an actor actor. An alias can be assigned using the as keyword and can be used later instead of the actor's name, e. g. when defining relations. You can see from the following examples, that the actor definitions0 码力 | 299 页 | 3.07 MB | 1 年前3PlantUML 1.2021.2 Language Reference Guide
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml 2.2 Actors The name defining an actor is enclosed between colons. You can also use the actor keyword to define an actor actor. An alias can be assigned using the as keyword and can be used later instead of the actor’s name, e. g. when defining relations. You can see from the following examples, that the actor definitions0 码力 | 398 页 | 4.17 MB | 1 年前3Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2019.9)
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: methods To declare fields and methods, you can use the symbol : followed by the field's or method's name. The system checks for parenthesis to choose between methods and fields. @startuml Object <|-- ArrayList group between brackets {} all fields and methods. Note that the syntax is highly flexible about type/name order. @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer0 码力 | 175 页 | 1.95 MB | 1 年前3PlantUML 을사용해서 UML 그리기 - PlantUML 언어참조가이드(Version 1.2020.23)
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml 2.2 Actors The name defining an actor is enclosed between colons. You can also use the actor keyword to define an actor actor. An alias can be assigned using the as keyword and can be used later instead of the actor's name, e. g. when defining relations. You can see from the following examples, that the actor definitions0 码力 | 307 页 | 3.16 MB | 1 年前3PlantUML 1.2021.1 Language Reference Guide
drawing participant Alice participant "I have a really\nlong name" as L #99FF99 /' You can also declare: participant L as "I have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: usecase) (Another usecase) as (UC2) usecase UC3 usecase (Last\nusecase) as UC4 @enduml 2.2 Actors The name defining an actor is enclosed between colons. You can also use the actor keyword to define an actor actor. An alias can be assigned using the as keyword and can be used later instead of the actor’s name, e. g. when defining relations. You can see from the following examples, that the actor definitions0 码力 | 392 页 | 4.12 MB | 1 年前3
共 98 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10