Class Microservice
java.lang.Object
edu.university.ecs.lab.common.models.Microservice
- All Implemented Interfaces:
JsonSerializable
Represents the overarching structure of a microservice system. It is composed of classes which
hold all information in that class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method returns all classes of the microservice in a new setvoid
removeJClass
(String path) This method removes a JClass from the microservice by looking up it's pathcom.google.gson.JsonObject
-
Constructor Details
-
Microservice
-
-
Method Details
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()- Specified by:
toJsonObject
in interfaceJsonSerializable
-
addJClass
-
removeJClass
This method removes a JClass from the microservice by looking up it's path- Parameters:
path
- the path to search for removal
-
getClasses
This method returns all classes of the microservice in a new set- Returns:
- the set of all JClasses
-