Created
February 15, 2020 20:28
-
-
Save SaschaZ/a3fa3204ed2921980b3cfed48a8d5d6a to your computer and use it in GitHub Desktop.
smaplePuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
hide empty members | |
skinparam ArrowThickness 2 | |
skinparam class { | |
borderColor #000000 | |
backgroundColor #FFFFFF | |
} | |
skinparam package { | |
borderColor #000000 | |
backgroundColor #FFFFFF | |
} | |
skinparam shadowing true | |
namespace dev.zieger.plantuml { | |
class SomeData << (D,#00AFFE) >> { | |
data: String | |
} | |
class SimpleClass<< (C, #0AFFA0) >> { | |
simpleProperty: Int | |
testProp: Int | |
otherSimpleProperty: SomeData | |
someMethod(suffix; String): String | |
unitMethod(): Unit | |
unitMethod2(): String | |
toString(): String | |
} | |
interface SimpleInterface { | |
simpleProperty: Int | |
someMethod(suffix; String): String | |
implemented(): Int | |
} | |
interface TestInterface { | |
someProperty: Int | |
someMethod(): Double | |
} | |
hide stereotype | |
namespace TestObject <<Frame>> { | |
class SealedClass << (S,#FFBB00) >> { | |
} | |
class TestObject << (O,#FF0A60) >> { | |
} | |
} | |
class SxMacros<< (C, #0AFFA0) >> { | |
adCategories: List<String> | |
appName: String | |
blockedCategories: List<String> | |
breakPosition: String | |
clientUa: String | |
contentId: String | |
contentPlayhead: String | |
deviceIp: String | |
deviceUa: String | |
extension: List<String> | |
ifa: String | |
ifaType: String | |
inventoryState: List<String> | |
latLong: String | |
limitAdTracking: Boolean | |
mediaMime: List<String> | |
mediaPlayhead: String | |
placementType: Int | |
playerCapabilities: List<String> | |
regulations: List<String> | |
verificationVendors: List<String> | |
} | |
class **Globals** << (G, #FFFFFF) >> { | |
{static} boo: String | |
{static} testProperty: Int | |
{static} foo(): String | |
{static} Pair<A, B>.join(): String | |
} | |
namespace dev.zieger.plantuml.demo { | |
class OtherSimpleClass<< (C, #0AFFA0) >> { | |
testVal: Double | |
simpleProperty: Int | |
someMethod(suffix; String): String | |
} | |
namespace dev.zieger.plantuml.demo.sub { | |
hide stereotype | |
namespace TestClass <<Frame>> { | |
class TestObjectInside << (O,#FF0A60) >> { | |
{static} test(): Unit | |
} | |
class TestClassInsideClass<< (C, #0AFFA0) >> { | |
testMethod(): String | |
} | |
class TestClass << (D,#00AFFE) >> { | |
test0: Int | |
test1: Map<String, Pair<String, Int>> | |
} | |
} | |
hide stereotype | |
namespace SingleObject <<Frame>> { | |
enum SingleTestEnum { | |
EINS | |
ZWEI | |
DREI | |
} | |
class SingleObject << (O,#FF0A60) >> { | |
{static} prop0: String | |
{static} boo(): Unit | |
} | |
} | |
} | |
} | |
} | |
namespace i.am.independent { | |
hide stereotype | |
namespace IndependentClass <<Frame>> { | |
class ClassInside<< (C, #0AFFA0) >> { | |
nothingHere: Int | |
} | |
class InnerClassInside << (N,#CB0AFF) >> { | |
alsoNotMuchToSeeHere: Int | |
} | |
interface TestInterface { | |
iShouldBeIndependent(): Unit | |
} | |
class IndependentClass<< (C, #0AFFA0) >> { | |
foo: String | |
someAbstractVal: Int | |
ctorParam: Int | |
doIt(): Int | |
someAbstractMethod(): String | |
} | |
} | |
namespace i.am.independent.also { | |
class Extensions1<< (C, #0AFFA0) >> { | |
boo: String | |
String.foomoo(): Int | |
foo(): String | |
Double.sum(other; Float): String | |
} | |
class **Globals** << (G, #FFFFFF) >> { | |
{static} boo: String | |
{static} String.foo(): Int | |
{static} foo(): String | |
} | |
} | |
namespace i.am.independent.too { | |
hide stereotype | |
namespace AndAbstractWithCompanion <<Frame>> { | |
abstract AndAbstractWithCompanion << (A, #FF66FF) >> { | |
someAbstractVal: Int | |
ctorParam: Int | |
{abstract} someAbstractMethod(): String | |
} | |
class AndAbstractWithCompanionCompanion << (P,#FFFF00) >> { | |
{static} insideCompanion: Int | |
{static} INSIDE_COMPANION: String | |
{static} testVar: Boolean | |
{static} testVar2: Float | |
{static} doItBaby(): Unit | |
{static} getItBaby(): Double | |
} | |
} | |
class **Globals** << (G, #FFFFFF) >> { | |
{static} boo: String | |
{static} foo(): String | |
} | |
} | |
} | |
dev.zieger.plantuml.Member1 --|> dev.zieger.plantuml.SealedClass | |
dev.zieger.plantuml.Member2 --|> dev.zieger.plantuml.SealedClass | |
dev.zieger.plantuml.Member3 --|> dev.zieger.plantuml.SealedClass | |
dev.zieger.plantuml.MemberData --|> dev.zieger.plantuml.SealedClass | |
dev.zieger.plantuml.demo.OtherSimpleClass --|> dev.zieger.plantuml.SimpleInterface | |
dev.zieger.plantuml.SimpleClass --|> dev.zieger.plantuml.SimpleInterface | |
i.am.independent.IndependentClass.IndependentClass --|> i.am.independent.too.AndAbstractWithCompanion | |
i.am.independent.too.AndAbstractWithCompanion.AndAbstractWithCompanionCompanion <- i.am.independent.too.AndAbstractWithCompanion.AndAbstractWithCompanion | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment