public class ModelOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelOptions.Builder
Builds a new
ModelOptions instance. |
static class |
ModelOptions.Source
Defines the source of API input definitions.
|
Constructor and Description |
---|
ModelOptions()
Creates a new ModelOptions instance.
|
Modifier and Type | Method and Description |
---|---|
static ModelOptions.Builder |
builder()
Returns a new ModelOptions builder.
|
static ModelOptions.Builder |
builder(ModelOptions defaults)
Returns a new ModelOptions builder.
|
Notifier |
getConditionNotifier()
Returns the
Notifier that reports conditions found when creating a Tcases model from an OpenAPI model. |
ServerSelector |
getServerSelector()
Returns the
ServerSelector used to select the API server for API input definitions. |
URI |
getServerUri()
Returns the URI specifed for the API server.
|
ModelOptions.Source |
getSource()
Returns the source of API input definitions.
|
boolean |
isReadOnlyEnforced()
Returns if the API will strictly enforce the exclusion of "readOnly" properties from requests.
|
boolean |
isWriteOnlyEnforced()
Returns if the API will strictly enforce the exclusion of "writeOnly" properties from responses.
|
void |
setConditionNotifier(Notifier notifier)
Changes the
Notifier that reports conditions found when creating a Tcases model from an OpenAPI model. |
void |
setReadOnlyEnforced(boolean enforced)
Changes if the API will strictly enforce the exclusion of "readOnly" properties from requests.
|
void |
setServerSelector(ServerSelector serverSelector)
Changes the
ServerSelector used to select the API server for API input definitions. |
void |
setServerUri(URI uri)
Changes the URI specifed for the API server.
|
void |
setSource(ModelOptions.Source source)
Changes the source of API input definitions.
|
void |
setWriteOnlyEnforced(boolean enforced)
Changes if the API will strictly enforce the exclusion of "writeOnly" properties from responses.
|
String |
toString() |
public void setConditionNotifier(Notifier notifier)
Notifier
that reports conditions found when creating a Tcases model from an OpenAPI model.public Notifier getConditionNotifier()
Notifier
that reports conditions found when creating a Tcases model from an OpenAPI model.public void setReadOnlyEnforced(boolean enforced)
public boolean isReadOnlyEnforced()
public void setWriteOnlyEnforced(boolean enforced)
public boolean isWriteOnlyEnforced()
public void setSource(ModelOptions.Source source)
public ModelOptions.Source getSource()
public void setServerUri(URI uri)
public URI getServerUri()
public void setServerSelector(ServerSelector serverSelector)
ServerSelector
used to select the API server for API input definitions.public ServerSelector getServerSelector()
ServerSelector
used to select the API server for API input definitions.public static ModelOptions.Builder builder()
public static ModelOptions.Builder builder(ModelOptions defaults)
Copyright © 2024 The Cornutum Project. All rights reserved.