T
- the resulting type, the "Target"S
- the input type, the "Source"public interface Encoder<T,S> extends ConformanceClass
Modifier and Type | Method and Description |
---|---|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
T |
encode(S objectToEncode)
Encodes the specified object.
|
T |
encode(S objectToEncode,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
MediaType |
getContentType() |
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
|
getConformanceClasses
Set<EncoderKey> getEncoderKeyType()
EncoderKey
)T encode(S objectToEncode) throws OwsExceptionReport, UnsupportedEncoderInputException
objectToEncode
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderT encode(S objectToEncode, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport, UnsupportedEncoderInputException
objectToEncode
- the object to encodeadditionalValues
- the helper valuesOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderMap<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
nameSpacePrefixMap
- MediaType getContentType()
Set<SchemaLocation> getSchemaLocations()
Copyright © 2012-2015 52north.org. All Rights Reserved.