Package com.twitter.clientlib.model
Class AbstractOpenApiSchema
- java.lang.Object
-
- com.twitter.clientlib.model.AbstractOpenApiSchema
-
- Direct Known Subclasses:
AddOrDeleteRulesRequest,FilteredStreamingTweet,ProblemOrError,RulesRequestSummary
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public abstract class AbstractOpenApiSchema extends ObjectAbstract class for oneOf,anyOf schemas defined in OpenAPI spec
-
-
Constructor Summary
Constructors Constructor Description AbstractOpenApiSchema(String schemaType, Boolean isNullable)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ObjectgetActualInstance()Get the actual instanceObjectgetActualInstanceRecursively()Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as wellabstract Map<String,javax.ws.rs.core.GenericType>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectStringgetSchemaType()Get the schema type (e.g.inthashCode()BooleanisNullable()Is nullablevoidsetActualInstance(Object instance)Set the actual instanceStringtoString()
-
-
-
Method Detail
-
getSchemas
public abstract Map<String,javax.ws.rs.core.GenericType> getSchemas()
Get the list of oneOf/anyOf composed schemas allowed to be stored in this object- Returns:
- an instance of the actual schema/object
-
getActualInstance
public Object getActualInstance()
Get the actual instance- Returns:
- an instance of the actual schema/object
-
setActualInstance
public void setActualInstance(Object instance)
Set the actual instance- Parameters:
instance- the actual instance of the schema/object
-
getActualInstanceRecursively
public Object getActualInstanceRecursively()
Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well- Returns:
- an instance of the actual schema/object
-
getSchemaType
public String getSchemaType()
Get the schema type (e.g. anyOf, oneOf)- Returns:
- the schema type
-
isNullable
public Boolean isNullable()
Is nullable- Returns:
- true if it's nullable
-
-