private void checkThumbnails(PreflightContext ctx, XMPMetadata metadata) { XMPBasicSchema xmp = metadata.getXMPBasicSchema(); if (xmp == null) { return; } List<ThumbnailType> tbProp; try { tbProp = xmp.getThumbnailsProperty(); } catch (BadFieldValueException e) { // should not happen here because it would have happened in XmpParser already addValidationError(ctx, new ValidationError(PreflightConstants.ERROR_METADATA_FORMAT, e.getMessage(), e)); return; } if (tbProp == null) { return; } for (ThumbnailType tb : tbProp) { checkThumbnail(tb, ctx); } }
private void checkThumbnails(PreflightContext ctx, XMPMetadata metadata) { XMPBasicSchema xmp = metadata.getXMPBasicSchema(); if (xmp == null) { return; } List<ThumbnailType> tbProp; try { tbProp = xmp.getThumbnailsProperty(); } catch (BadFieldValueException e) { // should not happen here because it would have happened in XmpParser already addValidationError(ctx, new ValidationError(PreflightConstants.ERROR_METADATA_FORMAT, e.getMessage(), e)); return; } if (tbProp == null) { return; } for (ThumbnailType tb : tbProp) { checkThumbnail(tb, ctx); } }
private void checkThumbnails(PreflightContext ctx, XMPMetadata metadata) { XMPBasicSchema xmp = metadata.getXMPBasicSchema(); if (xmp == null) { return; } List<ThumbnailType> tbProp; try { tbProp = xmp.getThumbnailsProperty(); } catch (BadFieldValueException e) { // should not happen here because it would have happened in XmpParser already addValidationError(ctx, new ValidationError(PreflightConstants.ERROR_METADATA_FORMAT, e.getMessage(), e)); return; } if (tbProp == null) { return; } for (ThumbnailType tb : tbProp) { checkThumbnail(tb, ctx); } }