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: AdobePDFSchema.java 426584 2006-07-28 16:01:47Z 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: * Adobe PDF XMP schema.
29: */
30: public class AdobePDFSchema extends XMPSchema {
31:
32: /** Namespace URI for the Adobe PDF XMP schema */
33: public static final String NAMESPACE = XMPConstants.ADOBE_PDF_NAMESPACE;
34:
35: private static MergeRuleSet mergeRuleSet = new MergeRuleSet();
36:
37: /** Creates a new schema instance for Dublin Core. */
38: public AdobePDFSchema() {
39: super (NAMESPACE, "pdf");
40: }
41:
42: /**
43: * Creates and returns an adapter for this schema around the given metadata object.
44: * @param meta the metadata object
45: * @return the newly instantiated adapter
46: */
47: public static AdobePDFAdapter getAdapter(Metadata meta) {
48: return new AdobePDFAdapter(meta, NAMESPACE);
49: }
50:
51: /** @see org.apache.xmlgraphics.xmp.XMPSchema#getDefaultMergeRuleSet() */
52: public MergeRuleSet getDefaultMergeRuleSet() {
53: return mergeRuleSet;
54: }
55:
56: }
|