@Override public ValidationEventHandler getEventHandler() throws JAXBException { return this.jaxbUnmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return this.jaxbUnmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return delegate.getEventHandler(); }
@Override public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
/** * Delegates to the wrapped unmarshaller. */ @Override public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
/** * Delegates to the wrapped unmarshaller. */ @Override public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
@Override public ValidationEventHandler getEventHandler() throws JAXBException { return this.jaxbUnmarshaller.getEventHandler(); }
@Override public ValidationEventHandler getEventHandler() throws JAXBException { return this.jaxbUnmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return unmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return this.jaxbUnmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return this.jaxbUnmarshaller.getEventHandler(); }
public ValidationEventHandler getEventHandler() throws JAXBException { return getUnmarshaller().getEventHandler(); }
@Nonnull private static Unmarshaller _createUnmarshaller (@Nonnull final Class <?> aClass, @Nonnull final Schema aSchema, @Nullable final ValidationEventHandler aCustomEventHandler) throws JAXBException { // Since creating the JAXB context is quite cost intensive this is done // only once! final JAXBContext aJAXBContext = JAXBContextCache.getInstance ().getFromCache (aClass); // create an Unmarshaller final Unmarshaller aUnmarshaller = aJAXBContext.createUnmarshaller (); aUnmarshaller.setEventHandler (aCustomEventHandler != null ? aCustomEventHandler : new LoggingValidationEventHandler (aUnmarshaller.getEventHandler ())); // Validating! aUnmarshaller.setSchema (aSchema); return aUnmarshaller; }
@Nonnull private static Unmarshaller _createUnmarshaller (@Nonnull final Class <?> aClass, @Nonnull final Schema aSchema, @Nullable final ValidationEventHandler aCustomEventHandler) throws JAXBException { // Since creating the JAXB context is quite cost intensive this is done // only once! final JAXBContext aJAXBContext = JAXBContextCache.getInstance ().getFromCache (aClass); // create an Unmarshaller final Unmarshaller aUnmarshaller = aJAXBContext.createUnmarshaller (); aUnmarshaller.setEventHandler (aCustomEventHandler != null ? aCustomEventHandler : new LoggingValidationEventHandler (aUnmarshaller.getEventHandler ())); // Validating! aUnmarshaller.setSchema (aSchema); return aUnmarshaller; }
@Nonnull protected Unmarshaller createUnmarshaller () throws JAXBException { final JAXBContext aJAXBContext = getJAXBContext (); // create an Unmarshaller final Unmarshaller aUnmarshaller = aJAXBContext.createUnmarshaller (); if (m_aEventHandler != null) aUnmarshaller.setEventHandler (m_aEventHandler); else aUnmarshaller.setEventHandler (new LoggingValidationEventHandler ().andThen (aUnmarshaller.getEventHandler ())); // Validating (if possible) final Schema aSchema = getSchema (); if (aSchema != null) aUnmarshaller.setSchema (aSchema); return aUnmarshaller; }