@FunctionalInterface
public interface AttributeValueConverter
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
convertAttributeValue(Element element,
java.lang.String name,
java.lang.String value) |
Returns the value that should be used instead of the original value.
|
static AttributeValueConverter |
fromFunction(java.util.function.Function<java.lang.String,java.lang.String> valueConverter) |
Creates a new AttributeValueConverter from a value converter function.
|
java.lang.String convertAttributeValue(Element element, java.lang.String name, java.lang.String value)
element - The element containing the attribute.name - The attribute name.value - The attribute value.static AttributeValueConverter fromFunction(java.util.function.Function<java.lang.String,java.lang.String> valueConverter)
Conversion is independent of element and attribute name.
valueConverter - The function used to convert values.Copyright © 2018. All rights reserved.