Class SpecificationDocumentationCommentProviderConfigurator

java.lang.Object
com.nomagic.magicdraw.uml2.util.SpecificationDocumentationCommentProviderConfigurator

public class SpecificationDocumentationCommentProviderConfigurator extends Object
Documentation comment configurator for comment body representation in documentation node
  • Constructor Details

    • SpecificationDocumentationCommentProviderConfigurator

      public SpecificationDocumentationCommentProviderConfigurator()
  • Method Details

    • addDocumentationCommentProvider

      public static void addDocumentationCommentProvider(Function<Element,Comment> function)
    • getDocumentationCommentProviders

      public static List<Function<Element,Comment>> getDocumentationCommentProviders()
    • isProvidersNotEmpty

      public static boolean isProvidersNotEmpty()
    • getFirstCommentFromProviders

      @CheckForNull public static Comment getFirstCommentFromProviders(Element element)
      Gets first comment from documentation providers function list
      Parameters:
      element - which comment elements are being checked.
      Returns:
      first found comment - else null.