public class TranslateJsonSchema extends Object implements Function<JsonValue,JsonValue,NeverThrowsException>
Constructor and Description |
---|
TranslateJsonSchema(ClassLoader loader)
Constructor which takes a
ClassLoader where the String is defined. |
Modifier and Type | Method and Description |
---|---|
JsonValue |
apply(JsonValue value)
Applies the translation to string values by converting them to
LocalizableString . |
public TranslateJsonSchema(ClassLoader loader)
ClassLoader
where the String is defined.loader
- the ClassLoader
where the translation resources are definedpublic JsonValue apply(JsonValue value)
LocalizableString
.
It traverses the JsonValue structure, iteratively applying the function to each item
in a collection.apply
in interface Function<JsonValue,JsonValue,NeverThrowsException>
value
- A JsonValue.Copyright 2010-2022 ForgeRock AS.