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 JsonSchema
forward
(MetadataSpec source) Maps the source to the destination.void
setApiOutsideUrl
(String apiOutsideUrl) protected void
setJsonSchemaId
(MetadataSpec metadataSpec, JsonSchema jsonSchema) protected Map
<String, JsonSchemaProperty> toOptionalProperties
(List<MetadataSpecProperty> metadataSpecPropertyList) toRequiredProperties
(List<MetadataSpecProperty> metadataSpecPropertyList) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.model.util.MapperRegistry.Mapper
findDestinationType, findSourceType
-
Constructor Details
-
JsonSchemaMapper
public JsonSchemaMapper()
-
-
Method Details
-
forward
Description copied from interface:MapperRegistry.Mapper
Maps the source to the destination.- Specified by:
forward
in 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
-