@Test public void detectsUnresolvedImports() { Assertions.assertThrows(RuntimeException.class, () -> new ModelAssembler().addImport("/bad/path")); }
public ModelAssembler addImport(String importPath) { return addImport(Paths.get(Objects.requireNonNull(importPath, "importPath must not be null"))); }
ModelAssembler { public ModelAssembler addImport(String importPath) { return addImport(Paths.get(Objects.requireNonNull(importPath, "importPath must not be null"))); } }
ModelAssembler { public ModelAssembler addImport(String importPath) { return addImport(Paths.get(Objects.requireNonNull(importPath, "importPath must not be null"))); }  }
ModelAssembler { public ModelAssembler addImport(String importPath) { return addImport(Paths.get(Objects.requireNonNull(importPath, "importPath must not be null"))); }  ModelAssembler copy(); ModelAssembler reset(); ModelAssembler traitFactory(TraitFactory traitFactory); ModelAssembler validatorFactory(ValidatorFactory validatorFactory); ModelAssembler addValidator(Validator validator); ModelAssembler addUnparsedModel(String sourceLocation, String model); ModelAssembler addDocumentNode(Node document); ModelAssembler addImport(String importPath); ModelAssembler addImport(Path importPath); ModelAssembler addImport(URL url); ModelAssembler disablePrelude(); ModelAssembler addShape(Shape shape); ModelAssembler addShapes(Shape... shapes); ModelAssembler addTrait(ShapeId target, Trait trait); ModelAssembler addModel(Model model); ModelAssembler putMetadata(String name, Node value); ModelAssembler discoverModels(ClassLoader loader); ModelAssembler discoverModels(); ModelAssembler putProperty(String setting, Object value); ModelAssembler removeProperty(String setting); ModelAssembler disableValidation(); ValidatedResult<Model> assemble(); }
ModelAssembler { public ModelAssembler addImport(String importPath) { return addImport(Paths.get(Objects.requireNonNull(importPath, "importPath must not be null"))); }  ModelAssembler copy(); ModelAssembler reset(); ModelAssembler traitFactory(TraitFactory traitFactory); ModelAssembler validatorFactory(ValidatorFactory validatorFactory); ModelAssembler addValidator(Validator validator); ModelAssembler addUnparsedModel(String sourceLocation, String model); ModelAssembler addDocumentNode(Node document); ModelAssembler addImport(String importPath); ModelAssembler addImport(Path importPath); ModelAssembler addImport(URL url); ModelAssembler disablePrelude(); ModelAssembler addShape(Shape shape); ModelAssembler addShapes(Shape... shapes); ModelAssembler addTrait(ShapeId target, Trait trait); ModelAssembler addModel(Model model); ModelAssembler putMetadata(String name, Node value); ModelAssembler discoverModels(ClassLoader loader); ModelAssembler discoverModels(); ModelAssembler putProperty(String setting, Object value); ModelAssembler removeProperty(String setting); ModelAssembler disableValidation(); ValidatedResult<Model> assemble(); static final String ALLOW_UNKNOWN_TRAITS; static final String DISABLE_JAR_CACHE; }