Package org.forgerock.openig.types
Class TypeDefinitions
java.lang.Object
org.forgerock.openig.types.TypeDefinitions
Type definitions helpers for generic types. Completes helper methods provided by
TypeDefinition
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.forgerock.openig.model.type.StringTypeDefinition<Duration>
Represents the "Duration" type, which is a String with a specificSyntax
.static final org.forgerock.openig.model.type.Syntax<Version>
The "PRODUCT_VERSION"'sSyntax
.static final org.forgerock.openig.model.type.StringTypeDefinition<Version>
Represents the "PRODUCT_VERSION" type, which is a String with a specificSyntax
.static final org.forgerock.openig.model.type.Syntax<Realm>
The "REALM"'sSyntax
.static final org.forgerock.openig.model.type.StringTypeDefinition<Realm>
Represents the "PRODUCT_VERSION" type, which is a String with a specificSyntax
.static final org.forgerock.openig.model.type.StringTypeDefinition<URI>
Represents the "URI" type, which is a String with a specificSyntax
. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.forgerock.openig.model.type.StringTypeDefinition<Expression<T>>
expressionOf
(Class<T> type) Represents a runtimeExpression
of type T, which is a String with a specificSyntax
.static <T> org.forgerock.openig.model.type.Syntax<Expression<T>>
expressionSyntaxOf
(Class<T> type) Creates an expressionSyntax
that is bound to the giventype
.Represents a runtimePurpose
of secret's type T, which is a String with a specificSyntax
.
-
Field Details
-
DURATION_TYPE
Represents the "Duration" type, which is a String with a specificSyntax
. -
URI_TYPE
Represents the "URI" type, which is a String with a specificSyntax
. -
PRODUCT_VERSION_SYNTAX
The "PRODUCT_VERSION"'sSyntax
. SeeVersion
-
PRODUCT_VERSION_TYPE
public static final org.forgerock.openig.model.type.StringTypeDefinition<Version> PRODUCT_VERSION_TYPERepresents the "PRODUCT_VERSION" type, which is a String with a specificSyntax
. -
REALM_SYNTAX
The "REALM"'sSyntax
. SeeRealm
-
REALM_TYPE
Represents the "PRODUCT_VERSION" type, which is a String with a specificSyntax
.
-
-
Method Details
-
expressionOf
public static <T> org.forgerock.openig.model.type.StringTypeDefinition<Expression<T>> expressionOf(Class<T> type) Represents a runtimeExpression
of type T, which is a String with a specificSyntax
.- Type Parameters:
T
- The Expression's type- Parameters:
type
- The Expression's type- Returns:
- The
TypeDefinition
of a runtime expression.
-
expressionSyntaxOf
public static <T> org.forgerock.openig.model.type.Syntax<Expression<T>> expressionSyntaxOf(Class<T> type) Creates an expressionSyntax
that is bound to the giventype
.The produced syntax can coerce a
String
into aExpression<T>
and the reverse (based on toString() of the expression).- Type Parameters:
T
- Expression's type- Parameters:
type
- expression's type (nevernull
)- Returns:
- a new Syntax that will parse a String into
-
purposeOf
public static <T extends Secret> org.forgerock.openig.model.type.StringTypeDefinition<Purpose<T>> purposeOf(Class<T> type) Represents a runtimePurpose
of secret's type T, which is a String with a specificSyntax
.- Type Parameters:
T
- The Secret's type- Parameters:
type
- The Secret's type- Returns:
- The
TypeDefinition
of a Purpose.
-