Package org.apache.xmlgraphics.xmp
Class XMPSchemaRegistry
java.lang.Object
org.apache.xmlgraphics.xmp.XMPSchemaRegistry
This class is a registry of XMP schemas. It's implemented as a singleton.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an XMP schema to the registry.static XMPSchemaRegistry
Returns the XMP schema object for a given namespace.private void
init()
-
Field Details
-
instance
-
schemas
-
-
Constructor Details
-
XMPSchemaRegistry
private XMPSchemaRegistry()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of the XMP schema registry.
-
init
private void init() -
addSchema
Adds an XMP schema to the registry.- Parameters:
schema
- the XMP schema
-
getSchema
Returns the XMP schema object for a given namespace.- Parameters:
namespace
- the namespace URI- Returns:
- the XMP schema or null if none is available
-