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.BuilderaddExcludeTagAttributes(String excludeTagAttributes)Adds an excludeTagAttributes to excludeTagAttributes.HtmlSettings.BuilderaddExcludeTagsCompletely(String excludeTagsCompletely)Adds an excludeTagsCompletely to excludeTagsCompletely.HtmlSettings.BuilderaddExcludeTagsKeepContent(String excludeTagsKeepContent)Adds an excludeTagsKeepContent to excludeTagsKeepContent.HtmlSettings.BuilderaddKeepTagAttributes(String keepTagAttributes)Adds an keepTagAttributes to keepTagAttributes.HtmlSettingsbuild()Builds a HtmlSettings.HtmlSettings.BuilderexcludeContent(XPathPatterns excludeContent)Set the excludeContent.HtmlSettings.BuilderexcludeTagAttributes(List<String> excludeTagAttributes)Set the excludeTagAttributes.HtmlSettings.BuilderexcludeTagsCompletely(List<String> excludeTagsCompletely)Set the excludeTagsCompletely.HtmlSettings.BuilderexcludeTagsKeepContent(List<String> excludeTagsKeepContent)Set the excludeTagsKeepContent.HtmlSettings.BuilderkeepContent(XPathPatterns keepContent)Set the keepContent.HtmlSettings.BuilderkeepTagAttributes(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
-