public static interface XMLObfuscator.AttributeConfigurer extends XMLObfuscator.Builder
Modifier and Type | Method and Description |
---|---|
XMLObfuscator.AttributeConfigurer |
forElement(QName element,
Obfuscator obfuscator)
Sets the obfuscator to use for occurrences of the attribute for a specific element.
|
XMLObfuscator.AttributeConfigurer |
forElement(String element,
Obfuscator obfuscator)
Sets the obfuscator to use for occurrences of the attribute for a specific element.
|
XMLObfuscator.AttributeConfigurer |
forElement(String element,
Obfuscator obfuscator,
CaseSensitivity caseSensitivity)
Sets the obfuscator to use for occurrences of the attribute for a specific element.
|
allByDefault, build, caseInsensitiveByDefault, caseSensitiveByDefault, excludeNestedElementsByDefault, forNestedElementsByDefault, generateXML, includeNestedElementsByDefault, limitTo, textOnlyByDefault, transform, withAttribute, withAttribute, withAttribute, withElement, withElement, withElement, withMalformedXMLWarning
XMLObfuscator.AttributeConfigurer forElement(String element, Obfuscator obfuscator)
This method is an alias for forElement(String, Obfuscator, CaseSensitivity)
with the last specified default case sensitivity
using XMLObfuscator.Builder.caseSensitiveByDefault()
or XMLObfuscator.Builder.caseInsensitiveByDefault()
. The default is CaseSensitivity.CASE_SENSITIVE
.
element
- The local name of the element.obfuscator
- The obfuscator to use for obfuscating the attribute.NullPointerException
- If the given element name or obfuscator is null
.IllegalArgumentException
- If an element with the same local name and the same case sensitivity was already added for the attribute.XMLObfuscator.AttributeConfigurer forElement(String element, Obfuscator obfuscator, CaseSensitivity caseSensitivity)
element
- The local name of the element.obfuscator
- The obfuscator to use for obfuscating the attribute.caseSensitivity
- The case sensitivity for the element.NullPointerException
- If the given element name, obfuscator or case sensitivity is null
.IllegalArgumentException
- If an element with the same local name and the same case sensitivity was already added for the attribute.XMLObfuscator.AttributeConfigurer forElement(QName element, Obfuscator obfuscator)
forElement(String, Obfuscator)
or
forElement(String, Obfuscator, CaseSensitivity)
.element
- The qualified name of the element.obfuscator
- The obfuscator to use for obfuscating the attribute.NullPointerException
- If the given element name or obfuscator is null
.IllegalArgumentException
- If an element with the same qualified name was already added for the attribute.Copyright © 2020–2023. All rights reserved.