Package dk.mada.jaxrs.model
Record Class Model
java.lang.Object
java.lang.Record
dk.mada.jaxrs.model.Model
- Record Components:
naming
- the naming rulesinfo
- the API informationoperations
- the operations in the APIdtos
- the DTOs in the APIinterfaces
- the interfaces needed by the APIsecuritySchemes
- the security schemes in the APIcontentSelector
- 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 Summary
ConstructorDescriptionModel
(Naming naming, Info info, Operations operations, Dtos dtos, Set<TypeInterface> interfaces, List<SecurityScheme> securitySchemes, ContentSelector contentSelector) Creates an instance of aModel
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentSelector
record component.dtos()
Returns the value of thedtos
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.info()
Returns the value of theinfo
record component.Returns the value of theinterfaces
record component.naming()
Returns the value of thenaming
record component.Returns the value of theoperations
record component.Returns the value of thesecuritySchemes
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Model
public Model(Naming naming, Info info, Operations operations, Dtos dtos, Set<TypeInterface> interfaces, List<SecurityScheme> securitySchemes, ContentSelector contentSelector) Creates an instance of aModel
record class.- Parameters:
naming
- the value for thenaming
record componentinfo
- the value for theinfo
record componentoperations
- the value for theoperations
record componentdtos
- the value for thedtos
record componentinterfaces
- the value for theinterfaces
record componentsecuritySchemes
- the value for thesecuritySchemes
record componentcontentSelector
- the value for thecontentSelector
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
naming
Returns the value of thenaming
record component.- Returns:
- the value of the
naming
record component
-
info
Returns the value of theinfo
record component.- Returns:
- the value of the
info
record component
-
operations
Returns the value of theoperations
record component.- Returns:
- the value of the
operations
record component
-
dtos
Returns the value of thedtos
record component.- Returns:
- the value of the
dtos
record component
-
interfaces
Returns the value of theinterfaces
record component.- Returns:
- the value of the
interfaces
record component
-
securitySchemes
Returns the value of thesecuritySchemes
record component.- Returns:
- the value of the
securitySchemes
record component
-
contentSelector
Returns the value of thecontentSelector
record component.- Returns:
- the value of the
contentSelector
record component
-