Skip to content

Commit 65afe6f

Browse files
committed
+ missing files
+ re-enable timestamps for examples
1 parent 9ef1b74 commit 65afe6f

11 files changed

Lines changed: 190 additions & 6 deletions

File tree

src/test/java/unquietcode/tools/flapi/examples/calculator/CalculatorBuilderExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public Descriptor descriptor() {
4343
return Flapi.create(Calculator.class)
4444
.setPackage("unquietcode.tools.flapi.examples.calculator.builder")
4545
.setStartingMethodName("begin")
46-
.disableTimestamps()
4746
.build();
4847
}
4948

src/test/java/unquietcode/tools/flapi/examples/email/EmailBuilderExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public Descriptor descriptor() {
3636
.setPackage("unquietcode.tools.flapi.examples.email.builder")
3737
.setStartingMethodName("compose")
3838
.setDescriptorName("Email")
39-
.disableTimestamps()
4039

4140
.addMethod("subject(String subject)").atMost(1)
4241
.addMethod("addRecipient(String emailAddress)").atLeast(1)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
/*********************************************************************
3+
Copyright 2015 the Flapi authors
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
********************************************************************/
17+
18+
package unquietcode.tools.flapi.examples.email.builder.Email;
19+
20+
import unquietcode.tools.flapi.examples.email.builder.Email.EmailBuilder.Start;
21+
22+
import javax.annotation.Generated;
23+
24+
25+
/**
26+
* This class was generated using Flapi, the fluent API generator for Java.
27+
* Modifications to this file will be lost upon regeneration.
28+
* You have been warned!
29+
*
30+
* Visit https://github.com/UnquietCode/Flapi for more information.
31+
*
32+
*
33+
* Generated using version 0.0-DEVELOPMENT
34+
*/
35+
@Generated(value = "unquietcode.tools.flapi", comments = "generated using Flapi, the fluent API generator for Java, version 0.0-DEVELOPMENT")
36+
public interface EmailFactory {
37+
Start<Void> compose();
38+
}

src/test/java/unquietcode/tools/flapi/examples/house/HouseBuilderExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public Descriptor descriptor() {
3636
return Flapi.builder()
3737
.setDescriptorName("House")
3838
.setPackage("unquietcode.tools.flapi.examples.house.builder")
39-
.disableTimestamps()
4039

4140
.startBlock("Wall", "addWall()").last(Wall.class)
4241
.addMethod("setColor(java.awt.Color color)").atMost(1)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
/*********************************************************************
3+
Copyright 2015 the Flapi authors
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
********************************************************************/
17+
18+
package unquietcode.tools.flapi.examples.house.builder.House;
19+
20+
import unquietcode.tools.flapi.examples.house.builder.House.HouseBuilder.Start;
21+
22+
import javax.annotation.Generated;
23+
24+
25+
/**
26+
* This class was generated using Flapi, the fluent API generator for Java.
27+
* Modifications to this file will be lost upon regeneration.
28+
* You have been warned!
29+
*
30+
* Visit https://github.com/UnquietCode/Flapi for more information.
31+
*
32+
*
33+
* Generated using version 0.0-DEVELOPMENT
34+
*/
35+
@Generated(value = "unquietcode.tools.flapi", comments = "generated using Flapi, the fluent API generator for Java, version 0.0-DEVELOPMENT")
36+
public interface HouseFactory {
37+
Start<Void> create();
38+
}

src/test/java/unquietcode/tools/flapi/examples/pipes/PipedProcessExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public Descriptor descriptor() {
3939
.setDescriptorName("Process")
4040
.setPackage("unquietcode.tools.flapi.examples.pipes.builder")
4141
.setStartingMethodName("begin")
42-
.disableTimestamps()
4342

4443
.addMethod("withProcess(String name)").exactly(1)
4544
.addMethod("addArgument(String argument)").any()
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
/*********************************************************************
3+
Copyright 2015 the Flapi authors
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
********************************************************************/
17+
18+
package unquietcode.tools.flapi.examples.pipes.builder.Process;
19+
20+
import unquietcode.tools.flapi.examples.pipes.builder.Process.ProcessBuilder.Start;
21+
22+
import javax.annotation.Generated;
23+
24+
25+
/**
26+
* This class was generated using Flapi, the fluent API generator for Java.
27+
* Modifications to this file will be lost upon regeneration.
28+
* You have been warned!
29+
*
30+
* Visit https://github.com/UnquietCode/Flapi for more information.
31+
*
32+
*
33+
* Generated using version 0.0-DEVELOPMENT
34+
*/
35+
@Generated(value = "unquietcode.tools.flapi", comments = "generated using Flapi, the fluent API generator for Java, version 0.0-DEVELOPMENT")
36+
public interface ProcessFactory {
37+
Start<Void> begin();
38+
}

src/test/java/unquietcode/tools/flapi/examples/pizza/DisappearingPizzaExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public Descriptor descriptor() {
3939
.setPackage("unquietcode.tools.flapi.examples.pizza.builder")
4040
.setStartingMethodName("makePizza")
4141
.setDescriptorName("Pizza")
42-
.disableTimestamps()
4342

4443
.addMethod("addSauce(unquietcode.tools.flapi.examples.pizza.DisappearingPizzaExample.SauceType sauceType)").atMost(1)
4544
.addMethod("addCheese()").atMost(1)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
/*********************************************************************
3+
Copyright 2015 the Flapi authors
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
********************************************************************/
17+
18+
package unquietcode.tools.flapi.examples.pizza.builder.Pizza;
19+
20+
import unquietcode.tools.flapi.examples.pizza.builder.Pizza.PizzaBuilder.Start;
21+
22+
import javax.annotation.Generated;
23+
24+
25+
/**
26+
* This class was generated using Flapi, the fluent API generator for Java.
27+
* Modifications to this file will be lost upon regeneration.
28+
* You have been warned!
29+
*
30+
* Visit https://github.com/UnquietCode/Flapi for more information.
31+
*
32+
*
33+
* Generated using version 0.0-DEVELOPMENT
34+
*/
35+
@Generated(value = "unquietcode.tools.flapi", comments = "generated using Flapi, the fluent API generator for Java, version 0.0-DEVELOPMENT")
36+
public interface PizzaFactory {
37+
Start<Void> makePizza();
38+
}

src/test/java/unquietcode/tools/flapi/examples/xhtml/XHTMLBuilderExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public Descriptor descriptor() {
4848
.setPackage("unquietcode.tools.flapi.examples.xhtml.builder")
4949
.setStartingMethodName("createDocument")
5050
.setDescriptorName("XHTML")
51-
.disableTimestamps()
5251

5352
.addMethod("addComment(String comment)").any()
5453
.addMethod("done()").last(Document.class)

0 commit comments

Comments
 (0)