public static class HtmlSettings.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
HtmlSettings.Builder |
addExcludeTagAttributes(String excludeTagAttributes)
Adds a new element to excludeTagAttributes.
|
HtmlSettings.Builder |
addExcludeTagsCompletely(String excludeTagsCompletely)
Adds a new element to excludeTagsCompletely.
|
HtmlSettings.Builder |
addExcludeTagsKeepContent(String excludeTagsKeepContent)
Adds a new element to excludeTagsKeepContent.
|
HtmlSettings.Builder |
addKeepTagAttributes(String keepTagAttributes)
Adds a new element 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.
|
public HtmlSettings build()
public HtmlSettings.Builder addExcludeTagsCompletely(String excludeTagsCompletely)
excludeTagsCompletely
- the new element to be addedpublic HtmlSettings.Builder addExcludeTagsKeepContent(String excludeTagsKeepContent)
excludeTagsKeepContent
- the new element to be addedpublic HtmlSettings.Builder addKeepTagAttributes(String keepTagAttributes)
keepTagAttributes
- the new element to be addedpublic HtmlSettings.Builder addExcludeTagAttributes(String excludeTagAttributes)
excludeTagAttributes
- the new element to be addedpublic HtmlSettings.Builder excludeTagsCompletely(List<String> excludeTagsCompletely)
excludeTagsCompletely
- the excludeTagsCompletelypublic HtmlSettings.Builder excludeTagsKeepContent(List<String> excludeTagsKeepContent)
excludeTagsKeepContent
- the excludeTagsKeepContentpublic HtmlSettings.Builder keepContent(XPathPatterns keepContent)
keepContent
- the keepContentpublic HtmlSettings.Builder excludeContent(XPathPatterns excludeContent)
excludeContent
- the excludeContentpublic HtmlSettings.Builder keepTagAttributes(List<String> keepTagAttributes)
keepTagAttributes
- the keepTagAttributespublic HtmlSettings.Builder excludeTagAttributes(List<String> excludeTagAttributes)
excludeTagAttributes
- the excludeTagAttributesCopyright © 2024 IBM Cloud. All rights reserved.