de.retest.ui.descriptors.IdentifyingAttributesAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of retest-model Show documentation
Show all versions of retest-model Show documentation
The domain model for both retest and recheck.
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;
}
}