/** * Constructor. * * @param aType The class of the JAXB document implementation type. May not be <code>null</code>. * @param aXSDs The XSDs used to validate document. May be <code>null</code> or empty indicating, * that no XSD check is needed. */ protected AbstractJAXBMarshaller( @Nonnull final Class<JAXBTYPE> aType, @Nullable final IReadableResource... aXSDs) { m_aType = ValueEnforcer.notNull(aType, "Type"); if (aXSDs != null) { ValueEnforcer.notEmptyNoNullValue(aXSDs, "XSDs"); for (final IReadableResource aXSD : aXSDs) m_aXSDs.add(aXSD); } }
/** * Constructor. * * @param aType The class of the JAXB document implementation type. May not be <code>null</code>. * @param aXSDs The XSDs used to validate document. May be <code>null</code> or empty indicating, * that no XSD check is needed. */ protected AbstractJAXBMarshaller( @Nonnull final Class<JAXBTYPE> aType, @Nullable final List<? extends IReadableResource> aXSDs) { m_aType = ValueEnforcer.notNull(aType, "Type"); if (aXSDs != null) { ValueEnforcer.notEmptyNoNullValue(aXSDs, "XSDs"); m_aXSDs.addAll(aXSDs); } }