public class SimpleShapeMediaTypeNamer extends Object implements ShapeMediaTypeNamer
| Constructor and Description |
|---|
SimpleShapeMediaTypeNamer() |
| Modifier and Type | Method and Description |
|---|---|
String |
baseMediaTypeName(Shape shape)
Generate a vendor-specific media-type base name for a given Shape.
|
public String baseMediaTypeName(Shape shape)
ShapeMediaTypeNamerhttp://www.konig.io/shapes/v1/schema/Person, this
method might return application/vnd.konig.v1.schema.person.
As a best practice, concrete media types are formed by appending a suffix to the base name.
For instance, you might form a json-ld media type by appending '+jsonld' to the base name.baseMediaTypeName in interface ShapeMediaTypeNamershape - The Shape for which a media-type base name will be generated.Copyright © 2016. All rights reserved.