java.lang.Object
edu.university.ecs.lab.detection.architecture.models.AbstractAR
All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
AR1, AR20, AR21, AR22, AR23, AR24, AR3, AR4, AR6, AR7

public abstract class AbstractAR extends Object implements JsonSerializable
Architectural Rule class template for all architectural rules.
  • Constructor Details

    • AbstractAR

      public AbstractAR()
  • Method Details

    • getName

      public abstract String getName()
      Get the name of the Architectural Rule
      Returns:
      string name of the Architectural Rule
    • getDescription

      public abstract String 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

      public abstract String getOldCommitID()
      Get the old commitID
      Returns:
      string old commitID
    • getNewCommitID

      public abstract String getNewCommitID()
      Get the new commitID
      Returns:
      string new commitID
    • getType

      public abstract String 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 interface JsonSerializable
      Returns:
      JSON object with Architectural Rule details