Class IW9FormDataModelsOneOf

    • Constructor Detail

      • IW9FormDataModelsOneOf

        public IW9FormDataModelsOneOf()
      • IW9FormDataModelsOneOf

        public IW9FormDataModelsOneOf​(Object o)
    • Method Detail

      • setActualInstance

        public void setActualInstance​(Object instance)
        Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: W4FormDataModel, W8BenFormDataModel, W8BeneFormDataModel, W8ImyFormDataModel, W9FormDataModel It could be an instance of the 'oneOf' schemas.
        Overrides:
        setActualInstance in class AbstractOpenApiSchema
        Parameters:
        instance - the actual instance of the schema/object
      • getActualInstance

        public Object getActualInstance()
        Get the actual instance, which can be the following: W4FormDataModel, W8BenFormDataModel, W8BeneFormDataModel, W8ImyFormDataModel, W9FormDataModel
        Overrides:
        getActualInstance in class AbstractOpenApiSchema
        Returns:
        The actual instance (W4FormDataModel, W8BenFormDataModel, W8BeneFormDataModel, W8ImyFormDataModel, W9FormDataModel)
      • getW4FormDataModel

        public W4FormDataModel getW4FormDataModel()
                                           throws ClassCastException
        Get the actual instance of `W4FormDataModel`. If the actual instance is not `W4FormDataModel`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `W4FormDataModel`
        Throws:
        ClassCastException - if the instance is not `W4FormDataModel`
      • getW8BeneFormDataModel

        public W8BeneFormDataModel getW8BeneFormDataModel()
                                                   throws ClassCastException
        Get the actual instance of `W8BeneFormDataModel`. If the actual instance is not `W8BeneFormDataModel`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `W8BeneFormDataModel`
        Throws:
        ClassCastException - if the instance is not `W8BeneFormDataModel`
      • getW8BenFormDataModel

        public W8BenFormDataModel getW8BenFormDataModel()
                                                 throws ClassCastException
        Get the actual instance of `W8BenFormDataModel`. If the actual instance is not `W8BenFormDataModel`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `W8BenFormDataModel`
        Throws:
        ClassCastException - if the instance is not `W8BenFormDataModel`
      • getW8ImyFormDataModel

        public W8ImyFormDataModel getW8ImyFormDataModel()
                                                 throws ClassCastException
        Get the actual instance of `W8ImyFormDataModel`. If the actual instance is not `W8ImyFormDataModel`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `W8ImyFormDataModel`
        Throws:
        ClassCastException - if the instance is not `W8ImyFormDataModel`
      • getW9FormDataModel

        public W9FormDataModel getW9FormDataModel()
                                           throws ClassCastException
        Get the actual instance of `W9FormDataModel`. If the actual instance is not `W9FormDataModel`, the ClassCastException will be thrown.
        Returns:
        The actual instance of `W9FormDataModel`
        Throws:
        ClassCastException - if the instance is not `W9FormDataModel`
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to IW9FormDataModelsOneOf
      • fromJson

        public static IW9FormDataModelsOneOf fromJson​(String jsonString)
                                               throws IOException
        Create an instance of IW9FormDataModelsOneOf given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of IW9FormDataModelsOneOf
        Throws:
        IOException - if the JSON string is invalid with respect to IW9FormDataModelsOneOf
      • toJson

        public String toJson()
        Convert an instance of IW9FormDataModelsOneOf to an JSON string
        Returns:
        JSON string