Class JsonSchemaMapper
java.lang.Object
dev.getelements.elements.service.util.JsonSchemaMapper
- All Implemented Interfaces:
MapperRegistry.Mapper<MetadataSpec,JsonSchema>
- Direct Known Subclasses:
JsonSchemaMapperImpl
public abstract class JsonSchemaMapper
extends Object
implements MapperRegistry.Mapper<MetadataSpec,JsonSchema>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract JsonSchemaforward(MetadataSpec source) Maps the source to the destination.voidsetApiOutsideUrl(String apiOutsideUrl) protected voidsetJsonSchemaId(MetadataSpec metadataSpec, JsonSchema jsonSchema) protected Map<String, JsonSchemaProperty> toOptionalProperties(List<MetadataSpecProperty> metadataSpecPropertyList) toRequiredProperties(List<MetadataSpecProperty> metadataSpecPropertyList)
-
Constructor Details
-
JsonSchemaMapper
public JsonSchemaMapper()
-
-
Method Details
-
forward
Description copied from interface:MapperRegistry.MapperMaps the source to the destination.- Specified by:
forwardin interfaceMapperRegistry.Mapper<MetadataSpec,JsonSchema> - Parameters:
source- the source to the destination- Returns:
- the destination
-
toRequiredProperties
-
toOptionalProperties
protected Map<String,JsonSchemaProperty> toOptionalProperties(List<MetadataSpecProperty> metadataSpecPropertyList) -
setJsonSchemaId
-
getApiOutsideUrl
-
setApiOutsideUrl
-