Changed package naming across all examples.
This commit is contained in:
parent
703ebd3e20
commit
8524c75ba6
@ -1,183 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<class-diagram version="1.1.7" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
||||
<class-diagram version="1.1.8" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
||||
associations="true" dependencies="false" nesting-relationships="true">
|
||||
<class id="1" language="java" name="com.iluwatar.OrcArmy" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/OrcArmy.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="240" y="222"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<interface id="2" language="java" name="com.iluwatar.KingdomFactory" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/KingdomFactory.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="578" y="67"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</interface>
|
||||
<class id="3" language="java" name="com.iluwatar.OrcKing" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/OrcKing.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="505" y="224"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<interface id="4" language="java" name="com.iluwatar.Castle" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/Castle.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="610" y="458"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</interface>
|
||||
<class id="5" language="java" name="com.iluwatar.OrcCastle" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/OrcCastle.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="369" y="225"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<interface id="6" language="java" name="com.iluwatar.Army" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/Army.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="611" y="557"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</interface>
|
||||
<class id="7" language="java" name="com.iluwatar.ElfCastle" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/ElfCastle.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="806" y="225"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<interface id="8" language="java" name="com.iluwatar.King" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/King.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="604" y="365"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</interface>
|
||||
<class id="9" language="java" name="com.iluwatar.OrcKingdomFactory" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/OrcKingdomFactory.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="341" y="69"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="10" language="java" name="com.iluwatar.ElfArmy" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/ElfArmy.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="952" y="218"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="11" language="java" name="com.iluwatar.ElfKingdomFactory" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/ElfKingdomFactory.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="817" y="61"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="12" language="java" name="com.iluwatar.ElfKing" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/ElfKing.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="667" y="227"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="13" language="java" name="com.iluwatar.App" project="abstract-factory"
|
||||
file="/abstract-factory/src/main/java/com/iluwatar/App.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="585" y="-109"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<realization id="14">
|
||||
<end type="SOURCE" refId="5"/>
|
||||
<end type="TARGET" refId="4"/>
|
||||
</realization>
|
||||
<dependency id="15">
|
||||
<end type="SOURCE" refId="9"/>
|
||||
<end type="TARGET" refId="5"/>
|
||||
</dependency>
|
||||
<realization id="16">
|
||||
<end type="SOURCE" refId="12"/>
|
||||
<end type="TARGET" refId="8"/>
|
||||
</realization>
|
||||
<realization id="17">
|
||||
<end type="SOURCE" refId="9"/>
|
||||
<end type="TARGET" refId="2"/>
|
||||
</realization>
|
||||
<dependency id="18">
|
||||
<end type="SOURCE" refId="9"/>
|
||||
<end type="TARGET" refId="1"/>
|
||||
</dependency>
|
||||
<dependency id="19">
|
||||
<end type="SOURCE" refId="9"/>
|
||||
<end type="TARGET" refId="3"/>
|
||||
</dependency>
|
||||
<realization id="20">
|
||||
<end type="SOURCE" refId="10"/>
|
||||
<end type="TARGET" refId="6"/>
|
||||
</realization>
|
||||
<dependency id="21">
|
||||
<end type="SOURCE" refId="11"/>
|
||||
<end type="TARGET" refId="10"/>
|
||||
</dependency>
|
||||
<realization id="22">
|
||||
<end type="SOURCE" refId="1"/>
|
||||
<end type="TARGET" refId="6"/>
|
||||
</realization>
|
||||
<dependency id="23">
|
||||
<end type="SOURCE" refId="13"/>
|
||||
<end type="TARGET" refId="2"/>
|
||||
</dependency>
|
||||
<realization id="24">
|
||||
<end type="SOURCE" refId="3"/>
|
||||
<end type="TARGET" refId="8"/>
|
||||
</realization>
|
||||
<dependency id="25">
|
||||
<end type="SOURCE" refId="11"/>
|
||||
<end type="TARGET" refId="7"/>
|
||||
</dependency>
|
||||
<realization id="26">
|
||||
<end type="SOURCE" refId="11"/>
|
||||
<end type="TARGET" refId="2"/>
|
||||
</realization>
|
||||
<dependency id="27">
|
||||
<end type="SOURCE" refId="11"/>
|
||||
<end type="TARGET" refId="12"/>
|
||||
</dependency>
|
||||
<realization id="28">
|
||||
<end type="SOURCE" refId="7"/>
|
||||
<end type="TARGET" refId="4"/>
|
||||
</realization>
|
||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
|
@ -1,5 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public interface Army {
|
||||
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public interface Castle {
|
||||
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public interface King {
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
/**
|
||||
*
|
@ -0,0 +1,5 @@
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public interface Army {
|
||||
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public interface Castle {
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public class ElfArmy implements Army {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public class ElfCastle implements Castle {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public class ElfKing implements King {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
/**
|
||||
*
|
@ -0,0 +1,5 @@
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public interface King {
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public class OrcArmy implements Army {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public class OrcCastle implements Castle {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
public class OrcKing implements King {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
|
||||
/**
|
||||
*
|
@ -1,7 +1,7 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.abstractfactory;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.App;
|
||||
import com.iluwatar.abstractfactory.App;
|
||||
|
||||
public class AppTest {
|
||||
|
@ -1,81 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<class-diagram version="1.1.7" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
||||
<class-diagram version="1.1.8" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
||||
associations="true" dependencies="false" nesting-relationships="true">
|
||||
<class id="1" language="java" name="com.iluwatar.GnomeEngineeringManager" project="adapter"
|
||||
file="/adapter/src/main/java/com/iluwatar/GnomeEngineeringManager.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="361" y="116"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<interface id="2" language="java" name="com.iluwatar.Engineer" project="adapter"
|
||||
file="/adapter/src/main/java/com/iluwatar/Engineer.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="427" y="309"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</interface>
|
||||
<class id="3" language="java" name="com.iluwatar.App" project="adapter"
|
||||
file="/adapter/src/main/java/com/iluwatar/App.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="350" y="-46"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="4" language="java" name="com.iluwatar.GnomeEngineer" project="adapter"
|
||||
file="/adapter/src/main/java/com/iluwatar/GnomeEngineer.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="593" y="115"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="5" language="java" name="com.iluwatar.GoblinGlider" project="adapter"
|
||||
file="/adapter/src/main/java/com/iluwatar/GoblinGlider.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="725" y="337"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<realization id="6">
|
||||
<end type="SOURCE" refId="4"/>
|
||||
<end type="TARGET" refId="2"/>
|
||||
</realization>
|
||||
<association id="7">
|
||||
<end type="SOURCE" refId="4" navigable="false">
|
||||
<attribute id="8" name="glider"/>
|
||||
<multiplicity id="9" minimum="0" maximum="1"/>
|
||||
</end>
|
||||
<end type="TARGET" refId="5" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<realization id="10">
|
||||
<bendpoint x="336" y="220"/>
|
||||
<end type="SOURCE" refId="1"/>
|
||||
<end type="TARGET" refId="2"/>
|
||||
</realization>
|
||||
<dependency id="11">
|
||||
<end type="SOURCE" refId="3"/>
|
||||
<end type="TARGET" refId="1"/>
|
||||
</dependency>
|
||||
<association id="12">
|
||||
<bendpoint x="432" y="215"/>
|
||||
<end type="SOURCE" refId="1" navigable="false">
|
||||
<attribute id="13" name="engineer"/>
|
||||
<multiplicity id="14" minimum="0" maximum="1"/>
|
||||
</end>
|
||||
<end type="TARGET" refId="2" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.adapter;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.adapter;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.adapter;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.adapter;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.adapter;
|
||||
|
||||
/**
|
||||
*
|
14
adapter/src/test/java/com/iluwatar/adapter/AppTest.java
Normal file
14
adapter/src/test/java/com/iluwatar/adapter/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.iluwatar.adapter;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.adapter.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,149 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<class-diagram version="1.1.7" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
||||
<class-diagram version="1.1.8" icons="true" always-add-relationships="false" generalizations="true" realizations="true"
|
||||
associations="true" dependencies="false" nesting-relationships="true">
|
||||
<class id="1" language="java" name="com.iluwatar.MagicWeapon" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/MagicWeapon.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="580" y="196"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="2" language="java" name="com.iluwatar.Mjollnir" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/Mjollnir.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="839" y="720"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="3" language="java" name="com.iluwatar.SoulEatingMagicWeaponImp" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/SoulEatingMagicWeaponImp.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="318" y="544"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="4" language="java" name="com.iluwatar.SoulEatingMagicWeapon" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/SoulEatingMagicWeapon.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="228" y="-31"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="5" language="java" name="com.iluwatar.MagicWeaponImp" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/MagicWeaponImp.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="583" y="396"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="6" language="java" name="com.iluwatar.Stormbringer" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/Stormbringer.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="324" y="721"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="7" language="java" name="com.iluwatar.BlindingMagicWeapon" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/BlindingMagicWeapon.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="575" y="-32"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="8" language="java" name="com.iluwatar.BlindingMagicWeaponImp" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/BlindingMagicWeaponImp.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="589" y="544"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="9" language="java" name="com.iluwatar.FlyingMagicWeaponImp" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/FlyingMagicWeaponImp.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="835" y="545"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="10" language="java" name="com.iluwatar.Excalibur" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/Excalibur.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="584" y="715"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="11" language="java" name="com.iluwatar.FlyingMagicWeapon" project="bridge"
|
||||
file="/bridge/src/main/java/com/iluwatar/FlyingMagicWeapon.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="901" y="-29"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<generalization id="12">
|
||||
<end type="SOURCE" refId="11"/>
|
||||
<end type="TARGET" refId="1"/>
|
||||
</generalization>
|
||||
<generalization id="13">
|
||||
<end type="SOURCE" refId="2"/>
|
||||
<end type="TARGET" refId="9"/>
|
||||
</generalization>
|
||||
<generalization id="14">
|
||||
<end type="SOURCE" refId="3"/>
|
||||
<end type="TARGET" refId="5"/>
|
||||
</generalization>
|
||||
<generalization id="15">
|
||||
<end type="SOURCE" refId="8"/>
|
||||
<end type="TARGET" refId="5"/>
|
||||
</generalization>
|
||||
<generalization id="16">
|
||||
<end type="SOURCE" refId="6"/>
|
||||
<end type="TARGET" refId="3"/>
|
||||
</generalization>
|
||||
<generalization id="17">
|
||||
<end type="SOURCE" refId="10"/>
|
||||
<end type="TARGET" refId="8"/>
|
||||
</generalization>
|
||||
<generalization id="18">
|
||||
<end type="SOURCE" refId="7"/>
|
||||
<end type="TARGET" refId="1"/>
|
||||
</generalization>
|
||||
<generalization id="19">
|
||||
<end type="SOURCE" refId="9"/>
|
||||
<end type="TARGET" refId="5"/>
|
||||
</generalization>
|
||||
<association id="20">
|
||||
<end type="SOURCE" refId="1" navigable="false">
|
||||
<attribute id="21" name="imp"/>
|
||||
<multiplicity id="22" minimum="0" maximum="1"/>
|
||||
</end>
|
||||
<end type="TARGET" refId="5" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<generalization id="23">
|
||||
<end type="SOURCE" refId="4"/>
|
||||
<end type="TARGET" refId="1"/>
|
||||
</generalization>
|
||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public class BlindingMagicWeapon extends MagicWeapon {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public abstract class BlindingMagicWeaponImp extends MagicWeaponImp {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public class Excalibur extends BlindingMagicWeaponImp {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public class FlyingMagicWeapon extends MagicWeapon {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public abstract class FlyingMagicWeaponImp extends MagicWeaponImp {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public class Mjollnir extends FlyingMagicWeaponImp {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public class SoulEatingMagicWeapon extends MagicWeapon {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public abstract class SoulEatingMagicWeaponImp extends MagicWeaponImp {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
public class Stormbringer extends SoulEatingMagicWeaponImp {
|
||||
|
14
bridge/src/test/java/com/iluwatar/bridge/AppTest.java
Normal file
14
bridge/src/test/java/com/iluwatar/bridge/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.iluwatar.bridge;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.bridge.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.builder;
|
||||
|
||||
import com.iluwatar.Hero.HeroBuilder;
|
||||
import com.iluwatar. builder.Hero.HeroBuilder;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.builder;
|
||||
|
||||
public enum Armor {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.builder;
|
||||
|
||||
public enum HairColor {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.builder;
|
||||
|
||||
public enum HairType {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.builder;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.builder;
|
||||
|
||||
public enum Profession {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.builder;
|
||||
|
||||
public enum Weapon {
|
||||
|
14
builder/src/test/java/com/iluwatar/builder/AppTest.java
Normal file
14
builder/src/test/java/com/iluwatar/builder/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.iluwatar.builder;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar. builder.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.callback;
|
||||
|
||||
/**
|
||||
* Callback pattern is more native for functional languages where function is treated as first-class citizen.
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.callback;
|
||||
|
||||
/**
|
||||
* Callback interface
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.callback;
|
||||
|
||||
/**
|
||||
* Implementation of task that need to be executed
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.callback;
|
||||
|
||||
/**
|
||||
* Template-method class for callback hook execution
|
@ -1,12 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
package com.iluwatar.app;
|
||||
package com.iluwatar.callback;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.app.App;
|
||||
import com.iluwatar.callback.App;
|
||||
|
||||
public class AppTest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
public class OrcCommander extends RequestHandler {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
public class OrcOfficer extends RequestHandler {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
public class OrcSoldier extends RequestHandler {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
public class Request {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
public abstract class RequestHandler {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.chain;
|
||||
|
||||
public enum RequestType {
|
||||
|
@ -1,12 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
14
chain/src/test/java/com/iluwatar/chain/AppTest.java
Normal file
14
chain/src/test/java/com/iluwatar/chain/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.iluwatar.chain;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.chain.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
public class Goblin extends Target {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
public class InvisibilitySpell extends Command {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
public class ShrinkSpell extends Command {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.command;
|
||||
|
||||
import java.util.Deque;
|
||||
import java.util.LinkedList;
|
@ -1,12 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
14
command/src/test/java/com/iluwatar/command/AppTest.java
Normal file
14
command/src/test/java/com/iluwatar/command/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.iluwatar.command;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.command.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.composite;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.composite;
|
||||
|
||||
public class Letter extends LetterComposite {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.composite;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.composite;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.composite;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.composite;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,12 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
14
composite/src/test/java/com/iluwatar/composite/AppTest.java
Normal file
14
composite/src/test/java/com/iluwatar/composite/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.iluwatar.composite;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.composite.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dao;
|
||||
|
||||
public class Customer {
|
||||
private int id;
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,12 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,7 +1,9 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dao;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.dao.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.decorator;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.decorator;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.decorator;
|
||||
|
||||
/**
|
||||
* SmartTroll is a decorator for Hostile objects.
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.decorator;
|
||||
|
||||
/**
|
||||
*
|
@ -1,12 +0,0 @@
|
||||
package com.iluwatar;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
14
decorator/src/test/java/com/iluwatar/decorator/AppTest.java
Normal file
14
decorator/src/test/java/com/iluwatar/decorator/AppTest.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.iluwatar.decorator;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.decorator.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dependencyinjection;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dependencyinjection;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dependencyinjection;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dependencyinjection;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dependencyinjection;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package com.iluwatar;
|
||||
package com.iluwatar.dependencyinjection;
|
||||
|
||||
/**
|
||||
*
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user