/** * Create and add a XMP Basic schema to this metadata. * * This method return the created schema to enter information * * @return schema added in order to work on it */ public XMPBasicSchema createAndAddXMPBasicSchema() { XMPBasicSchema xmpB = new XMPBasicSchema(this); xmpB.setAboutAsSimple(""); addSchema(xmpB); return xmpB; }
/** * Set the base URL property * * @param url * the Base url property to set */ public void setBaseURLProperty(URLType url) { addProperty(url); }
/** * Add a property specification that were edited outside the authoring application * * @param xpath * the value to add */ public void addAdvisory(String xpath) { addQualifiedBagValue(ADVISORY, xpath); }
XMPBasicSchema basicSchema = xmp.getXMPBasicSchema(); if (basicSchema != null) { baseURL = basicSchema.getBaseURL(); createDate = basicSchema.getCreateDate(); creatorTool = basicSchema.getCreatorTool(); if (basicSchema.getIdentifiers() != null) { identifier.addAll(basicSchema.getIdentifiers()); metadataDate = basicSchema.getMetadataDate(); modifyDate = basicSchema.getModifyDate(); nickname = basicSchema.getNickname(); rating = basicSchema.getRating(); label = basicSchema.getLabel(); return true;
if (basic != null) display("Create Date:", basic.getCreateDate()); display("Modify Date:", basic.getModifyDate()); display("Creator Tool:", basic.getCreatorTool());
basicSchema.setCreateDate(creationDate); basicSchema.setModifyDate(creationDate); basicSchema.setMetadataDate(creationDate); basicSchema.setCreatorTool(creator);
/** * 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); }
if (xmp != null) if (xmp.getCreatorToolProperty() == null) if (!xmp.getCreatorTool().equals(creatorTool))
Calendar xmpCreationDate = xmp.getCreateDate(); else if (hasTimeZone(xmp.getCreateDateProperty().getRawValue()) != hasTimeZone(dico.getPropertyStringValue("CreationDate")))
Calendar xmpModifyDate = xmp.getModifyDate(); if (xmpModifyDate == null) else if (hasTimeZone(xmp.getModifyDateProperty().getRawValue()) != hasTimeZone(dico.getPropertyStringValue("ModDate")))
xsb.setCreatorTool(creatorTool); xsb.setCreateDate(GregorianCalendar.getInstance());
xmpBasicSchema.setCreateDate(information.getCreationDate());
if (basic != null) display("Create Date:", basic.getCreateDate()); display("Modify Date:", basic.getModifyDate()); display("Creator Tool:", basic.getCreatorTool());
basicSchema.setModifyDate( info.getModificationDate() ); basicSchema.setCreateDate( info.getCreationDate() ); basicSchema.setCreatorTool( info.getCreator() ); basicSchema.setMetadataDate( new GregorianCalendar() );
/** * 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); }
if (xmp != null) if (xmp.getCreatorToolProperty() == null) if (!xmp.getCreatorTool().equals(creatorTool))
Calendar xmpCreationDate = xmp.getCreateDate(); else if (hasTimeZone(xmp.getCreateDateProperty().getRawValue()) != hasTimeZone(dico.getPropertyStringValue("CreationDate")))
Calendar xmpModifyDate = xmp.getModifyDate(); if (xmpModifyDate == null) else if (hasTimeZone(xmp.getModifyDateProperty().getRawValue()) != hasTimeZone(dico.getPropertyStringValue("ModDate")))
xmpBasicSchema.setCreateDate(information.getCreationDate());
basicSchema.setCreateDate(creationDate); basicSchema.setModifyDate(creationDate); basicSchema.setMetadataDate(creationDate); basicSchema.setCreatorTool(creator);