/** * 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); }
/** * Set Width * * @param width * the value of width property to set */ public void setWidth(Integer width) { addSimpleProperty(WIDTH, width); }
/** * Get The img data * * @return the img */ public String getImage() { AbstractField absProp = getFirstEquivalentProperty(IMAGE, TextType.class); if (absProp != null) { return ((TextType) absProp).getStringValue(); } return null; }
/** * * @param metadata * The metadata to attach to this property */ public ThumbnailType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
/** * * @param metadata * The metadata to attach to this property */ public ThumbnailType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
/** * 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); }
/** * Set Image data * * @param image * the value of image property to set */ public void setImage(String image) { addSimpleProperty(IMAGE, image); }
/** * Get Width * * @return the width */ public Integer getWidth() { AbstractField absProp = getFirstEquivalentProperty(WIDTH, IntegerType.class); if (absProp != null) { return ((IntegerType) absProp).getValue(); } return null; }
/** * * @param metadata * The metadata to attach to this property */ public ThumbnailType(XMPMetadata metadata) { super(metadata); setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource")); }
/** * 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); }
/** * Set Height * * @param height * the value of Height property to set */ public void setHeight(Integer height) { addSimpleProperty(HEIGHT, height); }
/** * Get Format * * @return the format */ public String getFormat() { AbstractField absProp = getFirstEquivalentProperty(FORMAT, ChoiceType.class); if (absProp != null) { return ((TextType) absProp).getStringValue(); } return null; }
/** * Set Format * * @param format * the value of format property to set */ public void setFormat(String format) { addSimpleProperty(FORMAT, format); }
/** * Get Height * * @return the height */ public Integer getHeight() { AbstractField absProp = getFirstEquivalentProperty(HEIGHT, IntegerType.class); if (absProp != null) { return ((IntegerType) absProp).getValue(); } return null; }
/** * Set Width * * @param width * the value of width property to set */ public void setWidth(Integer width) { addSimpleProperty(WIDTH, width); }
/** * Get Width * * @return the width */ public Integer getWidth() { AbstractField absProp = getFirstEquivalentProperty(WIDTH, IntegerType.class); if (absProp != null) { return ((IntegerType) absProp).getValue(); } return null; }
/** * Set Image data * * @param image * the value of image property to set */ public void setImage(String image) { addSimpleProperty(IMAGE, image); }