Class HtmlSettings.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.HtmlSettings.Builder
Enclosing class:
HtmlSettings

public static class HtmlSettings.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public HtmlSettings build()
      Builds a HtmlSettings.
      Returns:
      the new HtmlSettings instance
    • addExcludeTagsCompletely

      public HtmlSettings.Builder addExcludeTagsCompletely​(String excludeTagsCompletely)
      Adds an excludeTagsCompletely to excludeTagsCompletely.
      Parameters:
      excludeTagsCompletely - the new excludeTagsCompletely
      Returns:
      the HtmlSettings builder
    • addExcludeTagsKeepContent

      public HtmlSettings.Builder addExcludeTagsKeepContent​(String excludeTagsKeepContent)
      Adds an excludeTagsKeepContent to excludeTagsKeepContent.
      Parameters:
      excludeTagsKeepContent - the new excludeTagsKeepContent
      Returns:
      the HtmlSettings builder
    • addKeepTagAttributes

      public HtmlSettings.Builder addKeepTagAttributes​(String keepTagAttributes)
      Adds an keepTagAttributes to keepTagAttributes.
      Parameters:
      keepTagAttributes - the new keepTagAttributes
      Returns:
      the HtmlSettings builder
    • addExcludeTagAttributes

      public HtmlSettings.Builder addExcludeTagAttributes​(String excludeTagAttributes)
      Adds an excludeTagAttributes to excludeTagAttributes.
      Parameters:
      excludeTagAttributes - the new excludeTagAttributes
      Returns:
      the HtmlSettings builder
    • excludeTagsCompletely

      public HtmlSettings.Builder excludeTagsCompletely​(List<String> excludeTagsCompletely)
      Set the excludeTagsCompletely. Existing excludeTagsCompletely will be replaced.
      Parameters:
      excludeTagsCompletely - the excludeTagsCompletely
      Returns:
      the HtmlSettings builder
    • excludeTagsKeepContent

      public HtmlSettings.Builder excludeTagsKeepContent​(List<String> excludeTagsKeepContent)
      Set the excludeTagsKeepContent. Existing excludeTagsKeepContent will be replaced.
      Parameters:
      excludeTagsKeepContent - the excludeTagsKeepContent
      Returns:
      the HtmlSettings builder
    • keepContent

      public HtmlSettings.Builder keepContent​(XPathPatterns keepContent)
      Set the keepContent.
      Parameters:
      keepContent - the keepContent
      Returns:
      the HtmlSettings builder
    • excludeContent

      public HtmlSettings.Builder excludeContent​(XPathPatterns excludeContent)
      Set the excludeContent.
      Parameters:
      excludeContent - the excludeContent
      Returns:
      the HtmlSettings builder
    • keepTagAttributes

      public HtmlSettings.Builder keepTagAttributes​(List<String> keepTagAttributes)
      Set the keepTagAttributes. Existing keepTagAttributes will be replaced.
      Parameters:
      keepTagAttributes - the keepTagAttributes
      Returns:
      the HtmlSettings builder
    • excludeTagAttributes

      public HtmlSettings.Builder excludeTagAttributes​(List<String> excludeTagAttributes)
      Set the excludeTagAttributes. Existing excludeTagAttributes will be replaced.
      Parameters:
      excludeTagAttributes - the excludeTagAttributes
      Returns:
      the HtmlSettings builder