Class AnnotationConvertUtil


  • public final class AnnotationConvertUtil
    extends java.lang.Object
    Annotation convert utility
    • Field Detail

      • MAX_TIMESTAMP_STRING

        public static final java.lang.String MAX_TIMESTAMP_STRING
        See Also:
        Constant Field Values
      • MAX_TIMESTAMP

        public static final java.time.Instant MAX_TIMESTAMP
    • Method Detail

      • parseDate

        public java.time.Instant parseDate​(java.lang.String input)
        Parse a date
        Parameters:
        input - the input date as string
        Returns:
        the Instant
      • getAnnotationInformation

        public <T extends java.lang.Enum<T>> EnumValueConfiguration getAnnotationInformation​(T e)
                                                                                      throws java.lang.IllegalArgumentException
        Read the enum
        Type Parameters:
        T - the generic type
        Parameters:
        e - the enumeration value
        Returns:
        the parsed content
        Throws:
        java.lang.IllegalArgumentException - In case the annotation could not be resolved
      • getName

        public <T extends javax.lang.model.element.ExecutableElement> java.lang.String getName​(T type)
        Get the name
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        Returns:
        the type as name
      • getValue

        public <T extends javax.lang.model.element.AnnotationValue> java.lang.String getValue​(T type)
        Get the name
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        Returns:
        the type as name
      • trimQuotationMarks

        public java.lang.String trimQuotationMarks​(java.lang.String input)
        Trim quotation marks
        Parameters:
        input - the input
        Returns:
        the trimmed output