/** * This is the reader and writer for {@link BusinessInformationType} documents. This class may be * derived to override protected methods from {@link AbstractJAXBMarshaller}. * * @author Philip Helger */ public class PDBusinessInformationMarshaller extends AbstractJAXBMarshaller<BusinessInformationType> { /** XSD resources */ public static final List<? extends IReadableResource> BUSINESS_CARD_XSDS = CollectionHelper.newUnmodifiableList( new ClassPathResource("/schemas/pd-business-information-201511.xsd")); /** Constructor */ public PDBusinessInformationMarshaller() { super(BusinessInformationType.class, BUSINESS_CARD_XSDS); } @Override @Nonnull protected final JAXBElement<BusinessInformationType> wrapObject( final BusinessInformationType aCodeListDocument) { return new ObjectFactory().createBusinessInformation(aCodeListDocument); } }