Package com.adobe.xmp.schema.service
Class StandardRelaxNGProvider
java.lang.Object
com.adobe.xmp.schema.service.StandardRelaxNGProvider
- All Implemented Interfaces:
RelaxNGProvider
The standard RelaxNG-provider provides access to standard Relax-NG resources
present inside this bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor which uses the default manifest file. -
Method Summary
Modifier and TypeMethodDescriptiongetInclude(String includeName) Provides a RelaxNG include, referenced by its nameReturns a list of all schema namespaces that this provider can deliver.No default runtime decorators.Provides a RelaxNG resource by its namespace URI.booleanisAvailable(String namespaceURI) Checks if a schema (identified by its URI) can be provided.
-
Constructor Details
-
StandardRelaxNGProvider
Default constructor which uses the default manifest file.- Throws:
SchemaServiceException- Thrown if the input files are not found or could not be loaded.
-
-
Method Details
-
getSchema
Description copied from interface:RelaxNGProviderProvides a RelaxNG resource by its namespace URI.nullis returned if there is no resource available for this namespace. If only the existence shall be checked, the callRelaxNGProvider.isAvailable(String)should be used. Note: The provider contains only "top-level" XMP schemas (such as Dublin Core) and no XMP type schemas (such as Dimensions).- Specified by:
getSchemain interfaceRelaxNGProvider- Parameters:
namespaceURI- the namespace URI of the schema according to the XMP specification- Returns:
- Returns the RelaxNG resource as stream
- Throws:
IOException- Forwards exceptions that occur during schema file loading.- See Also:
-
getInclude
Description copied from interface:RelaxNGProviderProvides a RelaxNG include, referenced by its name- Specified by:
getIncludein interfaceRelaxNGProvider- Returns:
- Returns the RelaxNG resource as stream or
nullif it has not been found. - Throws:
IOException- Forwards exceptions that occur during schema file loading.- See Also:
-
isAvailable
Description copied from interface:RelaxNGProviderChecks if a schema (identified by its URI) can be provided. The result of this call has to be symmetric toRelaxNGProvider.getSchema(String). Note: For all namespaces where isAvailable() returnstrue, the method getSchema() has to return a result as well. Note: a call to this method should only check whether the RelaxNG resource is available, and should not already load the resource.- Specified by:
isAvailablein interfaceRelaxNGProvider- Parameters:
namespaceURI- the namespace URI of the schema according to the XMP specification- Returns:
- Returns true if the schema is registered. This does not imply that it can be loaded successfully.
- See Also:
-
getNamespaces
Description copied from interface:RelaxNGProviderReturns a list of all schema namespaces that this provider can deliver.- Specified by:
getNamespacesin interfaceRelaxNGProvider- Returns:
- Returns a list of all available schema namespaces of this provider.
- See Also:
-
getRuntimeDecorators
No default runtime decorators.- Specified by:
getRuntimeDecoratorsin interfaceRelaxNGProvider- Returns:
- See Also:
-