~hjd/ubuntu/wily/xmlgraphics-commons/debian-merged

« back to all changes in this revision

Viewing changes to src/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreSchema.java

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2011-02-11 14:15:14 UTC
  • mfrom: (8.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110211141514-h67achft6x31gju1
Tags: 1.4.dfsg-3
Uploading to unstable, hoping we won't break too many things ;-)...

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: DublinCoreSchema.java 426584 2006-07-28 16:01:47Z jeremias $ */
 
18
/* $Id: DublinCoreSchema.java 750418 2009-03-05 11:03:54Z vhennebert $ */
19
19
 
20
20
package org.apache.xmlgraphics.xmp.schemas;
21
21
 
31
31
 */
32
32
public class DublinCoreSchema extends XMPSchema {
33
33
 
34
 
    /** Namespace URI for Dublin Core */ 
 
34
    /** Namespace URI for Dublin Core */
35
35
    public static final String NAMESPACE = XMPConstants.DUBLIN_CORE_NAMESPACE;
36
36
 
37
37
    private static MergeRuleSet dcMergeRuleSet;
38
 
    
 
38
 
39
39
    static {
40
40
        dcMergeRuleSet = new MergeRuleSet();
41
41
        //Dates are added up not replaced
42
42
        dcMergeRuleSet.addRule(new QName(NAMESPACE, "date"), new ArrayAddPropertyMerger());
43
43
    }
44
 
    
 
44
 
45
45
    /** Creates a new schema instance for Dublin Core. */
46
46
    public DublinCoreSchema() {
47
47
        super(NAMESPACE, "dc");
48
48
    }
49
 
    
 
49
 
50
50
    /**
51
51
     * Creates and returns an adapter for this schema around the given metadata object.
52
52
     * @param meta the metadata object
60
60
    public MergeRuleSet getDefaultMergeRuleSet() {
61
61
        return dcMergeRuleSet;
62
62
    }
63
 
    
 
63
 
64
64
}