public class TemplateSpecGenerator
extends java.lang.Object
ClassTemplateSpec from DataSchema.| Constructor and Description |
|---|
TemplateSpecGenerator(com.linkedin.data.schema.DataSchemaResolver schemaResolver) |
TemplateSpecGenerator(com.linkedin.data.schema.DataSchemaResolver schemaResolver,
java.lang.String customTypeLanguage,
java.lang.String templatePackageName) |
| Modifier and Type | Method and Description |
|---|---|
ClassTemplateSpec |
generate(com.linkedin.data.schema.DataSchema schema,
com.linkedin.data.schema.DataSchemaLocation location)
Generate
ClassTemplateSpec from the specified DataSchema and its location. |
com.linkedin.data.schema.DataSchemaLocation |
getClassLocation(ClassTemplateSpec classSpec) |
static com.linkedin.pegasus.generator.TemplateSpecGenerator.CustomClasses |
getCustomClasses(com.linkedin.data.schema.DataSchema schema,
java.lang.String customTypeLanguage) |
java.util.Collection<ClassTemplateSpec> |
getGeneratedSpecs() |
void |
registerDefinedSchema(com.linkedin.data.schema.DataSchema schema)
Instead of generate spec for the specify
DataSchema, assume it is already defined in the system. |
public TemplateSpecGenerator(com.linkedin.data.schema.DataSchemaResolver schemaResolver)
public TemplateSpecGenerator(com.linkedin.data.schema.DataSchemaResolver schemaResolver,
java.lang.String customTypeLanguage,
java.lang.String templatePackageName)
public com.linkedin.data.schema.DataSchemaLocation getClassLocation(ClassTemplateSpec classSpec)
ClassTemplateSpec is originated, most likely the pdsc file that defines itpublic void registerDefinedSchema(com.linkedin.data.schema.DataSchema schema)
DataSchema, assume it is already defined in the system.public ClassTemplateSpec generate(com.linkedin.data.schema.DataSchema schema, com.linkedin.data.schema.DataSchemaLocation location)
ClassTemplateSpec from the specified DataSchema and its location.public java.util.Collection<ClassTemplateSpec> getGeneratedSpecs()
public static com.linkedin.pegasus.generator.TemplateSpecGenerator.CustomClasses getCustomClasses(com.linkedin.data.schema.DataSchema schema,
java.lang.String customTypeLanguage)