Search in sources :

Example 1 with DataSpaceSupportEmail

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;
}
Also used : DataSpaceParserGrammar(org.finos.legend.engine.language.pure.grammar.from.antlr4.DataSpaceParserGrammar) DataSpaceSupportEmail(org.finos.legend.engine.protocol.pure.v1.model.packageableElement.dataSpace.DataSpaceSupportEmail)

Aggregations

DataSpaceParserGrammar (org.finos.legend.engine.language.pure.grammar.from.antlr4.DataSpaceParserGrammar)1 DataSpaceSupportEmail (org.finos.legend.engine.protocol.pure.v1.model.packageableElement.dataSpace.DataSpaceSupportEmail)1