public static class HtmlSettings.Builder
extends java.lang.Object
Constructor and Description |
---|
HtmlSettings.Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
HtmlSettings.Builder |
addExcludeTagAttributes(java.lang.String excludeTagAttributes)
Adds an excludeTagAttributes to excludeTagAttributes.
|
HtmlSettings.Builder |
addExcludeTagsCompletely(java.lang.String excludeTagsCompletely)
Adds an excludeTagsCompletely to excludeTagsCompletely.
|
HtmlSettings.Builder |
addExcludeTagsKeepContent(java.lang.String excludeTagsKeepContent)
Adds an excludeTagsKeepContent to excludeTagsKeepContent.
|
HtmlSettings.Builder |
addKeepTagAttributes(java.lang.String keepTagAttributes)
Adds an keepTagAttributes to keepTagAttributes.
|
HtmlSettings |
build()
Builds a HtmlSettings.
|
HtmlSettings.Builder |
excludeContent(XPathPatterns excludeContent)
Set the excludeContent.
|
HtmlSettings.Builder |
excludeTagAttributes(java.util.List<java.lang.String> excludeTagAttributes)
Set the excludeTagAttributes.
|
HtmlSettings.Builder |
excludeTagsCompletely(java.util.List<java.lang.String> excludeTagsCompletely)
Set the excludeTagsCompletely.
|
HtmlSettings.Builder |
excludeTagsKeepContent(java.util.List<java.lang.String> excludeTagsKeepContent)
Set the excludeTagsKeepContent.
|
HtmlSettings.Builder |
keepContent(XPathPatterns keepContent)
Set the keepContent.
|
HtmlSettings.Builder |
keepTagAttributes(java.util.List<java.lang.String> keepTagAttributes)
Set the keepTagAttributes.
|
public HtmlSettings build()
public HtmlSettings.Builder addExcludeTagsCompletely(java.lang.String excludeTagsCompletely)
excludeTagsCompletely
- the new excludeTagsCompletelypublic HtmlSettings.Builder addExcludeTagsKeepContent(java.lang.String excludeTagsKeepContent)
excludeTagsKeepContent
- the new excludeTagsKeepContentpublic HtmlSettings.Builder addKeepTagAttributes(java.lang.String keepTagAttributes)
keepTagAttributes
- the new keepTagAttributespublic HtmlSettings.Builder addExcludeTagAttributes(java.lang.String excludeTagAttributes)
excludeTagAttributes
- the new excludeTagAttributespublic HtmlSettings.Builder excludeTagsCompletely(java.util.List<java.lang.String> excludeTagsCompletely)
excludeTagsCompletely
- the excludeTagsCompletelypublic HtmlSettings.Builder excludeTagsKeepContent(java.util.List<java.lang.String> excludeTagsKeepContent)
excludeTagsKeepContent
- the excludeTagsKeepContentpublic HtmlSettings.Builder keepContent(XPathPatterns keepContent)
keepContent
- the keepContentpublic HtmlSettings.Builder excludeContent(XPathPatterns excludeContent)
excludeContent
- the excludeContentpublic HtmlSettings.Builder keepTagAttributes(java.util.List<java.lang.String> keepTagAttributes)
keepTagAttributes
- the keepTagAttributespublic HtmlSettings.Builder excludeTagAttributes(java.util.List<java.lang.String> excludeTagAttributes)
excludeTagAttributes
- the excludeTagAttributes