Пример #1
0
  public void optimize() {
    optimizeResourceMap(coreRaml.getResources());
    coreRaml.visit(
        new RamlFileVisitorAdapter() {

          public boolean startVisit(Resource resource) {
            optimizeResourceMap(resource.getResources());
            return super.startVisit(resource);
          }
        });
  }
Пример #2
0
 public String getMediaType() {
   return coreRaml.getMediaType();
 }
Пример #3
0
 public RAMLModelHelper() {
   coreRaml.setBaseUri("http://example.com");
   coreRaml.setTitle("Please type API title here");
   coreRaml.setProtocols(Collections.singletonList(Protocol.HTTP));
 }
Пример #4
0
 public void setMediaType(String mediaType) {
   coreRaml.setMediaType(mediaType);
 }