类 GSDataType
- java.lang.Object
-
- com.alibaba.graphscope.interactive.openapi.model.AbstractOpenApiSchema
-
- com.alibaba.graphscope.interactive.openapi.model.GSDataType
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class GSDataType extends AbstractOpenApiSchema
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classGSDataType.CustomTypeAdapterFactory
-
构造器概要
构造器 构造器 说明 GSDataType()GSDataType(Object o)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static GSDataTypefromJson(String jsonString)Create an instance of GSDataType given an JSON stringObjectgetActualInstance()Get the actual instance, which can be the following: PrimitiveType, StringType, TemporalTypePrimitiveTypegetPrimitiveType()Get the actual instance of `PrimitiveType`.Map<String,Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectStringTypegetStringType()Get the actual instance of `StringType`.TemporalTypegetTemporalType()Get the actual instance of `TemporalType`.voidsetActualInstance(Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: PrimitiveType, StringType, TemporalType It could be an instance of the 'oneOf' schemas.StringtoJson()Convert an instance of GSDataType 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
-
-
-
-
构造器详细资料
-
GSDataType
public GSDataType()
-
GSDataType
public GSDataType(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: PrimitiveType, StringType, TemporalType 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: PrimitiveType, StringType, TemporalType- 覆盖:
getActualInstance在类中AbstractOpenApiSchema- 返回:
- The actual instance (PrimitiveType, StringType, TemporalType)
-
getPrimitiveType
public PrimitiveType getPrimitiveType() throws ClassCastException
Get the actual instance of `PrimitiveType`. If the actual instance is not `PrimitiveType`, the ClassCastException will be thrown.- 返回:
- The actual instance of `PrimitiveType`
- 抛出:
ClassCastException- if the instance is not `PrimitiveType`
-
getStringType
public StringType getStringType() throws ClassCastException
Get the actual instance of `StringType`. If the actual instance is not `StringType`, the ClassCastException will be thrown.- 返回:
- The actual instance of `StringType`
- 抛出:
ClassCastException- if the instance is not `StringType`
-
getTemporalType
public TemporalType getTemporalType() throws ClassCastException
Get the actual instance of `TemporalType`. If the actual instance is not `TemporalType`, the ClassCastException will be thrown.- 返回:
- The actual instance of `TemporalType`
- 抛出:
ClassCastException- if the instance is not `TemporalType`
-
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 GSDataType
-
fromJson
public static GSDataType fromJson(String jsonString) throws IOException
Create an instance of GSDataType given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of GSDataType
- 抛出:
IOException- if the JSON string is invalid with respect to GSDataType
-
toJson
public String toJson()
Convert an instance of GSDataType to an JSON string- 返回:
- JSON string
-
-