Class Value
- java.lang.Object
-
- software.amazon.awssdk.services.dynamodb.endpoints.internal.Value
-
- Direct Known Subclasses:
Value.Array
,Value.Bool
,Value.Endpoint
,Value.Int
,Value.None
,Value.Record
,Value.Str
public abstract class Value extends Object
Base class for the types of values computable by theRuleEngine
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Value.Array
An array value.static class
Value.Bool
A boolean value.static class
Value.Endpoint
static class
Value.Int
An integer value.static class
Value.None
static class
Value.Record
A record (map) value.static class
Value.Str
A string value.
-
Constructor Summary
Constructors Constructor Description Value()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Value.Endpoint
endpointFromNode(JsonNode source)
Value.Array
expectArray()
boolean
expectBool()
Value.Endpoint
expectEndpoint()
int
expectInt()
Value.Record
expectRecord()
String
expectString()
static Value.Array
fromArray(List<Value> value)
static Value.Bool
fromBool(boolean value)
static Value.Int
fromInteger(int value)
static Value
fromNode(JsonNode node)
static Value.Record
fromRecord(Map<Identifier,Value> value)
static Value.Str
fromStr(String value)
boolean
isNone()
static Value.None
none()
-
-
-
Method Detail
-
isNone
public boolean isNone()
-
expectString
public String expectString()
-
expectBool
public boolean expectBool()
-
expectRecord
public Value.Record expectRecord()
-
expectEndpoint
public Value.Endpoint expectEndpoint()
-
expectArray
public Value.Array expectArray()
-
expectInt
public int expectInt()
-
endpointFromNode
public static Value.Endpoint endpointFromNode(JsonNode source)
-
fromInteger
public static Value.Int fromInteger(int value)
-
fromBool
public static Value.Bool fromBool(boolean value)
-
fromArray
public static Value.Array fromArray(List<Value> value)
-
fromRecord
public static Value.Record fromRecord(Map<Identifier,Value> value)
-
none
public static Value.None none()
-
-