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
ConstructorsConstructorDescriptionModel(Naming naming, Info info, Operations operations, Dtos dtos, Set<TypeInterface> interfaces, List<SecurityScheme> securitySchemes, ContentSelector contentSelector) Creates an instance of aModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentSelectorrecord component.dtos()Returns the value of thedtosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.Returns the value of theinterfacesrecord component.naming()Returns the value of thenamingrecord component.Returns the value of theoperationsrecord component.Returns the value of thesecuritySchemesrecord component.final StringtoString()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 aModelrecord class.- Parameters:
naming- the value for thenamingrecord componentinfo- the value for theinforecord componentoperations- the value for theoperationsrecord componentdtos- the value for thedtosrecord componentinterfaces- the value for theinterfacesrecord componentsecuritySchemes- the value for thesecuritySchemesrecord componentcontentSelector- the value for thecontentSelectorrecord 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 thenamingrecord component.- Returns:
- the value of the
namingrecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
dtos
Returns the value of thedtosrecord component.- Returns:
- the value of the
dtosrecord component
-
interfaces
Returns the value of theinterfacesrecord component.- Returns:
- the value of the
interfacesrecord component
-
securitySchemes
Returns the value of thesecuritySchemesrecord component.- Returns:
- the value of the
securitySchemesrecord component
-
contentSelector
Returns the value of thecontentSelectorrecord component.- Returns:
- the value of the
contentSelectorrecord component
-