use of org.finos.legend.engine.protocol.pure.v1.model.packageableElement.dataSpace.DataSpaceSupportEmail in project legend-engine by finos.
the class DataSpaceParseTreeWalker method visitDataSpaceSupportInfo.
// NOTE: for simplicity reason, in the grammar, we only support email address as the only support info type at the moment
// when there are more, we will handle the extension mechanism later
private DataSpaceSupportInfo visitDataSpaceSupportInfo(DataSpaceParserGrammar.SupportInfoContext ctx, SourceInformation dataSpaceSourceInformation) {
DataSpaceSupportEmail supportInfo = new DataSpaceSupportEmail();
// Email
DataSpaceParserGrammar.SupportEmailContext supportEmailContext = PureGrammarParserUtility.validateAndExtractRequiredField(ctx.supportEmail(), "address", dataSpaceSourceInformation);
supportInfo.address = PureGrammarParserUtility.fromGrammarString(supportEmailContext.STRING().getText(), true);
return supportInfo;
}
Aggregations