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 Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description HtmlSettings.Builder
addExcludeTagAttributes(String excludeTagAttributes)
Adds an excludeTagAttributes to excludeTagAttributes.HtmlSettings.Builder
addExcludeTagsCompletely(String excludeTagsCompletely)
Adds an excludeTagsCompletely to excludeTagsCompletely.HtmlSettings.Builder
addExcludeTagsKeepContent(String excludeTagsKeepContent)
Adds an excludeTagsKeepContent to excludeTagsKeepContent.HtmlSettings.Builder
addKeepTagAttributes(String keepTagAttributes)
Adds an keepTagAttributes to keepTagAttributes.HtmlSettings
build()
Builds a HtmlSettings.HtmlSettings.Builder
excludeContent(XPathPatterns excludeContent)
Set the excludeContent.HtmlSettings.Builder
excludeTagAttributes(List<String> excludeTagAttributes)
Set the excludeTagAttributes.HtmlSettings.Builder
excludeTagsCompletely(List<String> excludeTagsCompletely)
Set the excludeTagsCompletely.HtmlSettings.Builder
excludeTagsKeepContent(List<String> excludeTagsKeepContent)
Set the excludeTagsKeepContent.HtmlSettings.Builder
keepContent(XPathPatterns keepContent)
Set the keepContent.HtmlSettings.Builder
keepTagAttributes(List<String> keepTagAttributes)
Set the keepTagAttributes.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a HtmlSettings.- Returns:
- the new HtmlSettings instance
-
addExcludeTagsCompletely
Adds an excludeTagsCompletely to excludeTagsCompletely.- Parameters:
excludeTagsCompletely
- the new excludeTagsCompletely- Returns:
- the HtmlSettings builder
-
addExcludeTagsKeepContent
Adds an excludeTagsKeepContent to excludeTagsKeepContent.- Parameters:
excludeTagsKeepContent
- the new excludeTagsKeepContent- Returns:
- the HtmlSettings builder
-
addKeepTagAttributes
Adds an keepTagAttributes to keepTagAttributes.- Parameters:
keepTagAttributes
- the new keepTagAttributes- Returns:
- the HtmlSettings builder
-
addExcludeTagAttributes
Adds an excludeTagAttributes to excludeTagAttributes.- Parameters:
excludeTagAttributes
- the new excludeTagAttributes- Returns:
- the HtmlSettings builder
-
excludeTagsCompletely
Set the excludeTagsCompletely. Existing excludeTagsCompletely will be replaced.- Parameters:
excludeTagsCompletely
- the excludeTagsCompletely- Returns:
- the HtmlSettings builder
-
excludeTagsKeepContent
Set the excludeTagsKeepContent. Existing excludeTagsKeepContent will be replaced.- Parameters:
excludeTagsKeepContent
- the excludeTagsKeepContent- Returns:
- the HtmlSettings builder
-
keepContent
Set the keepContent.- Parameters:
keepContent
- the keepContent- Returns:
- the HtmlSettings builder
-
excludeContent
Set the excludeContent.- Parameters:
excludeContent
- the excludeContent- Returns:
- the HtmlSettings builder
-
keepTagAttributes
Set the keepTagAttributes. Existing keepTagAttributes will be replaced.- Parameters:
keepTagAttributes
- the keepTagAttributes- Returns:
- the HtmlSettings builder
-
excludeTagAttributes
Set the excludeTagAttributes. Existing excludeTagAttributes will be replaced.- Parameters:
excludeTagAttributes
- the excludeTagAttributes- Returns:
- the HtmlSettings builder
-