Package org.forgerock.openig.types
Class TypeDefinitions
- java.lang.Object
-
- org.forgerock.openig.types.TypeDefinitions
-
public final class TypeDefinitions extends Object
Type definitions helpers for generic types. Completes helper methods provided byTypeDefinition.
-
-
Field Summary
Fields Modifier and Type Field Description static org.forgerock.openig.model.type.StringTypeDefinition<Duration>DURATION_TYPERepresents the "Duration" type, which is a String with a specificSyntax.static org.forgerock.openig.model.type.Syntax<Version>PRODUCT_VERSION_SYNTAXThe "PRODUCT_VERSION"'sSyntax.static org.forgerock.openig.model.type.StringTypeDefinition<Version>PRODUCT_VERSION_TYPERepresents the "PRODUCT_VERSION" type, which is a String with a specificSyntax.static org.forgerock.openig.model.type.Syntax<Realm>REALM_SYNTAXThe "REALM"'sSyntax.static org.forgerock.openig.model.type.StringTypeDefinition<Realm>REALM_TYPERepresents the "PRODUCT_VERSION" type, which is a String with a specificSyntax.static org.forgerock.openig.model.type.StringTypeDefinition<URI>URI_TYPERepresents the "URI" type, which is a String with a specificSyntax.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> org.forgerock.openig.model.type.StringTypeDefinition<Expression<T>>expressionOf(Class<T> type)Represents a runtimeExpressionof 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 expressionSyntaxthat is bound to the giventype.static <T extends Secret>
org.forgerock.openig.model.type.StringTypeDefinition<Purpose<T>>purposeOf(Class<T> type)Represents a runtimePurposeof secret's type T, which is a String with a specificSyntax.
-
-
-
Field Detail
-
DURATION_TYPE
public static final org.forgerock.openig.model.type.StringTypeDefinition<Duration> DURATION_TYPE
Represents the "Duration" type, which is a String with a specificSyntax.
-
URI_TYPE
public static final org.forgerock.openig.model.type.StringTypeDefinition<URI> URI_TYPE
Represents the "URI" type, which is a String with a specificSyntax.
-
PRODUCT_VERSION_SYNTAX
public static final org.forgerock.openig.model.type.Syntax<Version> PRODUCT_VERSION_SYNTAX
The "PRODUCT_VERSION"'sSyntax. SeeVersion
-
PRODUCT_VERSION_TYPE
public static final org.forgerock.openig.model.type.StringTypeDefinition<Version> PRODUCT_VERSION_TYPE
Represents the "PRODUCT_VERSION" type, which is a String with a specificSyntax.
-
REALM_SYNTAX
public static final org.forgerock.openig.model.type.Syntax<Realm> REALM_SYNTAX
The "REALM"'sSyntax. SeeRealm
-
REALM_TYPE
public static final org.forgerock.openig.model.type.StringTypeDefinition<Realm> REALM_TYPE
Represents the "PRODUCT_VERSION" type, which is a String with a specificSyntax.
-
-
Method Detail
-
expressionOf
public static <T> org.forgerock.openig.model.type.StringTypeDefinition<Expression<T>> expressionOf(Class<T> type)
Represents a runtimeExpressionof type T, which is a String with a specificSyntax.- Type Parameters:
T- The Expression's type- Parameters:
type- The Expression's type- Returns:
- The
TypeDefinitionof a runtime expression.
-
expressionSyntaxOf
public static <T> org.forgerock.openig.model.type.Syntax<Expression<T>> expressionSyntaxOf(Class<T> type)
Creates an expressionSyntaxthat is bound to the giventype.The produced syntax can coerce a
Stringinto 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 runtimePurposeof 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
TypeDefinitionof a Purpose.
-
-