17
17
import org .jvnet .jaxb2_commons .xml .bind .model .MClassTypeInfo ;
18
18
import org .jvnet .jaxb2_commons .xml .bind .model .MPropertyInfo ;
19
19
20
- public class JsonSchemaClassInfoCompiler <T , C extends T > implements
21
- JsonSchemaTypeInfoCompiler <MClassInfo <T , C >, T , C > {
20
+ public class JsonSchemaClassInfoProducer <T , C extends T > implements
21
+ JsonSchemaTypeInfoProducer <MClassInfo <T , C >, T , C > {
22
22
23
23
private final JsonSchemaMappingCompiler <T , C > mappingCompiler ;
24
24
private final Mapping <T , C > mapping ;
25
25
26
- public JsonSchemaClassInfoCompiler (
26
+ public JsonSchemaClassInfoProducer (
27
27
JsonSchemaMappingCompiler <T , C > mappingCompiler ) {
28
28
Validate .notNull (mappingCompiler );
29
29
this .mappingCompiler = mappingCompiler ;
@@ -35,7 +35,7 @@ public JsonSchemaMappingCompiler<T, C> getMappingCompiler() {
35
35
}
36
36
37
37
@ Override
38
- public JsonSchemaBuilder compile (MClassInfo <T , C > classInfo ) {
38
+ public JsonSchemaBuilder produce (MClassInfo <T , C > classInfo ) {
39
39
final JsonSchemaBuilder classInfoSchema = new JsonSchemaBuilder ();
40
40
classInfoSchema .addType (JsonSchemaConstants .OBJECT_TYPE );
41
41
final String localName = classInfo
@@ -85,7 +85,7 @@ private Map<String, JsonSchemaBuilder> compilePropertyInfos(
85
85
propertyInfoSchemas
86
86
.put (propertyInfo .getPrivateName (),
87
87
propertyInfo
88
- .acceptPropertyInfoVisitor (new JsonSchemaPropertyInfoCompilerVisitor <T , C >(
88
+ .acceptPropertyInfoVisitor (new JsonSchemaPropertyInfoProducerVisitor <T , C >(
89
89
this )));
90
90
}
91
91
}
0 commit comments