/** * Checks for validation errors in the proto definition and fills them * into the errors list. * * @return */ public void validate(List<String> errors) { for (ProtoDescriptor o : importProtoDescriptors.values()) { o.validate(errors); } for (OptionDescriptor o : options.values()) { o.validate(errors); } for (MessageDescriptor o : messages.values()) { o.validate(errors); } for (EnumDescriptor o : enums.values()) { o.validate(errors); } for (MessageDescriptor o : extendsList) { o.validate(errors); } for (ServiceDescriptor o : services.values()) { o.validate(errors); } }
/** * Checks for validation errors in the proto definition and fills them * into the errors list. * * @return */ public void validate(List<String> errors) { for (ProtoDescriptor o : importProtoDescriptors.values()) { o.validate(errors); } for (OptionDescriptor o : options.values()) { o.validate(errors); } for (MessageDescriptor o : messages.values()) { o.validate(errors); } for (EnumDescriptor o : enums.values()) { o.validate(errors); } for (MessageDescriptor o : extendsList) { o.validate(errors); } for (ServiceDescriptor o : services.values()) { o.validate(errors); } }
/** * Checks for validation errors in the proto definition and fills them * into the errors list. * * @return */ public void validate(List<String> errors) { for (ProtoDescriptor o : importProtoDescriptors.values()) { o.validate(errors); } for (OptionDescriptor o : options.values()) { o.validate(errors); } for (MessageDescriptor o : messages.values()) { o.validate(errors); } for (EnumDescriptor o : enums.values()) { o.validate(errors); } for (MessageDescriptor o : extendsList) { o.validate(errors); } for (ServiceDescriptor o : services.values()) { o.validate(errors); } }
proto.setName(file.getName()); loadImports(proto, file.getParentFile()); proto.validate(errors); } catch (FileNotFoundException e) { errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
proto.setName(file.getName()); loadImports(proto, file.getParentFile()); proto.validate(errors); } catch (FileNotFoundException e) { errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
proto.setName(file.getName()); loadImports(proto, file.getParentFile()); proto.validate(errors); } catch (FileNotFoundException e) { errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
proto.setName(file.getName()); loadImports(proto, file.getParentFile()); proto.validate(errors); } catch (FileNotFoundException e) { errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
proto.setName(file.getName()); loadImports(proto, file.getParentFile()); proto.validate(errors); } catch (FileNotFoundException e) { errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
proto.setName(file.getName()); loadImports(proto, file.getParentFile()); proto.validate(errors); } catch (FileNotFoundException e) { errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());