public class Attribute<T> extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Attribute.Type |
| Constructor | Description |
|---|---|
Attribute(String name,
Attribute.Type type,
List<T> values) |
|
Attribute(String name,
Attribute.Type type,
T... values) |
|
Attribute(String name,
T... values) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
|
static List<Attribute> |
getAttributeListFromJson(InputStream inputStream) |
|
static String |
getJsonFromAttributeList(List<Attribute> attributeDetails) |
Produces a json from a list of attributes
|
String |
getName() |
|
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
|
Attribute.Type |
getType() |
|
List<T> |
getValues() |
|
int |
hashCode() |
|
String |
toString() |
@SafeVarargs public Attribute(String name, T... values)
@SafeVarargs public Attribute(String name, Attribute.Type type, T... values)
public Attribute(String name, Attribute.Type type, List<T> values)
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public static String getJsonFromAttributeList(List<Attribute> attributeDetails) throws IOException
attributeDetails - List of attributes to serializeIOExceptionpublic static List<Attribute> getAttributeListFromJson(InputStream inputStream) throws IOException
IOExceptionpublic String getName()
public Attribute.Type getType()