Package | Description |
---|---|
sirius.kernel |
Provides the main setup classes for the SIRIUS kernel.
|
sirius.kernel.async |
Provides a framework for asynchronous execution of given tasks.
|
sirius.kernel.commons |
Provides common classes used by large parts of the framework.
|
sirius.kernel.settings |
Provides a wrapper around the typesafe config
library.
|
sirius.kernel.xml |
Helper classes to read and write XML.
|
Modifier and Type | Method and Description |
---|---|
protected static Value |
Setup.getProperty(String property)
Reads the given system property.
|
Modifier and Type | Method and Description |
---|---|
Value |
CallContext.getMDCValue(String key)
Returns the value of the named variable in the mdc.
|
Modifier and Type | Field and Description |
---|---|
static Value |
Value.EMPTY
Represents an empty value which contains null as data.
|
Modifier and Type | Method and Description |
---|---|
Value |
Value.append(String separator,
Object value)
Returns a value which wraps
this + separator + value
If the current value is empty, the given value is returned (without the separator). |
Value |
ValueSupplier.apply(K key)
Computes or fetches the value for the given key.
|
Value |
Values.at(int index)
Returns the element at the (zero based) index wrapped as
Value
If the index is out of the valid range for the wrapped elements, an empty value will be returned |
Value |
Values.at(String excelStyleIndex)
Returns the element at the given column in "Excel style" notation.
|
Value |
Value.first()
If the underlying data is a
Collection this will return the first element wrapped as value. |
Value |
Context.getValue(Object key)
Provides the value associated with the given key as
Value |
Value |
Value.ifFilled(Consumer<Value> consumer)
Calls the given consumer with this if the value is filled.
|
Value |
Value.ignore(String... ignoredValues)
Returns a new
Value which will be empty its value equals one of the given ignored values. |
static Value |
Value.indexOf(int index,
Collection<?> collection)
Returns the n-th (index-th) element of the given collection.
|
static Value |
Value.indexOf(int index,
Object[] array)
Returns the n-th (index-th) element of the given array.
|
static Value |
Value.of(Object data)
Creates a new wrapper for the given data.
|
Value |
Value.prepend(String separator,
Object value)
Returns a value which wraps
value + separator + this
If the current value is empty, the given value is returned (without the separator). |
Value |
Value.regExReplace(String pattern,
String replacement)
Replaces the given regular expression pattern with the given replacement in the string representation
of the wrapped object
|
Value |
Value.replace(String pattern,
String replacement)
Replaces the given pattern with the given replacement in the string representation
of the wrapped object
|
Value |
Value.replaceEmptyWith(Object replacement)
Returns a new Value which will wrap the given value, if the current value is empty.
|
Value |
Value.replaceIfEmpty(Supplier<?> supplier)
Returns a new Value which will wrap the value produced by the given supplier, if the current
value is empty.
|
Value |
Amount.toSmartRoundedString(NumberFormat format)
Converts the number into a string just like
Amount.toString(NumberFormat) . |
Value |
Amount.toString(NumberFormat format)
Converts the number into a string according to the given format.
|
Value |
Value.translate()
Returns a Value containing a translated value using the string representation
of the wrapped value as key.
|
Value |
Value.translate(String lang)
Returns a Value containing a translated value using the string representation
of the wrapped value as key.
|
Modifier and Type | Method and Description |
---|---|
Value |
Value.ifFilled(Consumer<Value> consumer)
Calls the given consumer with this if the value is filled.
|
<R> Optional<R> |
Value.map(Function<Value,R> mapper)
Returns an optional value computed by the given mapper.
|
Modifier and Type | Method and Description |
---|---|
Value |
Settings.get(String path)
Returns the
Value defined for the given key. |
Value |
Extension.get(String path) |
Value |
Extension.getRaw(String path)
Returns the
Value defined for the given key. |
Value |
Extension.require(String path)
Returns the
Value defined for the given key or throws a HandledException if no value was found
If this extension doesn't provide a value for this key, but there is an extension with the name
default which provides a value, this is used. |
Modifier and Type | Method and Description |
---|---|
Value |
StructuredNode.queryValue(String path)
Queries a
Value by evaluating the given xpath. |
Copyright © 2018. All rights reserved.