public class HalFormsPromptedValue extends Object
options' inline attribute or responses of
resources pointed to by the link object.https://rwcbook.github.io/hal-forms/#options-element| Modifier and Type | Method and Description |
|---|---|
Object |
getPrompt()
Returns the prompt to be used.
|
Object |
getValue()
Returns the value.
|
static HalFormsPromptedValue |
of(String prompt,
Object value)
Creates a new
HalFormsPromptedValue with the given plain prompt and value. |
static HalFormsPromptedValue |
ofI18ned(String promptKey,
Object value)
Creates a new
HalFormsPromptedValue with the given prompt key to be used for i18nization and value. |
public static HalFormsPromptedValue of(String prompt, Object value)
HalFormsPromptedValue with the given plain prompt and value.prompt - must not be null or empty.value - public static HalFormsPromptedValue ofI18ned(String promptKey, Object value)
HalFormsPromptedValue with the given prompt key to be used for i18nization and value.promptKey - must not be null or empty.value - public Object getPrompt()
String or a value to be resolved into a String during
serialization.public Object getValue()
Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.