Package com.adobe.xmp.schema.service
Class SchemaServiceFactory
java.lang.Object
com.adobe.xmp.schema.service.SchemaServiceFactory
Factory to create instances of
SchemaService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaServiceCreates the default instance ofSchemaService.static SchemaServicecreateInstance(RelaxNGProvider provider, SchemaCache cache) Creates an instance ofSchemaServicethat is configured with custom provider, cache and prefix mapping implementations.
-
Constructor Details
-
SchemaServiceFactory
public SchemaServiceFactory()
-
-
Method Details
-
createInstance
public static SchemaService createInstance(RelaxNGProvider provider, SchemaCache cache) throws SchemaServiceException Creates an instance ofSchemaServicethat is configured with custom provider, cache and prefix mapping implementations.- Parameters:
provider- an instance ofRelaxNGProvidercache- an instance ofSchemaCache- Returns:
- Returns a configured instance of
SchemaService. - Throws:
SchemaServiceException- Thrown if parameters are null or initialization fails.
-
createDefaultInstance
Creates the default instance ofSchemaService. It provides the schemas that are included in the library.- Returns:
- Returns an instance of the default
SchemaService - Throws:
SchemaServiceException- Thrown if initialization fails.
-