public void process(DmdlSemantics environment, ModelDeclaration declaration, AstAttribute attribute) {
Map<String, AstAttributeElement> elements = AttributeUtil.getElementMap(attribute);
ParquetFileTrait trait = analyzeElements(environment, attribute, elements);
declaration.putTrait(ParquetFileTrait.class, trait);
HiveDataModelTrait baseTrait = HiveDataModelTrait.get(declaration);
baseTrait.addDataFormatNamer(new Namer() {
@Override
public Name computeName(EmitContext context, ModelDeclaration model) {
return ParquetFileEmitter.getClassName(context, model);
}
});
baseTrait.setOriginalAst(attribute, false);
}