Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JavaSchemaGeneratorImplementation |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2005-2011 Steve McDuff d-duff@users.sourceforge.net | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.deduced.generator.java; | |
17 | ||
18 | import java.io.IOException; | |
19 | ||
20 | import org.deduced.PropertyCollection; | |
21 | ||
22 | /** | |
23 | * Implementation of the java schema generator | |
24 | * | |
25 | * @author Steve McDuff | |
26 | */ | |
27 | 8 | public class JavaSchemaGeneratorImplementation implements JavaSchemaGenerator |
28 | { | |
29 | ||
30 | /** | |
31 | * (non-Javadoc) | |
32 | * | |
33 | * @see org.deduced.generator.java.JavaSchemaGenerator#generateSchemaFromModel(java.lang.String, | |
34 | * org.deduced.PropertyCollection) | |
35 | */ | |
36 | @Override | |
37 | public void generateSchemaFromModel( | |
38 | String outputFolderName, PropertyCollection<?, ?> schemaModelToGenerate) | |
39 | throws IOException | |
40 | { | |
41 | 6 | JavaGeneratorUtilities.generateSchemaFromModel(outputFolderName, |
42 | schemaModelToGenerate); | |
43 | 6 | } |
44 | ||
45 | /** | |
46 | * (non-Javadoc) | |
47 | * | |
48 | * @see org.deduced.generator.java.JavaSchemaGenerator#generateFilesForSchema(org.deduced.PropertyCollection, | |
49 | * org.deduced.PropertyCollection, java.lang.String) | |
50 | */ | |
51 | @Override | |
52 | public void generateFilesForSchema( | |
53 | PropertyCollection<?, ?> model, PropertyCollection<?, ?> schema, | |
54 | String outputFolderName) throws IOException | |
55 | { | |
56 | 2 | JavaGeneratorUtilities.generateFilesForSchema(model, schema, |
57 | outputFolderName); | |
58 | 2 | } |
59 | } |