Class APIParameterProperties


public class APIParameterProperties extends SchemaAttributeProperties
APIParameterProperties is a class for representing a parameter in an API specification.
  • Constructor Details

    • APIParameterProperties

      public APIParameterProperties()
      Default constructor
    • APIParameterProperties

      public APIParameterProperties(APIParameterProperties template)
      Copy/clone constructor.
      Parameters:
      template - object to copy
    • APIParameterProperties

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

    • getParameterType

      public String getParameterType()
      Return the type of parameter - for example for REST APIs, is it a PathVariable or a RequestParameter?
      Returns:
      string name
    • setParameterType

      public void setParameterType(String parameterType)
      Set up the type of parameter - for example for REST APIs, is it a PathVariable or a RequestParameter?
      Parameters:
      parameterType - string name
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class SchemaAttributeProperties
      Returns:
      print out of variables in a JSON-style
    • equals

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

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class SchemaAttributeProperties
      Returns:
      int hash code