An object containing sample data for the related object.
In all cases, the example value is expected to be compatible with the type schema of its associated value. Tooling implementations MAY choose to validate compatibility automatically, and reject the example value(s) if incompatible.
| Modifier and Type | Method and Description |
|---|---|
| public default Example | Returns: the current Example objectlong description of the example description)Sets this Example's description property to the given string. |
| public default Example | Returns: the current Example objectURL that points to the literal example externalValue)Sets this Example's externalValue property to the given string. |
| public String | Returns: long description of the exampleReturns the description property from an Example instance. |
| public String | Returns: URL that points to the literal exampleReturns the externalValue property from an Example instance. |
| public String | Returns: short description of the exampleReturns the summary property from an Example instance. |
| public Object | Returns: embedded literal example objectReturns the value property from an Example instance. |
| public void | setDescription(String
long description of the example description)Sets this Example's description property to the given string. |
| public void | setExternalValue(String
URL that points to the literal example externalValue)Sets this Example's externalValue property to the given string. |
| public void | setSummary(String
short description of the example summary)Sets this Example's summary property to the given string. |
| public void | |
| public default Example | |
| public default Example |
| description | back to summary |
|---|---|
| public default Example description(String description) Sets this Example's description property to the given string. | |
| externalValue | back to summary |
|---|---|
| public default Example externalValue(String externalValue) Sets this Example's externalValue property to the given string. The value field and externalValue field are mutually exclusive. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns the description property from an Example instance.
| |
| getExternalValue | back to summary |
|---|---|
| public String getExternalValue() Returns the externalValue property from an Example instance.
| |
| getSummary | back to summary |
|---|---|
| public String getSummary() Returns the summary property from an Example instance.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Returns the value property from an Example instance.
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) Sets this Example's description property to the given string.
| |
| setExternalValue | back to summary |
|---|---|
| public void setExternalValue(String externalValue) Sets this Example's externalValue property to the given string. The value field and externalValue field are mutually exclusive.
| |
| setSummary | back to summary |
|---|---|
| public void setSummary(String summary) Sets this Example's summary property to the given string.
| |
| setValue | back to summary |
|---|---|
| public void setValue(Object value) Sets this Example's value property to the given value. The value field and externalValue field are mutually exclusive.
| |
| summary | back to summary |
|---|---|
| public default Example summary(String summary) Sets this Example's summary property to the given string. | |
| value | back to summary |
|---|---|
| public default Example value(Object value) Sets this Example's value property to the given value. The value field and externalValue field are mutually exclusive. | |