类 TemporalTypeTemporal
- java.lang.Object
-
- com.alibaba.graphscope.interactive.openapi.model.AbstractOpenApiSchema
-
- com.alibaba.graphscope.interactive.openapi.model.TemporalTypeTemporal
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class TemporalTypeTemporal extends AbstractOpenApiSchema
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classTemporalTypeTemporal.CustomTypeAdapterFactory
-
构造器概要
构造器 构造器 说明 TemporalTypeTemporal()TemporalTypeTemporal(Object o)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static TemporalTypeTemporalfromJson(String jsonString)Create an instance of TemporalTypeTemporal given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: DateType, TimeStampTypeDateTypegetDateType()Get the actual instance of `DateType`.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectTimeStampTypegetTimeStampType()Get the actual instance of `TimeStampType`.voidsetActualInstance(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.StringtoJson()Convert an instance of TemporalTypeTemporal to an JSON stringstatic voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found-
从类继承的方法 com.alibaba.graphscope.interactive.openapi.model.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
构造器详细资料
-
TemporalTypeTemporal
public TemporalTypeTemporal()
-
TemporalTypeTemporal
public TemporalTypeTemporal(Object o)
-
-
方法详细资料
-
getSchemas
public Map<String,Class<?>> getSchemas()
从类复制的说明:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- 指定者:
getSchemas在类中AbstractOpenApiSchema- 返回:
- an instance of the actual schema/object
-
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 IOExceptionValidates 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
-
-