public class DesignPatternProperties extends AuthoredReferenceableProperties
DesignPatternProperties provides a class for the properties of a design pattern.
  • Constructor Details

    • DesignPatternProperties

      public DesignPatternProperties()
    • DesignPatternProperties

      public DesignPatternProperties(DesignPatternProperties template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getContext

      public String getContext()
      Return the context for this design pattern.
      Returns:
      string
    • setContext

      public void setContext(String context)
      Set up the context for this design pattern.
      Parameters:
      context - string
    • getForces

      public List<String> getForces()
      Return the forces that drive the use of this design pattern.
      Returns:
      list of strings
    • setForces

      public void setForces(List<String> forces)
      Set up the forces that drive the use of this design pattern.
      Parameters:
      forces - list of strings
    • getProblemStatement

      public String getProblemStatement()
      Return the problem statement for this design pattern.
      Returns:
      string
    • setProblemStatement

      public void setProblemStatement(String problemStatement)
      Set up the problem statement for this design pattern.
      Parameters:
      problemStatement - string
    • getProblemExample

      public String getProblemExample()
      Return the problem example for this design pattern.
      Returns:
      string
    • setProblemExample

      public void setProblemExample(String problemExample)
      Set up the problem example for this design pattern.
      Parameters:
      problemExample - string
    • getSolutionDescription

      public String getSolutionDescription()
      Return the solution description for this design pattern.
      Returns:
      string
    • setSolutionDescription

      public void setSolutionDescription(String solutionDescription)
      Set up the solution description for this design pattern.
      Parameters:
      solutionDescription - string
    • getSolutionExample

      public String getSolutionExample()
      Return the solution example for this design pattern.
      Returns:
      string
    • setSolutionExample

      public void setSolutionExample(String solutionExample)
      Set up the solution example for this design pattern.
      Parameters:
      solutionExample - string
    • getBenefits

      public List<String> getBenefits()
      Return the benefits of using this design pattern.
      Returns:
      list of strings
    • setBenefits

      public void setBenefits(List<String> benefits)
      Set up the benefits of using this design pattern.
      Parameters:
      benefits - list of strings
    • getLiabilities

      public List<String> getLiabilities()
      Return the liabilities of using this design pattern.
      Returns:
      list of strings
    • setLiabilities

      public void setLiabilities(List<String> liabilities)
      Set up the liabilities of using this design pattern.
      Parameters:
      liabilities - list of strings
    • getUsage

      public String getUsage()
      Return the known usage of this design pattern.
      Returns:
      string
    • setUsage

      public void setUsage(String usage)
      Set up the known usage of this design pattern.
      Parameters:
      usage - string
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class AuthoredReferenceableProperties
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class AuthoredReferenceableProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return a hash code based on the values of this object.
      Overrides:
      hashCode in class AuthoredReferenceableProperties
      Returns:
      int hash code