Record Class Model

java.lang.Object
java.lang.Record
dk.mada.jaxrs.model.Model
Record Components:
naming - the naming rules
info - the API information
operations - the operations in the API
dtos - the DTOs in the API
interfaces - the interfaces needed by the API
securitySchemes - the security schemes in the API
contentSelector - selector to pick appropriate content

public record Model(Naming naming, Info info, Operations operations, Dtos dtos, Set<TypeInterface> interfaces, List<SecurityScheme> securitySchemes, ContentSelector contentSelector) extends Record
The transformed model of an OpenApi specification.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • naming

      public Naming naming()
      Returns the value of the naming record component.
      Returns:
      the value of the naming record component
    • info

      public Info info()
      Returns the value of the info record component.
      Returns:
      the value of the info record component
    • operations

      public Operations operations()
      Returns the value of the operations record component.
      Returns:
      the value of the operations record component
    • dtos

      public Dtos dtos()
      Returns the value of the dtos record component.
      Returns:
      the value of the dtos record component
    • interfaces

      public Set<TypeInterface> interfaces()
      Returns the value of the interfaces record component.
      Returns:
      the value of the interfaces record component
    • securitySchemes

      public List<SecurityScheme> securitySchemes()
      Returns the value of the securitySchemes record component.
      Returns:
      the value of the securitySchemes record component
    • contentSelector

      public ContentSelector contentSelector()
      Returns the value of the contentSelector record component.
      Returns:
      the value of the contentSelector record component