datahub.protobuf.visitors.ProtobufModelVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-protobuf Show documentation
Show all versions of datahub-protobuf Show documentation
DataHub integration with Protobuf schemas for metadata
package datahub.protobuf.visitors;
import datahub.protobuf.model.ProtobufElement;
import datahub.protobuf.model.ProtobufField;
import datahub.protobuf.model.ProtobufMessage;
import java.util.stream.Stream;
public interface ProtobufModelVisitor {
default Stream visitField(ProtobufField field, VisitContext context) {
return visitElement(field, context);
}
default Stream visitMessage(ProtobufMessage message, VisitContext context) {
return visitElement(message, context);
}
default Stream visitElement(ProtobufElement element, VisitContext context) {
return Stream.of();
}
default Stream visitGraph(VisitContext context) {
return Stream.of();
}
}