NsUrlStringConverter

StringNSURL.

NSURL.URLWithString returns null for malformed URLs; in that case convertTo throws MappingException.TypeConversionFailed.

Round-trip caveat: NSURL normalizes URLs (e.g. adds trailing slash to bare hosts). Tests must use pre-normalized URLs to pass a true round-trip check.

Properties

Link copied to clipboard
Link copied to clipboard
val targetType: KClass<NSURL>

Functions

Link copied to clipboard
open override fun convertFrom(target: NSURL): String
Link copied to clipboard
open fun convertFromOrNull(target: NSURL): String?
Link copied to clipboard
open override fun convertTo(source: String): NSURL
Link copied to clipboard
open fun convertToOrNull(source: String): NSURL?