1 50 51 package com.lowagie.text.xml.xmp; 52 53 54 57 public class XmpBasicSchema extends XmpSchema { 58 59 private static final long serialVersionUID = -2416613941622479298L; 60 61 public static final String DEFAULT_XPATH_ID = "xmp"; 62 63 public static final String DEFAULT_XPATH_URI = "http://ns.adobe.com/xap/1.0/"; 64 65 66 public static final String ADVISORY = "xmp:Advisory"; 67 68 public static final String BASEURL = "xmp:BaseURL"; 69 70 public static final String CREATEDATE = "xmp:CreateDate"; 71 72 public static final String CREATORTOOL = "xmp:CreatorTool"; 73 74 public static final String IDENTIFIER = "xmp:Identifier"; 75 76 public static final String METADATADATE = "xmp:MetadataDate"; 77 78 public static final String MODIFYDATE = "xmp:ModifyDate"; 79 80 public static final String NICKNAME = "xmp:Nickname"; 81 82 public static final String THUMBNAILS = "xmp:Thumbnails"; 83 84 85 public XmpBasicSchema() { 86 super("xmlns:" + DEFAULT_XPATH_ID + "=\"" + DEFAULT_XPATH_URI + "\""); 87 } 88 89 93 public void addCreatorTool(String creator) { 94 setProperty(CREATORTOOL, creator); 95 } 96 97 101 public void addCreateDate(String date) { 102 setProperty(CREATEDATE, date); 103 } 104 105 109 public void addModDate(String date) { 110 setProperty(MODIFYDATE, date); 111 } 112 113 117 public void addMetaDataDate(String date) { 118 setProperty(METADATADATE, date); 119 } 120 121 124 public void addIdentifiers(String [] id) { 125 XmpArray array = new XmpArray(XmpArray.UNORDERED); 126 for (int i = 0; i < id.length; i++) { 127 array.add(id[i]); 128 } 129 setProperty(IDENTIFIER, array); 130 } 131 132 135 public void addNickname(String name) { 136 setProperty(NICKNAME, name); 137 } 138 } 139 | Popular Tags |