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

de.retest.ui.descriptors.StateAttributesAdapter 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 StateAttributesAdapter extends XmlAdapter {

	private final boolean renderLightweightXml;

	public StateAttributesAdapter() {
		renderLightweightXml = false;
	}

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

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

	@Override
	public Attributes unmarshal( final Attributes attributes ) throws Exception {
		return attributes;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy