|
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.SMLFileDocument
org.eclipse.cosmos.rm.repository.internal.resource.SMLFileInstanceDocument
org.eclipse.cosmos.rm.repository.internal.application.impl.SMLFileResourceInstance
public class SMLFileResourceInstance
The implementation of an SML document representing a resource
| Constructor Summary | |
|---|---|
SMLFileResourceInstance(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository,
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument delegate)
Constructor |
|
SMLFileResourceInstance(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository,
java.lang.String reference)
The constructor |
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
getDOMDocument()
|
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata |
getMetadata()
Returns the meta-data associated with this document |
org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository |
getRepository()
|
boolean |
isReference()
Indicates whether this item is a reference or not |
ISMLResourceInstance |
resolveReference()
If this object happens to represent a reference to a resource (i.e. isReference() returns true), then this method will have it resolved to the actual resource. |
java.lang.String |
retrieveDescription()
Retrieves and returns the description of this item |
java.lang.String |
retrieveDisplayName()
Retrieves and returns the display name of this item |
ISMLResourceFacet[] |
retrieveFacets()
Retrieves and returns the set of root level facets that are included as part of this resource |
java.lang.String |
retrieveName()
Retrieves and returns the name of this item |
java.lang.String |
retrieveRootAttribute(java.lang.String uri,
java.lang.String localName)
Retrieves and returns the root node's attribute value with the URI and local name passed in. |
| Methods inherited from class org.eclipse.cosmos.rm.repository.internal.resource.SMLFileInstanceDocument |
|---|
compareTo, retrieveDefinition, retrieveReferences, toString |
| Methods inherited from class org.eclipse.cosmos.rm.repository.internal.resource.SMLFileDocument |
|---|
equals, getLastModifiedDate, retrieveDocumentFragment, setMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLInstanceDocument |
|---|
retrieveDefinition, retrieveReferences |
| Methods inherited from interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument |
|---|
retrieveDocumentFragment |
| Constructor Detail |
|---|
public SMLFileResourceInstance(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository,
java.lang.String reference)
repository - The repositoryreference - A flag indicating whether this resource is a reference
public SMLFileResourceInstance(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository,
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument delegate)
repository - The repositorydelegate - The delegate| Method Detail |
|---|
public ISMLResourceInstance resolveReference()
ISMLResourceInstance
resolveReference in interface ISMLResourceInstanceISMLResourceInstance.resolveReference()
public ISMLResourceFacet[] retrieveFacets()
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
ISMLResourceInstance
retrieveFacets in interface ISMLResourceInstanceorg.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationExceptionISMLResourceInstance.retrieveFacets()public boolean isReference()
ISMLResourceBase
isReference in interface ISMLResourceBaseISMLResourceBase.isReference()public java.lang.String retrieveName()
ISMLResourceBase
retrieveName in interface ISMLResourceBaseISMLResourceBase.retrieveName()public java.lang.String retrieveDisplayName()
ISMLResourceBase
retrieveDisplayName in interface ISMLResourceBaseISMLResourceBase.retrieveDisplayName()public java.lang.String retrieveDescription()
ISMLResourceBase
retrieveDescription in interface ISMLResourceBaseISMLResourceBase.retrieveDescription()
public org.w3c.dom.Document getDOMDocument()
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
getDOMDocument in class SMLFileDocumentorg.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationExceptionSMLFileDocument.getDOMDocument()public org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository getRepository()
getRepository in class SMLFileDocumentSMLFileDocument.getRepository()
public java.lang.String retrieveRootAttribute(java.lang.String uri,
java.lang.String localName)
throws org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException
SMLFileDocument
retrieveRootAttribute in class SMLFileDocumenturi - The URI of the attributelocalName - The local name
org.eclipse.cosmos.rm.repository.provisional.exception.RepositoryOperationException - In case of an errorSMLFileDocument.retrieveRootAttribute(java.lang.String, java.lang.String)public org.eclipse.cosmos.rm.repository.provisional.resource.ISMLMetadata getMetadata()
org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocument
getMetadata in interface org.eclipse.cosmos.rm.repository.provisional.resource.ISMLDocumentgetMetadata in class SMLFileDocumentSMLFileDocument.getMetadata()
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||