public class ExampleSpecJsonRenderer extends Object
Constructor and Description |
---|
ExampleSpecJsonRenderer() |
Modifier and Type | Method and Description |
---|---|
String |
prettyPrint(org.raml.v2.api.model.v10.datamodel.TypeDeclaration type,
org.raml.v2.api.model.v10.datamodel.ExampleSpec example)
Returns a pretty-printed JSON string for the given example instance of the given RAML type.
|
javax.json.JsonValue |
toJsonValue(org.raml.v2.api.model.v10.datamodel.TypeDeclaration type,
org.raml.v2.api.model.v10.datamodel.ExampleSpec example)
Converts an example of the given type to a JSON value.
|
public javax.json.JsonValue toJsonValue(org.raml.v2.api.model.v10.datamodel.TypeDeclaration type, org.raml.v2.api.model.v10.datamodel.ExampleSpec example)
type
- RAML type declarationexample
- example instancepublic String prettyPrint(org.raml.v2.api.model.v10.datamodel.TypeDeclaration type, org.raml.v2.api.model.v10.datamodel.ExampleSpec example)
type
- RAML type declarationexample
- example instanceCopyright © 2016–2017 OPS4J - Open Participation Software for Java. All rights reserved.