Class XMPSchema

java.lang.Object
org.apache.xmlgraphics.xmp.XMPSchema
Direct Known Subclasses:
AdobePDFSchema, DublinCoreSchema, PDFAExtensionXMPSchema, PDFAXMPSchema, PDFUAXMPSchema, PDFVTXMPSchema, PDFXXMPSchema, XAPMMXMPSchema, XMPBasicSchema

public class XMPSchema extends Object
Base class for schema implementations that provide user-friendly access to XMP values.
  • Constructor Details

    • XMPSchema

      public XMPSchema(String namespace, String preferredPrefix)
      Constructs a new XMP schema object.
      Parameters:
      namespace - the namespace URI for the schema
      preferredPrefix - the preferred prefix for the schema
  • Method Details

    • getNamespace

      public String getNamespace()
      Returns:
      the namespace URI of the schema
    • getPreferredPrefix

      public String getPreferredPrefix()
      Returns:
      the preferred prefix of the schema
    • getQName

      protected QName getQName(String propName)
      Returns the QName for a property of this schema.
      Parameters:
      propName - the property name
      Returns:
      the QName for the property
    • getDefaultMergeRuleSet

      public MergeRuleSet getDefaultMergeRuleSet()
      Returns:
      the default merge rule set for this XMP schema.