• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // =================================================================================================
2 // ADOBE SYSTEMS INCORPORATED
3 // Copyright 2006 Adobe Systems Incorporated
4 // All Rights Reserved
5 //
6 // NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the terms
7 // of the Adobe license agreement accompanying it.
8 // =================================================================================================
9 
10 package com.adobe.xmp;
11 
12 
13 /**
14  * Common constants for the XMP Toolkit.
15  *
16  * @since 20.01.2006
17  */
18 public interface XMPConst
19 {
20 	// ---------------------------------------------------------------------------------------------
21 	// Standard namespace URI constants
22 
23 
24 	// Standard namespaces
25 
26 	/** The XML namespace for XML. */
27 	String NS_XML = "http://www.w3.org/XML/1998/namespace";
28 	/** The XML namespace for RDF. */
29 	String NS_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
30 	/** The XML namespace for the Dublin Core schema. */
31 	String NS_DC = "http://purl.org/dc/elements/1.1/";
32 	/** The XML namespace for the IPTC Core schema. */
33 	String NS_IPTCCORE = "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/";
34 
35 	// Adobe standard namespaces
36 
37 	/** The XML namespace Adobe XMP Metadata. */
38 	String NS_X = "adobe:ns:meta/";
39 	/** */
40 	String NS_IX = "http://ns.adobe.com/iX/1.0/";
41 	/** The XML namespace for the XMP "basic" schema. */
42 	String NS_XMP = "http://ns.adobe.com/xap/1.0/";
43 	/** The XML namespace for the XMP copyright schema. */
44 	String NS_XMP_RIGHTS = "http://ns.adobe.com/xap/1.0/rights/";
45 	/** The XML namespace for the XMP digital asset management schema. */
46 	String NS_XMP_MM = "http://ns.adobe.com/xap/1.0/mm/";
47 	/** The XML namespace for the job management schema. */
48 	String NS_XMP_BJ = "http://ns.adobe.com/xap/1.0/bj/";
49 	/** The XML namespace for the job management schema. */
50 	String NS_XMP_NOTE = "http://ns.adobe.com/xmp/note/";
51 
52 	/** The XML namespace for the PDF schema. */
53 	String NS_PDF = "http://ns.adobe.com/pdf/1.3/";
54 	/** The XML namespace for the PDF schema. */
55 	String NS_PDFX = "http://ns.adobe.com/pdfx/1.3/";
56 	/** */
57 	String NS_PDFX_ID = "http://www.npes.org/pdfx/ns/id/";
58 	/** */
59 	String NS_PDFA_SCHEMA = "http://www.aiim.org/pdfa/ns/schema#";
60 	/** */
61 	String NS_PDFA_PROPERTY = "http://www.aiim.org/pdfa/ns/property#";
62 	/** */
63 	String NS_PDFA_TYPE = "http://www.aiim.org/pdfa/ns/type#";
64 	/** */
65 	String NS_PDFA_FIELD = "http://www.aiim.org/pdfa/ns/field#";
66 	/** */
67 	String NS_PDFA_ID = "http://www.aiim.org/pdfa/ns/id/";
68 	/** */
69 	String NS_PDFA_EXTENSION = "http://www.aiim.org/pdfa/ns/extension/";
70 	/** The XML namespace for the Photoshop custom schema. */
71 	String NS_PHOTOSHOP = "http://ns.adobe.com/photoshop/1.0/";
72 	/** The XML namespace for the Photoshop Album schema. */
73 	String NS_PSALBUM = "http://ns.adobe.com/album/1.0/";
74 	/** The XML namespace for Adobe's EXIF schema. */
75 	String NS_EXIF = "http://ns.adobe.com/exif/1.0/";
76 	/** */
77 	String NS_EXIF_AUX = "http://ns.adobe.com/exif/1.0/aux/";
78 	/** The XML namespace for Adobe's TIFF schema. */
79 	String NS_TIFF = "http://ns.adobe.com/tiff/1.0/";
80 	/** */
81 	String NS_PNG = "http://ns.adobe.com/png/1.0/";
82 	/** */
83 	String NS_JPEG = "http://ns.adobe.com/jpeg/1.0/";
84 	/** */
85 	String NS_JP2K = "http://ns.adobe.com/jp2k/1.0/";
86 	/** */
87 	String NS_CAMERARAW = "http://ns.adobe.com/camera-raw-settings/1.0/";
88 	/** */
89 	String NS_ADOBESTOCKPHOTO = "http://ns.adobe.com/StockPhoto/1.0/";
90 	/** */
91 	String NS_CREATOR_ATOM = "http://ns.adobe.com/creatorAtom/1.0/";
92 	/** */
93 	String NS_ASF = "http://ns.adobe.com/asf/1.0/";
94 	/** */
95 	String NS_WAV = "http://ns.adobe.com/xmp/wav/1.0/";
96 
97 
98 	// XMP namespaces that are Adobe private
99 
100 	/** */
101 	String NS_DM = "http://ns.adobe.com/xmp/1.0/DynamicMedia/";
102 	/** */
103 	String NS_TRANSIENT = "http://ns.adobe.com/xmp/transient/1.0/";
104 	/** legaciy dublin core NS, will be converted to NS_DC */
105 	String NS_DC_DEPRECATED = "http://purl.org/dc/1.1/";
106 
107 
108 	// XML namespace constants for qualifiers and structured property fields.
109 
110 	/** The XML namespace for qualifiers of the xmp:Identifier property. */
111 	String TYPE_IDENTIFIERQUAL = "http://ns.adobe.com/xmp/Identifier/qual/1.0/";
112 	/** The XML namespace for fields of the Dimensions type. */
113 	String TYPE_DIMENSIONS = "http://ns.adobe.com/xap/1.0/sType/Dimensions#";
114 	/** */
115 	String TYPE_TEXT = "http://ns.adobe.com/xap/1.0/t/";
116 	/** */
117 	String TYPE_PAGEDFILE = "http://ns.adobe.com/xap/1.0/t/pg/";
118 	/** */
119 	String TYPE_GRAPHICS = "http://ns.adobe.com/xap/1.0/g/";
120 	/** The XML namespace for fields of a graphical image. Used for the Thumbnail type. */
121 	String TYPE_IMAGE = "http://ns.adobe.com/xap/1.0/g/img/";
122 	/** */
123 	String TYPE_FONT = "http://ns.adobe.com/xap/1.0/sType/Font#";
124 	/** The XML namespace for fields of the ResourceEvent type. */
125 	String TYPE_RESOURCEEVENT = "http://ns.adobe.com/xap/1.0/sType/ResourceEvent#";
126 	/** The XML namespace for fields of the ResourceRef type. */
127 	String TYPE_RESOURCEREF = "http://ns.adobe.com/xap/1.0/sType/ResourceRef#";
128 	/** The XML namespace for fields of the Version type. */
129 	String TYPE_ST_VERSION = "http://ns.adobe.com/xap/1.0/sType/Version#";
130 	/** The XML namespace for fields of the JobRef type. */
131 	String TYPE_ST_JOB = "http://ns.adobe.com/xap/1.0/sType/Job#";
132 	/** */
133 	String TYPE_MANIFESTITEM = "http://ns.adobe.com/xap/1.0/sType/ManifestItem#";
134 
135 
136 
137 	// ---------------------------------------------------------------------------------------------
138 	// Basic types and constants
139 
140 	/**
141 	 * The canonical true string value for Booleans in serialized XMP. Code that converts from the
142 	 * string to a bool should be case insensitive, and even allow "1".
143 	 */
144 	String TRUESTR = "True";
145 	/**
146 	 * The canonical false string value for Booleans in serialized XMP. Code that converts from the
147 	 * string to a bool should be case insensitive, and even allow "0".
148 	 */
149 	String FALSESTR = "False";
150 	/** Index that has the meaning to be always the last item in an array. */
151 	int ARRAY_LAST_ITEM = -1;
152 	/** Node name of an array item. */
153 	String ARRAY_ITEM_NAME = "[]";
154 	/** The x-default string for localized properties */
155 	String X_DEFAULT = "x-default";
156 	/** xml:lang qualfifier */
157 	String XML_LANG = "xml:lang";
158 	/** rdf:type qualfifier */
159 	String RDF_TYPE = "rdf:type";
160 
161 	/** Processing Instruction (PI) for xmp packet */
162 	String XMP_PI = "xpacket";
163 	/** XMP meta tag version new */
164 	String TAG_XMPMETA = "xmpmeta";
165 	/** XMP meta tag version old */
166 	String TAG_XAPMETA = "xapmeta";
167 }