Class ParserTypeRefs

java.lang.Object
dk.mada.jaxrs.openapi.ParserTypeRefs

public class ParserTypeRefs extends Object
Constructs and keeps track of parser references.
  • Constructor Details

    • ParserTypeRefs

      public ParserTypeRefs(TypeNames typeNames)
      Constructs new instance.
      Parameters:
      typeNames - the type names instance
  • Method Details

    • makeDtoRef

      public ParserTypeRef makeDtoRef(String name, Validation validation)
      Makes a new parser reference to a DTO. Created from a property/parameter reference, so it does have validation.
      Parameters:
      name - the name of the DTO type
      validation - the validation requirements of the reference
      Returns:
      the parser reference
    • of

      public ParserTypeRef of(Type type, Validation validation)
      Makes a new parser reference to a primitive/special type.
      Parameters:
      type - the type to make a reference to
      validation - the validation requirements of the reference
      Returns:
      the parser reference
    • info

      public String info()
      Returns information about parser references.
      Returns:
      information about parser references