com.metamatrix.metadata.runtime.api
Interface MetadataSource

All Known Implementing Classes:
VDBArchive

public interface MetadataSource


Method Summary
 boolean cacheConnectorMetadata()
          Whether to cache connector metadata
 java.util.Set<java.lang.String> getConnectorMetadataModelNames()
          Get the list of model names that will provide metadata
 java.util.Set<java.lang.String> getEntries()
          Return all files known by this metadata source
 java.io.File getFile(java.lang.String path)
          Returns the file for the given path, which must exist in the entry set
 ModelInfo getModelInfo(java.lang.String name)
          Get the model with the given name.
 java.lang.String getName()
           
 void saveFile(java.io.InputStream stream, java.lang.String path)
          Save the stream to given path.
 

Method Detail

getName

java.lang.String getName()

getEntries

java.util.Set<java.lang.String> getEntries()
Return all files known by this metadata source

Returns:

getFile

java.io.File getFile(java.lang.String path)
Returns the file for the given path, which must exist in the entry set

Parameters:
path -
Returns:

getConnectorMetadataModelNames

java.util.Set<java.lang.String> getConnectorMetadataModelNames()
Get the list of model names that will provide metadata

Returns:

cacheConnectorMetadata

boolean cacheConnectorMetadata()
Whether to cache connector metadata

Returns:

saveFile

void saveFile(java.io.InputStream stream,
              java.lang.String path)
              throws java.io.IOException
Save the stream to given path.

Parameters:
path -
Throws:
java.io.IOException

getModelInfo

ModelInfo getModelInfo(java.lang.String name)
Get the model with the given name.

Parameters:
name -
Returns:


Copyright © 2009. All Rights Reserved.