01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id: PDFAOldXMPSchema.java 548968 2007-06-20 07:51:26Z jeremias $ */
19:
20: package org.apache.xmlgraphics.xmp.schemas.pdf;
21:
22: import org.apache.xmlgraphics.xmp.Metadata;
23: import org.apache.xmlgraphics.xmp.XMPConstants;
24: import org.apache.xmlgraphics.xmp.XMPSchema;
25: import org.apache.xmlgraphics.xmp.merge.MergeRuleSet;
26:
27: /**
28: * XMP Schema for PDF/A (ISO 19005-1). This schema uses a namespace URI used in a draft version
29: * of the ISO standard which is still necessary because of a bug in Adobe Acrobat.
30: * @deprecated Outdated, please use PDFAXMPSchema instead
31: */
32: public class PDFAOldXMPSchema extends XMPSchema {
33:
34: /** Namespace URI for Dublin Core */
35: public static final String NAMESPACE = XMPConstants.PDF_A_IDENTIFICATION_OLD;
36:
37: private static MergeRuleSet mergeRuleSet = new MergeRuleSet();
38:
39: /** Creates a new schema instance for Dublin Core. */
40: public PDFAOldXMPSchema() {
41: super (NAMESPACE, "pdfaid_1");
42: }
43:
44: /**
45: * Creates and returns an adapter for this schema around the given metadata object.
46: * @param meta the metadata object
47: * @return the newly instantiated adapter
48: */
49: public static PDFAAdapter getAdapter(Metadata meta) {
50: return new PDFAAdapter(meta, NAMESPACE);
51: }
52:
53: /** @see org.apache.xmlgraphics.xmp.XMPSchema#getDefaultMergeRuleSet() */
54: public MergeRuleSet getDefaultMergeRuleSet() {
55: return mergeRuleSet;
56: }
57:
58: }
|