Package | Description |
---|---|
com.almworks.jira.structure.api.attribute |
This package provides API for using attributes, a concept added by Structure platform for universal access
to item data.
|
com.almworks.jira.structure.api.attribute.loader.distinct | |
com.almworks.jira.structure.api.util |
Modifier and Type | Field and Description |
---|---|
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<com.atlassian.jira.issue.issuetype.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<com.atlassian.jira.issue.priority.Priority> |
CoreAttributeSpecs.Format.PRIORITY |
static ValueFormat<com.atlassian.jira.project.Project> |
CoreAttributeSpecs.Format.PROJECT |
static ValueFormat<com.atlassian.jira.issue.status.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<com.atlassian.jira.user.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) |
static <T> AttributeSpecBuilder<T> |
AttributeSpecBuilder.create(String id,
ValueFormat<T> format,
Map<String,Object> params) |
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) |
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 | Field and Description |
---|---|
static ValueFormat<Map<ItemIdentity,Integer>> |
DistinctAttributes.MAP_ITEM_COUNT_FORMAT |
static ValueFormat<Map> |
DistinctAttributes.MAP_VALUES_FORMAT |
Modifier and Type | Method and Description |
---|---|
static <T> ValueFormat<Map<ItemIdentity,T>> |
DistinctAttributes.nonUniqueValuesValueFormat() |
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 © 2017 ALM Works. All Rights Reserved.