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
FieldsModifier 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<Pattern>The "PATTERN"'sSyntax.static final org.forgerock.openig.model.type.StringTypeDefinition<Pattern>Represents the "Pattern" 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.static final org.forgerock.openig.model.type.StringTypeDefinition<URL>Represents the "URL" 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 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> org.forgerock.openig.model.type.StringTypeDefinition<LeftValueExpression<T>>leftValueExpressionOf(Class<T> type) Represents a runtimeLeftValueExpressionof type T, which is a String with a specificSyntax.static <T> org.forgerock.openig.model.type.Syntax<LeftValueExpression<T>>leftValueExpressionSyntaxOf(Class<T> type) Creates a left-value expressionSyntaxthat is bound to the giventype.Represents a runtimePurposeof 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. -
URL_TYPE
Represents the "URL" type, which is a String with a specificSyntax. -
PATTERN_SYNTAX
The "PATTERN"'sSyntax. SeePattern -
PATTERN_TYPE
Represents the "Pattern" 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 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
-
leftValueExpressionOf
public static <T> org.forgerock.openig.model.type.StringTypeDefinition<LeftValueExpression<T>> leftValueExpressionOf(Class<T> type) Represents a runtimeLeftValueExpressionof type T, which is a String with a specificSyntax.- Type Parameters:
T-LeftValueExpression's type- Parameters:
type- The left-value expression's type- Returns:
- The
TypeDefinitionof a left-value expression.
-
leftValueExpressionSyntaxOf
public static <T> org.forgerock.openig.model.type.Syntax<LeftValueExpression<T>> leftValueExpressionSyntaxOf(Class<T> type) Creates a left-value expressionSyntaxthat is bound to the giventype.The produced syntax can coerce a
Stringinto aLeftValueExpression<T>and the reverse (based on toString() of the expression).- Type Parameters:
T-LeftValueExpression's type- Parameters:
type- left-value 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.
-