public class APIChangeState extends Object
| Constructor and Description |
|---|
APIChangeState(API actualAPI,
API desiredAPI)
Constructs the APIChangeState based on the given Actual- and Desired-API.
|
| Modifier and Type | Method and Description |
|---|---|
API |
getActualAPI() |
List<String> |
getBreakingChanges() |
API |
getDesiredAPI() |
API |
getIntransitAPI()
The IntransitAPI is used/set, when a new API has been created in API-Manager
while the "old actual API" still exists.
|
List<String> |
getNonBreakingChanges() |
boolean |
hasAnyChanges() |
boolean |
isBreaking() |
boolean |
isUpdateExistingAPI() |
void |
setActualAPI(API actualAPI) |
void |
setDesiredAPI(API desiredAPI) |
void |
setIntransitAPI(API intransitAPI)
The IntransitAPI is used/set, when a new API has been created in API-Manager
while the "old actual API" still exists.
|
public APIChangeState(API actualAPI, API desiredAPI) throws AppException
actualAPI - - The API taken from the API-ManagerdesiredAPI - - The API loaded from the Swagger + ConfigAppException - - Is thrown when something goes wrong.public API getActualAPI()
public void setActualAPI(API actualAPI)
actualAPI - overwrites the API-Manager API instancepublic API getDesiredAPI()
public void setDesiredAPI(API desiredAPI)
desiredAPI - overwrites the desired API.public API getIntransitAPI()
CreateNewAPIpublic void setIntransitAPI(API intransitAPI)
intransitAPI - the intermediate APICreateNewAPIpublic boolean hasAnyChanges()
public boolean isBreaking()
throws AppException
AppException - if the actualAPI.state can't be readpublic boolean isUpdateExistingAPI()
Copyright © 2020. All rights reserved.