类 TemporalTypeTemporal

    • 字段详细资料

    • 构造器详细资料

      • TemporalTypeTemporal

        public TemporalTypeTemporal()
      • TemporalTypeTemporal

        public TemporalTypeTemporal​(Object o)
    • 方法详细资料

      • 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: DateType, TimeStampType It could be an instance of the 'oneOf' schemas.
        覆盖:
        setActualInstance 在类中 AbstractOpenApiSchema
        参数:
        instance - the actual instance of the schema/object
      • getActualInstance

        public Object getActualInstance()
        Get the actual instance, which can be the following: DateType, TimeStampType
        覆盖:
        getActualInstance 在类中 AbstractOpenApiSchema
        返回:
        The actual instance (DateType, TimeStampType)
      • getTimeStampType

        public TimeStampType getTimeStampType()
                                       throws ClassCastException
        Get the actual instance of `TimeStampType`. If the actual instance is not `TimeStampType`, the ClassCastException will be thrown.
        返回:
        The actual instance of `TimeStampType`
        抛出:
        ClassCastException - if the instance is not `TimeStampType`
      • getDateType

        public DateType getDateType()
                             throws ClassCastException
        Get the actual instance of `DateType`. If the actual instance is not `DateType`, the ClassCastException will be thrown.
        返回:
        The actual instance of `DateType`
        抛出:
        ClassCastException - if the instance is not `DateType`
      • validateJsonElement

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

        public static TemporalTypeTemporal fromJson​(String jsonString)
                                             throws IOException
        Create an instance of TemporalTypeTemporal given an JSON string
        参数:
        jsonString - JSON string
        返回:
        An instance of TemporalTypeTemporal
        抛出:
        IOException - if the JSON string is invalid with respect to TemporalTypeTemporal
      • toJson

        public String toJson()
        Convert an instance of TemporalTypeTemporal to an JSON string
        返回:
        JSON string