/** * Add thumbnail to thumbnails list * * @param height * height format * @param width * width format * @param format * thumbnail format * @param img * Image data */ public void addThumbnails(Integer height, Integer width, String format, String img) { if (altThumbs == null) { altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt); addProperty(altThumbs); } ThumbnailType thumb = new ThumbnailType(getMetadata()); thumb.setHeight(height); thumb.setWidth(width); thumb.setFormat(format); thumb.setImage(img); altThumbs.getContainer().addProperty(thumb); }
/** * Add thumbnail to thumbnails list * * @param height * height format * @param width * width format * @param format * thumbnail format * @param img * Image data */ public void addThumbnails(Integer height, Integer width, String format, String img) { if (altThumbs == null) { altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt); addProperty(altThumbs); } ThumbnailType thumb = new ThumbnailType(getMetadata()); thumb.setHeight(height); thumb.setWidth(width); thumb.setFormat(format); thumb.setImage(img); altThumbs.getContainer().addProperty(thumb); }
/** * Add thumbnail to thumbnails list * * @param height * height format * @param width * width format * @param format * thumbnail format * @param img * Image data */ public void addThumbnails(Integer height, Integer width, String format, String img) { if (altThumbs == null) { altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt); addProperty(altThumbs); } ThumbnailType thumb = new ThumbnailType(getMetadata()); thumb.setHeight(height); thumb.setWidth(width); thumb.setFormat(format); thumb.setImage(img); altThumbs.getContainer().addProperty(thumb); }