| Package | Description |
|---|---|
| org.openksavi.sponge |
Interfaces for base functionalities.
|
| org.openksavi.sponge.action |
Interfaces for actions.
|
| org.openksavi.sponge.engine |
Interfaces for the engine and base functionalities.
|
| org.openksavi.sponge.type | |
| org.openksavi.sponge.type.value | |
| org.openksavi.sponge.util |
Interfaces for utility functionalities.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends DataType<?>> |
EngineOperations.addType(String registeredTypeName,
DataTypeSupplier<T> typeSupplier)
Registers a data type.
|
<T extends DataType<?>> |
EngineOperations.getType(String registeredTypeName)
Returns a new instance of the registered data type.
|
<T extends DataType<?>> |
EngineOperations.getType(String registeredTypeName,
String locationName)
Returns a new instance of the registered data type.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,DataType> |
EngineOperations.getTypes()
Returns the unmodifiable map of registered data types.
|
| 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. |
DataType |
IsActionActiveContext.getType() |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
ActionMeta.getArgs()
Returns the argument types or
null in not specified. |
Map<String,DataType> |
ProvideArgsContext.getDynamicTypes() |
Map<String,DataType> |
ProvideArgsParameters.getDynamicTypes() |
| Modifier and Type | Method and Description |
|---|---|
void |
ActionMeta.setResult(DataType result)
Sets the (optional) result type.
|
void |
IsActionActiveContext.setType(DataType type) |
ActionBuilder |
ActionBuilder.withArg(DataType argType) |
ActionBuilder |
ActionBuilder.withResult(DataType resultType) |
| 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.
|
void |
ProvideArgsContext.setDynamicTypes(Map<String,DataType> dynamicTypes) |
void |
ProvideArgsParameters.setDynamicTypes(Map<String,DataType> dynamicTypes) |
ActionBuilder |
ActionBuilder.withArgs(List<DataType> argTypes) |
ProvideArgsParameters |
ProvideArgsParameters.withDynamicTypes(Map<String,DataType> dynamicTypes) |
| Constructor and Description |
|---|
IsActionActiveContext(Object value,
DataType type,
List<Object> args) |
IsActionActiveContext(Object value,
DataType type,
List<Object> args,
Map<String,Object> features) |
| Constructor and Description |
|---|
ProvideArgsContext(Set<String> provide,
Set<String> submit,
Map<String,Object> current,
Map<String,ProvidedValue<?>> provided,
Map<String,DataType> dynamicTypes,
Map<String,Map<String,Object>> argFeatures,
boolean initial) |
ProvideArgsParameters(List<String> provide,
List<String> submit,
Map<String,Object> current,
Map<String,DataType> dynamicTypes) |
ProvideArgsParameters(List<String> provide,
List<String> submit,
Map<String,Object> current,
Map<String,DataType> dynamicTypes,
Map<String,Map<String,Object>> argFeatures,
Boolean initial) |
| Modifier and Type | Method and Description |
|---|---|
<T extends DataType<?>> |
SpongeEngine.addType(String registeredTypeName,
DataTypeSupplier<T> typeSupplier)
Registers a data type.
|
<T extends DataType<?>> |
SpongeEngine.getType(String registeredTypeName)
Returns a new instance of the registered data type.
|
<T extends DataType<?>> |
SpongeEngine.getType(String registeredTypeName,
String locationName)
Returns a new instance of the registered data type.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,DataType> |
SpongeEngine.getTypes()
Returns the unmodifiable map of registered data 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 |
StreamType
A stream 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 |
|---|---|
<T extends DataType<?>> |
RecordType.getFieldType(String fieldName) |
| 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 |
ObjectType.setCompanionType(DataType companionType) |
void |
QualifiedDataType.setType(DataType<T> type) |
ObjectType<T> |
ObjectType.withCompanionType(DataType companionType) |
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(DataType<T> type) |
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 | Interface and Description |
|---|---|
interface |
DataTypeSupplier<T extends DataType<?>>
A data type supplier.
|
| 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.createNamedActionArgTypesMapRecursively(ActionMeta actionMeta) |
static List<DataType> |
DataTypeUtils.getTypes(DataType type) |
| Modifier and Type | Method and Description |
|---|---|
static <P> P |
DataTypeUtils.getFeatureOrProperty(DataType type,
Object value,
String propertyName,
Supplier<P> orElse) |
static Set<String> |
DataTypeUtils.getRegisteredTypeNames(DataType type) |
static List<DataType> |
DataTypeUtils.getTypes(DataType type) |
static boolean |
DataTypeUtils.isProvidedRead(DataType<?> type) |
static boolean |
DataTypeUtils.isProvidedWrite(DataType<?> type) |
static boolean |
DataTypeUtils.supportsElementValueSet(DataType<?> type) |
static void |
SpongeApiUtils.validateActionCallArg(DataType argType,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
static int |
SpongeApiUtils.getActionArgIndex(List<DataType> argTypes,
String argName) |
static DataType |
SpongeApiUtils.getActionArgType(List<DataType> argTypes,
String argName) |
static void |
SpongeApiUtils.validateActionCallArgs(List<DataType> argsMeta,
List args) |
Copyright © 2016–2021 Softelnet. All rights reserved.