⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 staticfactory.mdl

📁 java语言中简单工厂模式的例子
💻 MDL
📖 第 1 页 / 共 5 页
字号:
			opExportControl 	"Public"
			uid        	0))
		module     	"Component View::Strawberry"
		quidu      	"41A088BA01A5"
		language   	"Java")
	    (object Class "FruitGardener"
		attributes 	(list Attribute_Set
		    (object Attribute
			tool       	"Java"
			name       	"DisableAutoSync"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"Final"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"Static"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"Strictfp"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"GenerateDefaultConstructor"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"GenerateFinalizer"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"GenerateStaticInitializer"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"GenerateInstanceInitializer"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"GenerateCode"
			value      	TRUE)
		    (object Attribute
			tool       	"Java"
			name       	"ReadOnly"
			value      	FALSE)
		    (object Attribute
			tool       	"Java"
			name       	"GenerateFullyQualifiedExtends"
			value      	"")
		    (object Attribute
			tool       	"Java"
			name       	"GenerateFullyQualifiedImplements"
			value      	"")
		    (object Attribute
			tool       	"Java"
			name       	"ConstructorIs"
			value      	("Ctor_Set" 62)))
		quid       	"41A099090213"
		used_nodes 	(list uses_relationship_list
		    (object Uses_Relationship
			quid       	"41A09A5400AB"
			supplier   	"Logical View::Fruit"
			quidu      	"41A0862802DE"))
		operations 	(list Operations
		    (object Operation "Fruitfactory"
			attributes 	(list Attribute_Set
			    (object Attribute
				tool       	"Java"
				name       	"Static"
				value      	FALSE)
			    (object Attribute
				tool       	"Java"
				name       	"GenerateFullyQualifiedThrows"
				value      	""))
			quid       	"41A09922001F"
			parameters 	(list Parameters
			    (object Parameter "which"
				quid       	"41A099AE01D4"
				type       	"String"))
			result     	"void"
			exceptions 	"BadFruitException"
			concurrency 	"Sequential"
			opExportControl 	"Public"
			uid        	0))
		module     	"Component View::FruitGardener"
		quidu      	"41A09C390128"
		language   	"Java")
	    (object Class "BadFruitfactory"
		quid       	"41A09B4900EA"
		operations 	(list Operations
		    (object Operation "BadFruitfactory"
			attributes 	(list Attribute_Set
			    (object Attribute
				tool       	"Java"
				name       	"GenerateFullyQualifiedThrows"
				value      	""))
			quid       	"41A09C41033C"
			concurrency 	"Sequential"
			opExportControl 	"Public"
			uid        	0))
		module     	"Component View::BadFruitfactory"
		quidu      	"41A09C39012C"
		language   	"Java"))
	logical_presentations 	(list unit_reference_list
	    (object ClassDiagram "Main"
		quid       	"41A0854100DA"
		title      	"Main"
		zoom       	100
		max_height 	28350
		max_width  	21600
		origin_x   	0
		origin_y   	0
		items      	(list diagram_item_list))
	    (object ClassDiagram "Static Factory Pattern"
		quid       	"41A0856B00AB"
		title      	"Static Factory Pattern"
		zoom       	100
		max_height 	28350
		max_width  	21600
		origin_x   	26
		origin_y   	0
		items      	(list diagram_item_list
		    (object ClassView "Class" "Logical View::Fruit" @1
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(666, 177)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@1
			    location   	(665, 285)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	226
			    justify    	0
			    label      	"Fruit")
			icon       	"Interface"
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"41A0862802DE"
			compartment 	(object Compartment
			    Parent_View 	@1
			    location   	(562, 329)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    anchor     	2
			    nlines     	4
			    max_width  	203
			    justify    	0)
			width      	58
			height     	58
			annotation 	8
			autoResize 	TRUE)
		    (object ClassView "Class" "Logical View::Grape" @2
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(368, 1072)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@2
			    location   	(136, 839)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	464
			    justify    	0
			    label      	"Grape")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"41A08690008C"
			compartment 	(object Compartment
			    Parent_View 	@2
			    location   	(136, 906)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	8
			    max_width  	400)
			width      	482
			height     	494
			annotation 	8
			autoResize 	TRUE)
		    (object RealizeView "" @3
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"41A086DE031C"
			client     	@2
			supplier   	@1
			line_style 	0)
		    (object ClassView "Class" "Logical View::Apple" @4
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(897, 1072)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@4
			    location   	(730, 839)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	334
			    justify    	0
			    label      	"Apple")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"41A0874C0148"
			compartment 	(object Compartment
			    Parent_View 	@4
			    location   	(730, 906)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	8
			    max_width  	290)
			width      	352
			height     	494
			annotation 	8
			autoResize 	TRUE)
		    (object RealizeView "" @5
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"41A0881D0222"
			client     	@4
			supplier   	@1
			line_style 	0)
		    (object ClassView "Class" "Logical View::Strawberry" @6
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(1501, 994)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@6
			    location   	(1340, 836)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	322
			    justify    	0
			    label      	"Strawberry")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"41A08826000F"
			compartment 	(object Compartment
			    Parent_View 	@6
			    location   	(1340, 903)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	5
			    max_width  	278)
			width      	340
			height     	344
			annotation 	8
			autoResize 	TRUE)
		    (object RealizeView "" @7
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"41A088350157"
			client     	@6
			supplier   	@1
			line_style 	0)
		    (object ClassView "Class" "Logical View::FruitGardener" @8
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(1608, 180)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@8
			    location   	(1409, 97)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	398
			    justify    	0
			    label      	"FruitGardener")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"41A099090213"
			compartment 	(object Compartment
			    Parent_View 	@8
			    location   	(1409, 164)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	2
			    max_width  	287)
			width      	416
			height     	194
			annotation 	8
			autoResize 	TRUE)
		    (object UsesView "" @9
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"41A09A5400AB"
			client     	@8
			supplier   	@1
			line_style 	0)
		    (object ClassView "Class" "Logical View::BadFruitfactory" @10
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(1677, 459)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@10
			    location   	(1469, 348)
			    fill_color 	13434879
			    nlines     	2
			    max_width  	416
			    justify    	0
			    label      	"BadFruitfactory")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"41A09B4900EA"
			compartment 	(object Compartment
			    Parent_View 	@10
			    location   	(1469, 415)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	2
			    max_width  	350)
			width      	434
			height     	250
			annotation 	8
			autoResize 	TRUE)))))
    root_subsystem 	(object SubSystem "Component View"
	quid       	"41A08538008F"
	physical_models 	(list unit_reference_list
	    (object module "Fruit" "NotAModuleType" "NotAModulePart"
		attributes 	(list Attribute_Set
		    (object Attribute
			tool       	"Java"
			name       	"FileName"
			value      	"D:\\javaproject\\DesignPattern\\StaticFactoryPattern\\Fruit.java")
		    (object Attribute
			tool       	"Java"
			name       	"RootPath"
			value      	"D:\\javaproject\\DesignPattern\\StaticFactoryPattern"))
		quid       	"41A088A00213"
		stereotype 	""
		realized_interfaces 	(list realize_rel_list
		    (object Realize_Relationship
			quid       	"41A088CD033C"
			supplier   	"Logical View::Fruit"
			quidu      	"41A0862802DE"))
		language   	"Java")
	    (object module "Apple" "NotAModuleType" "NotAModulePart"
		attributes 	(list Attribute_Set
		    (object Attribute
			tool       	"Java"
			name       	"FileName"
			value      	"D:\\javaproject\\DesignPattern\\StaticFactoryPattern\\Apple.java")
		    (object Attribute
			tool       	"Java"
			name       	"RootPath"
			value      	"D:\\javaproject\\DesignPattern\\StaticFactoryPattern"))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -