|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.impl.DrbDefaultMetadataResolver
public class DrbDefaultMetadataResolver
Standard Metadata Resolver.
| Constructor Summary | |
|---|---|
DrbDefaultMetadataResolver()
|
|
| Method Summary | |
|---|---|
static Hashtable<String,String> |
getExtensionHash()
Allow to get a hashtable containing mapping between extension and implementations. |
static Hashtable<String,String> |
getSchemaHash()
Allow to get a hashtable containing mapping between extension and schemas. |
static void |
registerItemNameExtension(String extension,
String implementation_identifier)
Registers an extension. |
static void |
registerSchemaLocation(String extension,
String schema_location)
Registers a schema location path. |
fr.gael.drb.meta.DrbMetadata |
resolveMetadata(DrbItem item)
Resolve the metadata from a single item. |
fr.gael.drb.meta.DrbMetadata |
resolveMetadata(DrbSequence sequence)
Resolve the metadata from a sequence. |
fr.gael.drb.meta.DrbMetadata |
resolveMetadata(String item_name)
Resolve a specific implementation by its identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrbDefaultMetadataResolver()
| Method Detail |
|---|
public static Hashtable<String,String> getExtensionHash()
public static Hashtable<String,String> getSchemaHash()
public fr.gael.drb.meta.DrbMetadata resolveMetadata(String item_name)
throws NullPointerException
null. If
the extension does not match any entry of the internal registers, the this
method returns null.
Should the implementation be identified, the output
DrbMetadata object accept the
implementationIdentifier property, that is assigned with
the identifier retrieved from this class internal register. See
registerItemNameExtension(String, String) for further information
about augmenting the internal extension register.
Should the given item name extension also match an entry of the schema
location register, the output DrbMetadata object
also accept a schemaLocation property that locates an XML
Schema document on the file system corresponding to any item with this
extension. Warning: this class is not responsible in verifying if
an actual XML Schema document exists at the given location. See
registerSchemaLocation(String, String) for further information
about augmenting the internal schema location register.
resolveMetadata in interface fr.gael.drb.meta.DrbMetadataResolveritem_name - the name of the item from with the requested metadata
should derive.
NullPointerException - if the given item name is null.public fr.gael.drb.meta.DrbMetadata resolveMetadata(DrbItem item)
resolveMetadata in interface fr.gael.drb.meta.DrbMetadataResolveritem - The single item
public fr.gael.drb.meta.DrbMetadata resolveMetadata(DrbSequence sequence)
resolveMetadata in interface fr.gael.drb.meta.DrbMetadataResolversequence - The sequence
public static void registerItemNameExtension(String extension,
String implementation_identifier)
throws NullPointerException
null extension or a null implementation
identifier.
extension - item name extension that matches items to be attached to
the given implementation.schema_location - the location path of the registered schema
NullPointerException - if one of the extension or the
implementation_identifier is null.
public static void registerSchemaLocation(String extension,
String schema_location)
extension - item name extension that matches items to be attached to
the given schema_location.schema_location - the location path of the registered schema
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||