public class RamlModelResult extends Object
Api model matching the RAML version is available.
If the parsed raml is 1.0 fragment and there are no errors, the corresponding
fragment instance is available.
If there are parsing errors, the list of errors is available.| Constructor and Description |
|---|
RamlModelResult(DocumentationItem documentationItem) |
RamlModelResult(ExampleSpec exampleSpec) |
RamlModelResult(ResourceType resourceType) |
RamlModelResult(SecurityScheme securityScheme) |
RamlModelResult(Trait trait) |
RamlModelResult(TypeDeclaration typeDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
Api |
getApiV08() |
Api |
getApiV10() |
DocumentationItem |
getDocumentationItem() |
ExampleSpec |
getExampleSpec() |
RamlFragment |
getFragment() |
Library |
getLibrary() |
ResourceType |
getResourceType() |
SecurityScheme |
getSecurityScheme() |
Trait |
getTrait() |
TypeDeclaration |
getTypeDeclaration() |
List<ValidationResult> |
getValidationResults() |
boolean |
hasErrors() |
boolean |
isVersion08() |
boolean |
isVersion10() |
public RamlModelResult(TypeDeclaration typeDeclaration)
public RamlModelResult(SecurityScheme securityScheme)
public RamlModelResult(DocumentationItem documentationItem)
public RamlModelResult(Trait trait)
public RamlModelResult(ResourceType resourceType)
public RamlModelResult(ExampleSpec exampleSpec)
public boolean hasErrors()
public boolean isVersion10()
public boolean isVersion08()
@Nonnull public List<ValidationResult> getValidationResults()
@Nullable public Api getApiV10()
@Nullable public Api getApiV08()
@Nullable public Library getLibrary()
@Nullable public TypeDeclaration getTypeDeclaration()
@Nullable public SecurityScheme getSecurityScheme()
@Nullable public Trait getTrait()
@Nullable public ResourceType getResourceType()
@Nullable public ExampleSpec getExampleSpec()
@Nullable public DocumentationItem getDocumentationItem()
@Nullable public RamlFragment getFragment()
null
if the RAML has errors or is version 0.8Copyright © 2020. All rights reserved.