
com.sun.tools.xjc.util.ReadOnlyAdapter Maven / Gradle / Ivy
Go to download
Old JAXB Binding Compiler. Contains source code needed for binding customization files into java sources.
In other words: the *tool* to generate java classes for the given xml representation.
package com.sun.tools.xjc.util;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* {@link XmlAdapter} used inside XJC is almost always unmarshal-only.
*
* @author Kohsuke Kawaguchi
*/
public abstract class ReadOnlyAdapter extends XmlAdapter {
public final OnTheWire marshal(InMemory onTheWire) {
// the unmarshaller uses this method
// to get the current collection object from the property.
// so we can't just throw UnsupportedOperationException here
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy