public abstract class ParameterOutput extends Object implements CollatorComparable<ParameterOutput>, RawFormats
| Modifier and Type | Field and Description |
|---|---|
static String |
DOMAIN_ID |
static String |
EXTRAS |
static String |
HREF |
static String |
HREF_BASE |
static String |
ID |
static String |
LABEL |
static String |
RAWFORMATS |
RAW_FORMAT| Constructor and Description |
|---|
ParameterOutput() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Collator collator,
ParameterOutput o)
Compares natural ordering of this instance to another.
|
static <T extends ParameterOutput> |
defaultComparator()
Takes the labels to compare.
|
boolean |
equals(Object obj) |
String |
getDomainId()
Returns the domain id of the parameter, e.g. a natural id (not arbitrarily generated) or the original
id actually being used by proxied data sources.
|
Collection<String> |
getExtras() |
String |
getHref() |
String |
getHrefBase() |
String |
getId() |
protected <T> T |
getIfSerialized(OptionalOutput<T> optional) |
protected <T extends Collection<E>,E> |
getIfSerializedCollection(OptionalOutput<T> optional) |
protected <K,T> Map<K,T> |
getIfSerializedMap(OptionalOutput<Map<K,T>> optional) |
protected <T> T |
getIfSet(OptionalOutput<T> optional,
boolean forced) |
protected <T extends Collection<E>,E> |
getIfSetCollection(OptionalOutput<T> optional,
boolean forced) |
protected <K,T> Map<K,T> |
getIfSetMap(OptionalOutput<Map<K,T>> optional,
boolean forced) |
String |
getLabel() |
String |
getLicense()
Deprecated.
|
Set<String> |
getRawFormats() |
int |
hashCode() |
protected <T> boolean |
isSet(OptionalOutput<T> optional) |
protected <T> boolean |
resolvesToNonNullValue(OptionalOutput<T> optional) |
ParameterOutput |
setDomainId(OptionalOutput<String> domainId)
Sets the domain id of the parameter, e.g. a natural (not arbitrarily generated) id or the original id
actually being used by proxied data sources.
|
ParameterOutput |
setExtras(OptionalOutput<Collection<String>> extras) |
ParameterOutput |
setHref(OptionalOutput<String> href) |
ParameterOutput |
setHrefBase(OptionalOutput<String> hrefBase) |
ParameterOutput |
setId(String id) |
ParameterOutput |
setLabel(OptionalOutput<String> label) |
ParameterOutput |
setLicense(OptionalOutput<String> license)
Deprecated.
|
ParameterOutput |
setRawFormats(OptionalOutput<Set<String>> formats) |
<T> void |
setValue(String parameter,
T value,
IoParameters parameters,
Consumer<OptionalOutput<T>> consumer) |
public static final String ID
public static final String HREF
public static final String HREF_BASE
public static final String DOMAIN_ID
public static final String LABEL
public static final String EXTRAS
public static final String RAWFORMATS
public <T> void setValue(String parameter, T value, IoParameters parameters, Consumer<OptionalOutput<T>> consumer)
protected <T> T getIfSerialized(OptionalOutput<T> optional)
protected <T extends Collection<E>,E> T getIfSerializedCollection(OptionalOutput<T> optional)
protected <K,T> Map<K,T> getIfSerializedMap(OptionalOutput<Map<K,T>> optional)
protected <T> T getIfSet(OptionalOutput<T> optional, boolean forced)
protected <T extends Collection<E>,E> T getIfSetCollection(OptionalOutput<T> optional, boolean forced)
protected <K,T> Map<K,T> getIfSetMap(OptionalOutput<Map<K,T>> optional, boolean forced)
protected <T> boolean isSet(OptionalOutput<T> optional)
protected <T> boolean resolvesToNonNullValue(OptionalOutput<T> optional)
public String getId()
public ParameterOutput setId(String id)
public String getHref()
public ParameterOutput setHref(OptionalOutput<String> href)
public String getHrefBase()
public ParameterOutput setHrefBase(OptionalOutput<String> hrefBase)
public String getDomainId()
public ParameterOutput setDomainId(OptionalOutput<String> domainId)
domainId - the domain id of the parameterpublic String getLabel()
public ParameterOutput setLabel(OptionalOutput<String> label)
@Deprecated public String getLicense()
@Deprecated public ParameterOutput setLicense(OptionalOutput<String> license)
public Collection<String> getExtras()
public ParameterOutput setExtras(OptionalOutput<Collection<String>> extras)
public Set<String> getRawFormats()
getRawFormats in interface RawFormatspublic ParameterOutput setRawFormats(OptionalOutput<Set<String>> formats)
setRawFormats in interface RawFormatsformats - the rawFormats to setpublic int compare(Collator collator, ParameterOutput o)
CollatorComparableComparable interface but indicates ordering locale dependend by
means of a Collator.compare in interface CollatorComparable<ParameterOutput>collator - a collator used to compare. If null a
collator is created dependend on the default locale.o - the object to compared.Collatorpublic static <T extends ParameterOutput> Comparator<T> defaultComparator()
T - the actual type.ComparatorCopyright © 2013–2019 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.