Class ModelUtil

    • Method Detail

      • resolveLocalName

        public static String resolveLocalName​(String value,
                                              String defaultValue)
        Resolves a provided local name value. If the value is null or "##default", then the provided default value will be used instead. If the value is "##none", then the value will be null. Otherwise, the value is returned.
        Parameters:
        value - the requested value
        defaultValue - the default value
        Returns:
        the resolved value
      • resolveToMarkupLine

        @Nullable
        public static MarkupLine resolveToMarkupLine​(@NonNull
                                                     String annotationValue)
        Get the markup value of a markdown string.
        Parameters:
        annotationValue - markdown text or "##none" if no text is provided
        Returns:
        the markup line content or null if no markup content was provided
      • resolveToMarkupMultiline

        @Nullable
        public static MarkupMultiline resolveToMarkupMultiline​(@NonNull
                                                               String annotationValue)
        Get the markup value of a markdown string.
        Parameters:
        annotationValue - markdown text or "##none" if no text is provided
        Returns:
        the markup line content or null if no markup content was provided
      • resolveToString

        @Nullable
        public static String resolveToString​(@NonNull
                                             String annotationValue)
        Get the string value of a string.
        Parameters:
        annotationValue - text or "##none" if no text is provided
        Returns:
        the string content or null if no string content was provided