|
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.resource.SMLFileMetadata
public class SMLFileMetadata
The file system implementation of the SML document meta-data
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata |
|---|
DOCUMENT_TYPE_DEFINITION, DOCUMENT_TYPE_INSTANCE, DOCUMENT_TYPE_NONE |
| Constructor Summary | |
|---|---|
SMLFileMetadata()
|
|
SMLFileMetadata(java.lang.String id,
int type,
java.lang.String elementName,
java.lang.String[] aliases,
java.util.Map rules)
A convenience constructor used to set the fields of the meta-data |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getAliases()
Retrieves and returns the aliases of the associated SML document |
java.util.Map |
getBoundRules()
Retrieves and returns the bound rules of the associated SML document The returned map is expected to be indexed based on the alias that the rule is bound to |
int |
getDocumentType()
Returns the document type |
java.lang.String |
getId()
Retrieves and returns the id of the associated SML document. |
java.lang.String |
getRootElementName()
Retrieves and returns the root element name of the associated SML document. |
void |
setAliases(java.lang.String[] aliases)
|
void |
setBoundRules(java.util.Map rules)
|
void |
setDocumentType(int documentType)
|
void |
setId(java.lang.String id)
|
void |
setRepositoryMetadata(MetadataProcessor metadataProcessor)
|
void |
setRootElementName(java.lang.String rootElementName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMLFileMetadata()
public SMLFileMetadata(java.lang.String id,
int type,
java.lang.String elementName,
java.lang.String[] aliases,
java.util.Map rules)
id - The id of the documenttype - The type of the documentelementName - The element namealiases - Aliases of the documentrules - Rules of the document| Method Detail |
|---|
public java.lang.String[] getAliases()
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata
getAliases in interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadataISMLMetadata.getAliases()public void setAliases(java.lang.String[] aliases)
public java.util.Map getBoundRules()
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata
getBoundRules in interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadataISMLMetadata.getBoundRules()public void setBoundRules(java.util.Map rules)
public int getDocumentType()
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata
getDocumentType in interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadataISMLMetadata.DOCUMENT_TYPE_DEFINITION if the associated document is of type
definition or ISMLMetadata.DOCUMENT_TYPE_INSTANCE if the associated document is of type
instance.ISMLMetadata.getDocumentType()public void setDocumentType(int documentType)
public java.lang.String getId()
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata
getId in interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadataISMLMetadata.getId()public void setId(java.lang.String id)
public java.lang.String getRootElementName()
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata
getRootElementName in interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadataISMLMetadata.getRootElementName()public void setRootElementName(java.lang.String rootElementName)
public void setRepositoryMetadata(MetadataProcessor metadataProcessor)
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||