public final class RestAttributeSpec extends Object
Modifier and Type | Field and Description |
---|---|
String |
format
Format - must be one of
ValueFormat IDs
recognizable by the REST resource. |
String |
id
Universal attribute ID
|
Map |
params
(Optional) Arbitrary parameters, interpreted by the attribute provider (any JSON)
|
Constructor and Description |
---|
RestAttributeSpec() |
Modifier and Type | Method and Description |
---|---|
static AttributeSpec<?> |
fromRest(RestAttributeSpec spec) |
static List<AttributeSpec<?>> |
fromRestCollection(Collection<? extends RestAttributeSpec> source) |
static AttributeSpec<?> |
fromRestNotNull(RestAttributeSpec spec) |
static RestAttributeSpec |
toRest(AttributeSpec<?> spec) |
String |
toString() |
public String id
public Map params
public String format
ValueFormat
IDs
recognizable by the REST resource. (Custom value formats are not supported.)@Nullable public static AttributeSpec<?> fromRest(@Nullable RestAttributeSpec spec)
@NotNull public static AttributeSpec<?> fromRestNotNull(@NotNull RestAttributeSpec spec) throws IllegalArgumentException
IllegalArgumentException
@NotNull public static RestAttributeSpec toRest(@NotNull AttributeSpec<?> spec)
@NotNull public static List<AttributeSpec<?>> fromRestCollection(@Nullable Collection<? extends RestAttributeSpec> source)
Copyright © 2024 Tempo Software. All Rights Reserved.