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