| Package | Description |
|---|---|
| org.openksavi.sponge.action |
Interfaces for actions.
|
| org.openksavi.sponge.type | |
| org.openksavi.sponge.type.value | |
| org.openksavi.sponge.util |
Interfaces for utility functionalities.
|
| Modifier and Type | Method and Description |
|---|---|
DataType |
ActionMeta.getArg(String name)
Returns the argument type.
|
DataType |
ActionMeta.getResult()
Returns the result type or
null in not specified. |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
ActionMeta.getArgs()
Returns the argument types or
null in not specified. |
| Modifier and Type | Method and Description |
|---|---|
void |
ActionMeta.setResult(DataType result)
Sets the (optional) result type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ActionMeta.addArgs(List<DataType> args)
Adds the (optional) argument type.
|
void |
ActionMeta.setArgs(List<DataType> args)
Sets the (optional) argument types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AnyType
Any type.
|
class |
BinaryType
A binary (byte array) type.
|
class |
BooleanType
A boolean type.
|
class |
CollectionType<T>
A collection type.
|
class |
DateTimeType
A date/time type.
|
class |
DynamicType
An dynamic type representing dynamically typed values.
|
class |
IntegerType
An integer type that supports long as well (internally uses
Number). |
class |
ListType<E>
A list type.
|
class |
MapType<K,V>
A map type.
|
class |
NumberType
A number type, that include both integer and floating-point numbers.
|
class |
ObjectType<T>
An object.
|
class |
RecordType
A record type.
|
class |
StringType
A string type.
|
class |
TypeType
A type representing a data type.
|
class |
VoidType
A void type that may be used to specify that an action returns no meaningful result.
|
| Modifier and Type | Method and Description |
|---|---|
DataType<T> |
DataType.clone() |
DataType<E> |
ListType.getElementType() |
DataType<K> |
MapType.getKeyType() |
DataType<T> |
QualifiedDataType.getType() |
DataType<V> |
MapType.getValueType() |
DataType<T> |
DataType.withAnnotated() |
DataType<T> |
DataType.withAnnotated(boolean annotated) |
DataType<T> |
DataType.withDefaultValue(T value) |
DataType<T> |
DataType.withDescription(String description) |
DataType<T> |
DataType.withFeature(String name,
Object value) |
DataType<T> |
DataType.withFeatures(Map<String,Object> features) |
DataType<T> |
DataType.withFormat(String format) |
DataType<T> |
DataType.withLabel(String label) |
DataType<T> |
DataType.withName(String name) |
DataType<T> |
DataType.withNullable() |
DataType<T> |
DataType.withNullable(boolean nullable) |
DataType<T> |
DataType.withOptional() |
DataType<T> |
DataType.withProvided(ProvidedMeta provided) |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
RecordType.getFields() |
Class<? extends DataType> |
DataTypeKind.getTypeClass() |
| Modifier and Type | Method and Description |
|---|---|
<C> QualifiedDataType<C> |
QualifiedDataType.createChild(DataType<C> childType) |
void |
QualifiedDataType.setType(DataType<T> type) |
TypeType |
TypeType.withDefaultValue(DataType value) |
ListType<E> |
ListType.withElement(DataType<E> elementType) |
MapType<K,V> |
MapType.withKey(DataType<K> keyType) |
MapType<K,V> |
MapType.withValue(DataType<V> valueType) |
| Modifier and Type | Method and Description |
|---|---|
void |
RecordType.setFields(List<DataType> fields) |
RecordType |
RecordType.withFields(List<DataType> fields)
Adds new fields.
|
| Constructor and Description |
|---|
ListType(DataType<E> elementType) |
ListType(String name,
DataType<E> elementType) |
MapType(DataType<K> keyType,
DataType<V> valueType) |
MapType(DataType<K> keyType,
DataType<V> valueType) |
MapType(String name,
DataType<K> keyType,
DataType<V> valueType) |
MapType(String name,
DataType<K> keyType,
DataType<V> valueType) |
QualifiedDataType(String path,
DataType<T> type) |
QualifiedDataType(String path,
DataType<T> type,
boolean isRoot) |
| Constructor and Description |
|---|
RecordType(List<DataType> fields) |
RecordType(String name,
List<DataType> fields) |
| Modifier and Type | Method and Description |
|---|---|
DataType<T> |
DynamicValue.getType() |
| Modifier and Type | Method and Description |
|---|---|
void |
DynamicValue.setType(DataType<T> type) |
| Constructor and Description |
|---|
DynamicValue(T value,
DataType<T> type) |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
SpongeApiUtils.getActionArgType(List<DataType> argTypes,
String argName) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,DataType> |
SpongeApiUtils.createNamedActionArgTypesMap(ActionMeta actionMeta) |
| Modifier and Type | Method and Description |
|---|---|
static int |
SpongeApiUtils.getActionArgIndex(List<DataType> argTypes,
String argName) |
static DataType |
SpongeApiUtils.getActionArgType(List<DataType> argTypes,
String argName) |
Copyright © 2016–2019 Softelnet. All rights reserved.