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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringGet the description of the Architectural Ruleabstract com.google.gson.JsonObjectGet the meta data of the Architectural Ruleabstract StringgetName()Get the name of the Architectural Ruleabstract StringGet the new commitIDabstract StringGet the old commitIDabstract StringgetType()Get the new commitIDabstract doubleGet the weight of the Architectural Rulefinal com.google.gson.JsonObjectCreate 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:
toJsonObjectin interfaceJsonSerializable- Returns:
- JSON object with Architectural Rule details
-