Class AnnotatedTypeName

java.lang.Object
io.github.torand.openapi2java.model.AnnotatedTypeName

public class AnnotatedTypeName extends Object
Describes a full type name including its bean validation annotations.
  • Constructor Details

    • AnnotatedTypeName

      public AnnotatedTypeName(List<String> annotatedTypeNameItems)
      Constructs an AnnotatedTypeName object. Note! Any bean validation annotations on subtypes (key or item) of a compound type is expected to be embedded into the type name.
      Parameters:
      annotatedTypeNameItems - the annotation and type name items.
  • Method Details

    • hasAnnotations

      public boolean hasAnnotations()
      Returns whether the main type has any bean validation annotations.
      Returns:
      true if the main type has any bean validation annotations; else false.
    • annotations

      public Stream<String> annotations()
      Gets the main type bean validation annotations.
      Returns:
      the main type bean validation annotations.
    • annotationsAsString

      public String annotationsAsString()
      Gets the main type bean validation annotations combined into a space delimited string.
      Returns:
      the main type bean validation annotations as a single string.
    • typeName

      public String typeName()
      Gets the full type name including any bean validation annotations in subtypes.
      Returns:
      the full type name.
    • asString

      public String asString()
      Gets the items of the annotated type name combined into a space delimited string.
      Returns:
      the complete annotated type name as a single string.
    • items

      public Stream<String> items()
      Gets the annotation and type name items.
      Returns:
      the annotation and type name items.