Class XMPSchemaRegistry

java.lang.Object
org.apache.xmlgraphics.xmp.XMPSchemaRegistry

public final class XMPSchemaRegistry extends Object
This class is a registry of XMP schemas. It's implemented as a singleton.
  • Method Details

    • getInstance

      public static XMPSchemaRegistry getInstance()
      Returns:
      the singleton instance of the XMP schema registry.
    • addSchema

      public void addSchema(XMPSchema schema)
      Adds an XMP schema to the registry.
      Parameters:
      schema - the XMP schema
    • getSchema

      public XMPSchema getSchema(String namespace)
      Returns the XMP schema object for a given namespace.
      Parameters:
      namespace - the namespace URI
      Returns:
      the XMP schema or null if none is available