All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.retest.ui.descriptors.IdentifyingAttributesAdapter Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package de.retest.ui.descriptors;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class IdentifyingAttributesAdapter extends XmlAdapter {

	private final boolean renderLightweightXml;

	public IdentifyingAttributesAdapter() {
		renderLightweightXml = false;
	}

	public IdentifyingAttributesAdapter( final boolean renderLightweightXml ) {
		this.renderLightweightXml = renderLightweightXml;
	}

	@Override
	public IdentifyingAttributes marshal( final IdentifyingAttributes identifyingAttributes ) throws Exception {
		return renderLightweightXml ? null : identifyingAttributes;
	}

	@Override
	public IdentifyingAttributes unmarshal( final IdentifyingAttributes identifyingAttributes ) throws Exception {
		return identifyingAttributes;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy