|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.cosmos.rm.repository.internal.operations.AbstractListenerManager
org.eclipse.cosmos.rm.repository.internal.core.FileSystemSMLRepository
public class FileSystemSMLRepository
A file system implementation of an SML repository. The repository works from a root context folder that is provided as a connection attribute when connecting to this repository.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_CONFIGURATION_PROPERTY
The attribute name of the configuration property file |
| Constructor Summary | |
|---|---|
FileSystemSMLRepository()
|
|
| Method Summary | |
|---|---|
void |
addDocument(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata metadata,
java.io.InputStream input)
The id of the meta-data is used as the file path. |
void |
connect(java.util.Map attributes)
A connection will first need to be established before a repository can be used |
void |
disconnect()
Disconnects this repository |
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] |
fetchDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata metadata)
Returns the set of documents that match the meta-data that is passed in. |
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] |
getActiveDocuments()
Returns the set of active documents of this repository |
MetadataProcessor |
getMetadataProcessor()
|
org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation |
getOperation(java.lang.String id)
Returns the operation matching the operation id passed in. |
boolean |
getProperty(java.lang.String name,
boolean defaultValue)
Retrieve the property of type boolean with the name passed in. |
int |
getProperty(java.lang.String name,
int defaultValue)
Retrieve the property of type int with the name passed in. |
java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object defaultValue)
Retrieve the property of type Object with the name passed
in. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Retrieve the property of type String with the name passed
in. |
java.lang.String[] |
getSupportedOperations()
Returns the ID of the supported operations of this repository. |
boolean |
isConnection()
Returns a boolean indicating the connection status of the repository. |
void |
removeDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata metadata)
Remove the SML document with the meta-data that is passed in. |
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] |
retrieveRootDocuments()
Retrieves the SML documents representing the root context of a model. |
void |
setActiveDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] documents)
Sets the set of active documents of this repository |
void |
setProperty(java.lang.String name,
boolean value)
Sets the property of type boolean with the name and value passed in |
void |
setProperty(java.lang.String name,
int value)
Sets the property of type int with the name and value passed in |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the property of type Object with the name and
value passed in |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the property of type String with the name and
value passed in |
| Methods inherited from class org.eclipse.cosmos.rm.repository.internal.operations.AbstractListenerManager |
|---|
addProgressListener, getProgressListeners, removeProgressListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_CONFIGURATION_PROPERTY
| Constructor Detail |
|---|
public FileSystemSMLRepository()
| Method Detail |
|---|
public void connect(java.util.Map attributes)
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryConnectionException
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
connect in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryattributes - The attributes required as part of the connection. This
is specific to an implementation.
org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryConnectionException - If a connection cannot be establishedISMLRepository.connect(java.util.Map)
public void addDocument(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata metadata,
java.io.InputStream input)
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
addDocument in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositorymetadata - The meta-data of the document. The only relevant fields that
should be read from the meta-data is the id, alias(es), and bound rule(s). Other
fields can potentially be used by implementers.input - The input stream that contains the document
org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException - If the operation failsISMLRepository.addDocument(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata, java.io.InputStream)public void disconnect()
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
disconnect in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryISMLRepository.disconnect()
public org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] fetchDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata metadata)
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
fetchDocuments in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositorymetadata - The meta-data used to perform the query
org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException - If the operation failsISMLRepository.fetchDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata)public org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] getActiveDocuments()
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
getActiveDocuments in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryISMLRepository.getActiveDocuments()public void setActiveDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] documents)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
setActiveDocuments in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositorydocuments - The active documents of this repositoryorg.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository#setActiveDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata[])public org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation getOperation(java.lang.String id)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
getOperation in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryid - The operation id
ISMLRepository.getOperation(java.lang.String)public java.lang.String[] getSupportedOperations()
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
getSupportedOperations in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryISMLRepository.getSupportedOperations()public boolean isConnection()
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
isConnection in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryISMLRepository.isConnection()
public void removeDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata metadata)
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
removeDocuments in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositorymetadata - The meta-data matching the stored documents that will be removed
org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException - If the operation failsISMLRepository.removeDocuments(org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata)
public org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument[] retrieveRootDocuments()
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
retrieveRootDocuments in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryorg.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException - If the operation failsISMLRepository.retrieveRootDocuments()public MetadataProcessor getMetadataProcessor()
public java.lang.Object getProperty(java.lang.String name,
java.lang.Object defaultValue)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryObject with the name passed
in. The default value is returned if no such property is found
getProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertydefaultValue - The default value
ISMLRepository.getProperty(java.lang.String, java.lang.Object)
public java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryString with the name passed
in. The default value is returned if no such property is found
getProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertydefaultValue - The default value
ISMLRepository.getProperty(java.lang.String, java.lang.String)
public boolean getProperty(java.lang.String name,
boolean defaultValue)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
getProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertydefaultValue - The default value
ISMLRepository.getProperty(java.lang.String, boolean)
public int getProperty(java.lang.String name,
int defaultValue)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
getProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertydefaultValue - The default value
ISMLRepository.getProperty(java.lang.String, int)
public void setProperty(java.lang.String name,
java.lang.Object value)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryObject with the name and
value passed in
setProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertyvalue - The value of the propertyISMLRepository.setProperty(java.lang.String, java.lang.Object)
public void setProperty(java.lang.String name,
java.lang.String value)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryString with the name and
value passed in
setProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertyvalue - The value of the propertyISMLRepository.setProperty(java.lang.String, java.lang.String)
public void setProperty(java.lang.String name,
boolean value)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
setProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertyvalue - The value of the propertyISMLRepository.setProperty(java.lang.String, boolean)
public void setProperty(java.lang.String name,
int value)
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository
setProperty in interface org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepositoryname - The name of the propertyvalue - The value of the propertyISMLRepository.setProperty(java.lang.String, int)
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||