Package | Description |
---|---|
com.almworks.jira.structure.api.attribute |
This package provides Attribute API.
|
com.almworks.jira.structure.api.util |
Modifier and Type | Field and Description |
---|---|
static ValueFormat<Object> |
ValueFormat.ANY
ANY format is suitable when the requesting code can accept object of any type and there's no knowledge
at development time what format of the attribute is going to be available.
|
static ValueFormat<Boolean> |
ValueFormat.BOOLEAN
BOOLEAN value contains simple boolean value.
|
static ValueFormat<Long> |
ValueFormat.DURATION
DURATION format contain the number of milliseconds between two points in time.
|
static ValueFormat<String> |
ValueFormat.HTML
HTML values can be shown on a web page.
|
static ValueFormat<String> |
ValueFormat.ID
ID is a special format for values that represent entities.
|
static ValueFormat<IssueType> |
CoreAttributeSpecs.Format.ISSUETYPE |
static ValueFormat<List> |
ValueFormat.JSON_ARRAY
JSON_ARRAY values are Java lists, ready to be converted to a JSON array.
|
static ValueFormat<Map> |
ValueFormat.JSON_OBJECT
JSON_OBJECT values are Java maps, ready to be converted to a JSON object.
|
static ValueFormat<Number> |
ValueFormat.NUMBER
NUMBER values are numeric and usually are either
Long or Double . |
static ValueFormat<Comparable> |
ValueFormat.ORDER
ORDER values are special values that can be used to sort by this attributes.
|
static ValueFormat<Priority> |
CoreAttributeSpecs.Format.PRIORITY |
static ValueFormat<Project> |
CoreAttributeSpecs.Format.PROJECT |
static ValueFormat<Status> |
CoreAttributeSpecs.Format.STATUS |
static ValueFormat<String> |
ValueFormat.TEXT
TEXT values are plain text.
|
static ValueFormat<Long> |
ValueFormat.TIME
TIME values contain Epoch time in milliseconds.
|
static ValueFormat<ApplicationUser> |
CoreAttributeSpecs.Format.USER |
Modifier and Type | Method and Description |
---|---|
ValueFormat<T> |
AttributeSpec.getFormat()
Returns the attribute's format.
|
static ValueFormat<?> |
ValueFormat.getStandardFormat(String formatId)
Returns a standard format (declared in this class) given its format ID.
|
Modifier and Type | Method and Description |
---|---|
<V> AttributeSpec<V> |
AttributeSpec.as(ValueFormat<V> format)
Returns an attribute spec with the same ID and parameters, but with the given
ValueFormat . |
static <T> AttributeSpecBuilder<T> |
AttributeSpecBuilder.create(String id,
ValueFormat<T> format)
Creates a builder with the given attribute ID and format.
|
static <T> AttributeSpecBuilder<T> |
AttributeSpecBuilder.create(String id,
ValueFormat<T> format,
Map<String,Object> params)
Creates a builder with the given attribute ID, format and parameters.
|
boolean |
AttributeSpec.is(String id,
ValueFormat<?> format)
Checks if this attribute specification is for the given ID and format.
|
boolean |
AttributeSpec.is(ValueFormat<?> format)
Checks if this attribute specification contains the given format.
|
<R> AttributeSpecBuilder<R> |
AttributeSpecBuilder.setFormat(ValueFormat<R> format)
Sets the value format.
|
Constructor and Description |
---|
AttributeSpec(String id,
ValueFormat<T> format)
Constructs an attribute spec with the given ID and format, without parameters.
|
AttributeSpec(String id,
ValueFormat<T> format,
Map<String,Object> params)
Constructs an attribute spec with the given ID, format and parameters.
|
Modifier and Type | Method and Description |
---|---|
<T> AttributeSpec<T> |
SpecParams.getAttributeParameter(String name,
ValueFormat<T> expectedFormat) |
<T> AttributeSpec<T> |
SpecParams.getAttributeParameter(ValueFormat<T> expectedFormat) |
Copyright © 2024 Tempo Software. All Rights Reserved.