public class StandardRelaxNGProvider extends java.lang.Object implements RelaxNGProvider
Constructor and Description |
---|
StandardRelaxNGProvider()
Default constructor which uses the default manifest file.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInclude(java.lang.String includeName)
Provides a RelaxNG include, referenced by its name
|
java.util.Set<java.lang.String> |
getNamespaces()
Returns a list of all schema namespaces that this provider can deliver.
|
java.util.Map<XMPPath,java.util.Map<javax.xml.namespace.QName,java.util.Map<java.lang.String,java.lang.String>>> |
getRuntimeDecorators()
No default runtime decorators.
|
java.io.InputStream |
getSchema(java.lang.String namespaceURI)
Provides a RelaxNG resource by its namespace URI.
|
boolean |
isAvailable(java.lang.String namespaceURI)
Checks if a schema (identified by its URI) can be provided.
|
public StandardRelaxNGProvider() throws SchemaServiceException
SchemaServiceException
- Thrown if the input files are not found or could not be loaded.public java.io.InputStream getSchema(java.lang.String namespaceURI) throws java.io.IOException
RelaxNGProvider
null
is returned if there is no resource available for this namespace.
If only the existence shall be checked, the call RelaxNGProvider.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).getSchema
in interface RelaxNGProvider
namespaceURI
- the namespace URI of the schema according to the XMP specificationjava.io.IOException
- Forwards exceptions that occur during schema file loading.RelaxNGProvider.getSchema(java.lang.String)
public java.io.InputStream getInclude(java.lang.String includeName) throws java.io.IOException
RelaxNGProvider
getInclude
in interface RelaxNGProvider
null
if it has not been found.java.io.IOException
- Forwards exceptions that occur during schema file loading.RelaxNGProvider.getInclude(java.lang.String)
public boolean isAvailable(java.lang.String namespaceURI)
RelaxNGProvider
RelaxNGProvider.getSchema(String)
.
Note: For all namespaces where isAvailable() returns true
,
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.isAvailable
in interface RelaxNGProvider
namespaceURI
- the namespace URI of the schema according to the XMP specificationRelaxNGProvider.isAvailable(java.lang.String)
public java.util.Set<java.lang.String> getNamespaces()
RelaxNGProvider
getNamespaces
in interface RelaxNGProvider
RelaxNGProvider.getNamespaces()
public java.util.Map<XMPPath,java.util.Map<javax.xml.namespace.QName,java.util.Map<java.lang.String,java.lang.String>>> getRuntimeDecorators()
getRuntimeDecorators
in interface RelaxNGProvider
RelaxNGProvider.getRuntimeDecorators()
Copyright © 2010 - 2020 Adobe. All Rights Reserved