public class FormatHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getDateFormatString(Annotations annotations,
org.jboss.jandex.Type type)
The the date format as a String
This is used to add to the description in the schema
|
static Optional<Transformation> |
getFormat(org.jboss.jandex.Type type,
Annotations annotations)
Get the format model object for a certain type.
|
static Optional<String> |
getNumberFormatString(Annotations annotations)
The the number format (if any) as a String
This is used to add to the description in the schema
|
static boolean |
hasAnyFormatting(Annotations annotations)
Test if any formatting is present.
|
public static boolean hasAnyFormatting(Annotations annotations)
annotations - the annotationspublic static Optional<Transformation> getFormat(org.jboss.jandex.Type type, Annotations annotations)
type - the typeannotations - the annotationspublic static Optional<String> getNumberFormatString(Annotations annotations)
annotations - the annotationspublic static String getDateFormatString(Annotations annotations, org.jboss.jandex.Type type)
annotations - the annotationstype - the date typeCopyright © 2018–2022. All rights reserved.