Class BindingTypes


  • public final class BindingTypes
    extends Object
    • Method Detail

      • action

        public static ParameterizedType action​(Type parent,
                                               Type input,
                                               Type output)
        Type specializing Action for a particular type.
        Parameters:
        parent - Type of parent defining the action
        input - Type input type
        output - Type output type
        Returns:
        A parameterized type corresponding to Action<Parent, Input, Output>
        Throws:
        NullPointerException - if any argument is is null
      • keyedListAction

        public static ParameterizedType keyedListAction​(Type parent,
                                                        Type keyType,
                                                        Type input,
                                                        Type output)
        Type specializing KeyedListAction for a particular type.
        Parameters:
        parent - Type of parent defining the action
        keyType - Type of parent's key
        input - Type input type
        output - Type output type
        Returns:
        A parameterized type corresponding to KeyedListAction<ParentKey, Parent, Input, Output>
        Throws:
        NullPointerException - if any argument is is null
      • instanceNotification

        public static ParameterizedType instanceNotification​(Type concreteType,
                                                             Type parent)
        Type specializing InstanceNotification for a particular type.
        Parameters:
        parent - Type of parent defining the notification
        Returns:
        A parameterized type corresponding to InstanceNotification<Parent>
        Throws:
        NullPointerException - if parent is is null
      • keyedListNotification

        public static ParameterizedType keyedListNotification​(Type concreteType,
                                                              Type parent,
                                                              Type keyType)
        Type specializing InstanceNotification for a particular type.
        Parameters:
        parent - Type of parent defining the notification
        keyType - Type of parent's key
        Returns:
        A parameterized type corresponding to KeyedInstanceNotification<ParentKey, Parent>
        Throws:
        NullPointerException - if any argument is is null
      • augmentable

        public static @NonNull ParameterizedType augmentable​(Type type)
        Specialize Augmentable for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to Augmentable<Type>
        Throws:
        NullPointerException - if type is null
      • augmentation

        public static @NonNull ParameterizedType augmentation​(Type type)
        Specialize Augmentation for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to Augmentation<Type>
        Throws:
        NullPointerException - if type is null
      • childOf

        public static ParameterizedType childOf​(Type type)
        Specialize ChildOf for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to ChildOf<Type>
        Throws:
        NullPointerException - if type is null
      • choiceIn

        public static ParameterizedType choiceIn​(Type type)
        Type specializing ChoiceIn for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to ChoiceIn<Type>
        Throws:
        NullPointerException - if type is null
      • identifier

        public static ParameterizedType identifier​(Type type)
        Type specializing Identifier for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to Identifier<Type>
        Throws:
        NullPointerException - if type is null
      • identifiable

        public static ParameterizedType identifiable​(Type type)
        Type specializing Identifiable for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to Identifiable<Type>
        Throws:
        NullPointerException - if type is null
      • instanceIdentifier

        public static ParameterizedType instanceIdentifier​(Type type)
        Type specializing InstanceIdentifier for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to InstanceIdentifier<Type>
        Throws:
        NullPointerException - if type is null
      • keyedInstanceIdentifier

        public static ParameterizedType keyedInstanceIdentifier​(Type type,
                                                                Type keyType)
        Type specializing KeyedInstanceIdentifier for a particular type.
        Parameters:
        type - Type for which to specialize
        keyType - Type of key
        Returns:
        A parameterized type corresponding to KeyedInstanceIdentifier<Type, KeyType>
        Throws:
        NullPointerException - if any argument is is null
      • opaqueObject

        public static ParameterizedType opaqueObject​(Type type)
        Type specializing OpaqueObject for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to OpaqueObject<Type>
        Throws:
        NullPointerException - if type is null
      • rpcResult

        public static ParameterizedType rpcResult​(Type type)
        Type specializing RpcResult for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to RpcResult<Type>
        Throws:
        NullPointerException - if type is null
      • scalarTypeObject

        public static ParameterizedType scalarTypeObject​(Type type)
        Type specializing ScalarTypeObject for a particular type.
        Parameters:
        type - Type for which to specialize
        Returns:
        A parameterized type corresponding to ScalarTypeObject<Type>
        Throws:
        NullPointerException - if type is null