com.mobenga.ngen.xml.parser.AttributeMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ngen-xml-parser Show documentation
Show all versions of ngen-xml-parser Show documentation
An XML parser engineered for n-to-m mapping from XML(s) to Java Object(s).
The newest version!
package com.mobenga.ngen.xml.parser;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;
/**
* The Attribute Mapping is used to describe how to map an XML Element attribute
* to a Java object. The data transfer is described in two steps. In the first
* step (the mapping) the data is transformed from a String to a Java type. In the second step
* (setting the attribute) the data is injected into a Java object via a lambda function.
*
* @param Map the field to an object of this class
* @param Type of the value to be mapped
*/
public class AttributeMapping {
private final Class resultingFieldType;
private final Map values;
private BiConsumer setter;
private Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy