Class AnnotatedTypeName
java.lang.Object
io.github.torand.openapi2java.model.AnnotatedTypeName
Describes a full type name including its bean validation annotations.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedTypeName(List<String> annotatedTypeNameItems) Constructs anAnnotatedTypeNameobject. -
Method Summary
Modifier and TypeMethodDescriptionGets the main type bean validation annotations.Gets the main type bean validation annotations combined into a space delimited string.asString()Gets the items of the annotated type name combined into a space delimited string.booleanReturns whether the main type has any bean validation annotations.items()Gets the annotation and type name items.typeName()Gets the full type name including any bean validation annotations in subtypes.
-
Constructor Details
-
AnnotatedTypeName
Constructs anAnnotatedTypeNameobject. 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
Gets the main type bean validation annotations.- Returns:
- the main type bean validation annotations.
-
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
Gets the full type name including any bean validation annotations in subtypes.- Returns:
- the full type name.
-
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
Gets the annotation and type name items.- Returns:
- the annotation and type name items.
-