Class AbstractAR
java.lang.Object
edu.university.ecs.lab.detection.architecture.models.AbstractAR
- All Implemented Interfaces:
JsonSerializable
Architectural Rule class template for all architectural rules.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Get the description of the Architectural Ruleabstract com.google.gson.JsonObject
Get the meta data of the Architectural Ruleabstract String
getName()
Get the name of the Architectural Ruleabstract String
Get the new commitIDabstract String
Get the old commitIDabstract String
getType()
Get the new commitIDabstract double
Get the weight of the Architectural Rulefinal com.google.gson.JsonObject
Create JSON object with Architectural Rule name, type, old commit ID, new commit ID, and meta data
-
Constructor Details
-
AbstractAR
public AbstractAR()
-
-
Method Details
-
getName
Get the name of the Architectural Rule- Returns:
- string name of the Architectural Rule
-
getDescription
Get the description of the Architectural Rule- Returns:
- string description of the Architectural Rule
-
getMetaData
public abstract com.google.gson.JsonObject getMetaData()Get the meta data of the Architectural Rule- Returns:
- JSON object meta data of the Architectural Rule
-
getWeight
public abstract double getWeight()Get the weight of the Architectural Rule- Returns:
- double weight of the Architectural Rule
-
getOldCommitID
Get the old commitID- Returns:
- string old commitID
-
getNewCommitID
Get the new commitID- Returns:
- string new commitID
-
getType
Get the new commitID- Returns:
- string new commitID
-
toJsonObject
public final com.google.gson.JsonObject toJsonObject()Create JSON object with Architectural Rule name, type, old commit ID, new commit ID, and meta data- Specified by:
toJsonObject
in interfaceJsonSerializable
- Returns:
- JSON object with Architectural Rule details
-