| Modifier and Type | Method and Description |
|---|---|
RamlRoot |
ApiResourceMetadata.getDocument() |
| Constructor and Description |
|---|
ApiResourceMetadata(String controllerUrl,
RamlResource resource,
String basePackage,
RamlRoot document) |
| Modifier and Type | Method and Description |
|---|---|
RamlRoot |
RamlGenerator.getRaml()
Returns the RAML Model
|
static RamlRoot |
RamlVerifier.loadRamlFromFile(String ramlFileUrl)
Loads a RAML document from a file.
|
static RamlRoot |
RamlParser.loadRamlFromFile(String ramlFileUrl)
Loads a RAML document from a file.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ApiResourceMetadata> |
RamlParser.checkResource(String baseUrl,
RamlResource resource,
ApiResourceMetadata controller,
RamlRoot document)
Recursive method to parse resources in a Raml File.
|
Set<ApiResourceMetadata> |
RamlParser.extractControllers(RamlRoot raml)
This method will extract a set of controllers from the RAML file.
|
| Constructor and Description |
|---|
RamlVerifier(RamlRoot published,
RamlRoot implemented,
List<RamlChecker> checkers,
List<RamlActionVisitorCheck> actionCheckers,
List<RamlResourceVisitorCheck> resourceCheckers)
Constructor which will accept target/implementation RAML models as well as the the checkers to be applied.
|
RamlVerifier(RamlRoot published,
RamlRoot implemented,
List<RamlChecker> checkers,
List<RamlActionVisitorCheck> actionCheckers,
List<RamlResourceVisitorCheck> resourceCheckers,
List<RamlStyleChecker> styleChecks)
Constructor which will accept target/implementation RAML models as well as the the checkers and style checkers to verify.
|
RamlVerifier(RamlRoot published,
RamlRoot implemented,
List<RamlChecker> checkers,
List<RamlActionVisitorCheck> actionCheckers,
List<RamlResourceVisitorCheck> resourceCheckers,
List<RamlStyleChecker> styleChecks,
String implementedUrlPrefixToIgnore)
Constructor which will accept target/implementation RAML models as well as the the checkers and style checkers to verify.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SchemaHelper.containsBodySchema(Map<String,RamlMimeType> body,
RamlRoot document,
boolean checkForValidSchema)
Checks if a Map of mime types contains at least 1 valid JsonSchema.
|
static ApiBodyMetadata |
SchemaHelper.mapSchemaToPojo(RamlRoot document,
String schema,
String basePackage,
String name,
String schemaLocation)
Maps a JSON Schema to a JCodeModel using JSONSchema2Pojo and encapsulates it along with some
metadata into an
ApiBodyMetadata object. |
static void |
RamlHelper.mergeResources(RamlRoot raml,
RamlResource resource,
boolean addActions)
Merges two RAML Resources trees together.
|
static void |
RamlHelper.removeResourceTree(RamlRoot model,
String urlPrefixToIgnore)
Removes a section of the tree from the resources in a Raml model and moves all sub resources to the root
|
static String |
SchemaHelper.resolveSchema(String schema,
RamlRoot document)
Utility method that will return a schema if the identifier is valid and exists in the raml
file definition.
|
| Modifier and Type | Method and Description |
|---|---|
RamlRoot |
RamlModelFactory.buildRamlRoot(String ramlFileUrl) |
RamlRoot |
RamlModelFactory.createRamlRoot() |
RamlRoot |
RamlModelFactory.createRamlRoot(String ramlFileUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
RamlModelEmitter.dump(RamlRoot ramlRoot) |
| Modifier and Type | Class and Description |
|---|---|
class |
RJP08V1RamlRoot
Implementation based on the Raml 0.8 Parser
|
| Modifier and Type | Method and Description |
|---|---|
RamlRoot |
RJP08V1RamlModelFactory.buildRamlRoot(String ramlFileUrl) |
RamlRoot |
RJP08V1RamlModelFactory.createRamlRoot() |
RamlRoot |
RJP08V1RamlModelFactory.createRamlRoot(String ramlFileUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
RJP08V1RamlModelEmitter.dump(RamlRoot ramlRoot) |
| Modifier and Type | Method and Description |
|---|---|
Pair<Set<Issue>,Set<Issue>> |
RamlStyleCheckVisitorCoordinator.check(RamlRoot published,
RamlRoot implemented)
Performs a specific check across two Raml Models.
|
Set<StyleIssue> |
RamlStyleCheckerAdapter.checkActionStyle(RamlActionType key,
RamlAction value,
IssueLocation location,
RamlRoot raml) |
Set<StyleIssue> |
RamlStyleChecker.checkActionStyle(RamlActionType key,
RamlAction value,
IssueLocation location,
RamlRoot raml)
Check the style of a particular action
|
Set<StyleIssue> |
RamlStyleCheckerAdapter.checkResourceStyle(String name,
RamlResource resource,
IssueLocation location,
RamlRoot raml) |
Set<StyleIssue> |
RamlStyleChecker.checkResourceStyle(String name,
RamlResource resource,
IssueLocation location,
RamlRoot raml)
Check the style of a particular resource.
|
| Modifier and Type | Method and Description |
|---|---|
Set<StyleIssue> |
ResponseCodeDefinitionStyleChecker.checkActionStyle(RamlActionType key,
RamlAction value,
IssueLocation location,
RamlRoot raml) |
Set<StyleIssue> |
ResponseBodySchemaStyleChecker.checkActionStyle(RamlActionType key,
RamlAction value,
IssueLocation location,
RamlRoot raml) |
Set<StyleIssue> |
RequestBodySchemaStyleChecker.checkActionStyle(RamlActionType key,
RamlAction value,
IssueLocation location,
RamlRoot raml) |
Set<StyleIssue> |
ActionSecurityResponseChecker.checkActionStyle(RamlActionType key,
RamlAction value,
IssueLocation location,
RamlRoot raml) |
Set<StyleIssue> |
ResourceUrlStyleChecker.checkResourceStyle(String name,
RamlResource resource,
IssueLocation location,
RamlRoot raml) |
Set<StyleIssue> |
ResourceCollectionPluralisationChecker.checkResourceStyle(String name,
RamlResource resource,
IssueLocation location,
RamlRoot raml) |
| Modifier and Type | Method and Description |
|---|---|
Pair<Set<Issue>,Set<Issue>> |
RamlChecker.check(RamlRoot published,
RamlRoot implemented)
Performs a specific check across two Raml Models.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<Set<Issue>,Set<Issue>> |
ResourceExistenceChecker.check(RamlRoot published,
RamlRoot implemented) |
Pair<Set<Issue>,Set<Issue>> |
RamlCheckerResourceVisitorCoordinator.check(RamlRoot published,
RamlRoot implemented) |
Copyright © 2017. All rights reserved.