public void optimize() { optimizeResourceMap(coreRaml.getResources()); coreRaml.visit( new RamlFileVisitorAdapter() { public boolean startVisit(Resource resource) { optimizeResourceMap(resource.getResources()); return super.startVisit(resource); } }); }
public String getMediaType() { return coreRaml.getMediaType(); }
public RAMLModelHelper() { coreRaml.setBaseUri("http://example.com"); coreRaml.setTitle("Please type API title here"); coreRaml.setProtocols(Collections.singletonList(Protocol.HTTP)); }
public void setMediaType(String mediaType) { coreRaml.setMediaType(mediaType); }