public interface SchemaService
Modifier and Type | Interface and Description |
---|---|
static interface |
SchemaService.INamespaceCallback
An interface to report prefix/namespace bindings during Relax NG parsing.
|
Modifier and Type | Method and Description |
---|---|
PropertyDescription |
getProperty(XMPPath propertyPath)
Retrieves the property description for all kinds of properties for a given XMP path.
|
SchemaDescription |
getSchemaForURI(java.lang.String ns)
Request the schema information for a namespace.
|
PropertyType |
getType(XMPPath propertyPath)
Provides the type information for a single property (simple, array (and item type),
struct or qualifier) for a given XMP path.
|
SchemaDescription |
parseRelaxNG(java.io.InputStream input,
SchemaService.INamespaceCallback namespaceCallback)
Parses a RelaxNG file from the inputstream and reports namespaces with corresponding prefixes
to the callback interface.
|
SchemaDescription getSchemaForURI(java.lang.String ns) throws SchemaServiceException
ns
- a namespace URI, e.g. "http://purl.org/dc/elements/1.1/" for Dublin CoreSchemaDescription
or null
if it is not available.SchemaServiceException
- Forwards exceptions that occur during schema file loading and parsing.PropertyType getType(XMPPath propertyPath) throws SchemaServiceException
NamespaceUtil
.
Examples:
propertyPath
- XMPPath
which identifies the propertynull if the property is not part of the schema and no type information is available.
An exception is thrown, if the path is syntactically not correct.
null
is returned if path is not accessible
(e.g. child property of a simple property).
SchemaServiceException
- Reports errors during the retrieval of schema or type information.PropertyDescription getProperty(XMPPath propertyPath) throws SchemaServiceException
propertyPath
- XMPPath
which identifies the propertynull if the property is not part of the schema and no type information is available.
An exception is thrown, if the path is syntactically not correct.
null
is returned if path is not accessible
(e.g. child property of a simple property).
SchemaServiceException
- Reports errors during the retrieval of schema or type information.SchemaDescription parseRelaxNG(java.io.InputStream input, SchemaService.INamespaceCallback namespaceCallback) throws SchemaServiceException
input
- a RelaxNG filenamespaceCallback
- a callback function to report the namespaces found during parsingSchemaDescription
SchemaServiceException
- Reports errors during the retrieval of schema or type information."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"