public abstract class TypeDefinition extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
displayName |
protected List<String> |
enumValues |
protected String |
example |
protected javax.ws.rs.core.MediaType |
mediaType |
protected Boolean |
required |
protected TypeSchema |
typeSchema |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getDisplayName() |
List<String> |
getEnumValues() |
String |
getExample() |
javax.ws.rs.core.MediaType |
getMediaType() |
TypeSchema |
getTypeSchema() |
int |
hashCode() |
boolean |
isEnum() |
Boolean |
isRequired() |
static TypeDefinition |
simplePrimitiveType(PrimitiveTypeDefinition.PrimitiveType type) |
static TypeDefinition |
simpleStringType() |
protected final javax.ws.rs.core.MediaType mediaType
protected final String example
protected final TypeSchema typeSchema
protected final String displayName
protected final String description
protected final Boolean required
public javax.ws.rs.core.MediaType getMediaType()
public String getExample()
public TypeSchema getTypeSchema()
public boolean isEnum()
public String getDisplayName()
public String getDescription()
public Boolean isRequired()
public static TypeDefinition simplePrimitiveType(PrimitiveTypeDefinition.PrimitiveType type)
public static TypeDefinition simpleStringType()
Copyright © 2023. All rights reserved.