org.wsmostudio.runtime.cache
Class WSMOCache
java.lang.Object
org.wsmostudio.runtime.cache.WSMOCache
public class WSMOCache
- extends java.lang.Object
A WSMO entities registry which keeps track of all known TopEntities in the workspace.
The registry dynamically updates its content when a resource in the workspace is
changed.
The class contains a light weight WSML parser which processes files' headers to determine
the types and the identifiers of the contained objects.
- Version:
- $Revision: 1503 $ $Date: 2008-04-08 15:08:05 +0300 $
- Author:
- not attributable
|
Constructor Summary |
WSMOCache(org.wsmo.factory.WsmoFactory factory)
|
|
Method Summary |
org.wsmo.common.IRI |
cacheWsmoHeader(org.eclipse.core.resources.IFile iFile,
boolean registerIRI)
|
org.wsmo.mediator.Mediator |
findMediator(org.wsmo.common.IRI mediID,
byte defaultType)
|
org.wsmo.common.TopEntity |
findTopEntity(org.wsmo.common.IRI iri)
|
java.util.Collection<org.wsmo.common.Entity> |
getCapabilities()
|
java.lang.String |
getFileLocationForId(org.wsmo.common.IRI iri,
int wsmoType)
|
java.util.Collection<org.wsmo.common.Entity> |
getGGMediators()
|
java.util.Collection<org.wsmo.common.Entity> |
getGoals()
|
java.util.Collection<org.wsmo.common.Entity> |
getInterfaces()
|
org.wsmo.common.IRI[] |
getIRIList(byte wsmoType)
|
java.util.Collection<org.wsmo.common.Entity> |
getOntologies()
|
java.util.Collection<org.wsmo.common.Entity> |
getOOMediators()
|
byte |
getTypeByIRI(org.wsmo.common.IRI id)
Determines the type of an entity refered by IRI. |
java.util.Collection<org.wsmo.common.Entity> |
getWebServices()
|
java.util.Collection<org.wsmo.common.Entity> |
getWGMediators()
|
java.util.Collection<org.wsmo.common.Entity> |
getWWMediators()
|
void |
reinit()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSMOCache
public WSMOCache(org.wsmo.factory.WsmoFactory factory)
getOntologies
public java.util.Collection<org.wsmo.common.Entity> getOntologies()
getWebServices
public java.util.Collection<org.wsmo.common.Entity> getWebServices()
getGoals
public java.util.Collection<org.wsmo.common.Entity> getGoals()
getOOMediators
public java.util.Collection<org.wsmo.common.Entity> getOOMediators()
getWWMediators
public java.util.Collection<org.wsmo.common.Entity> getWWMediators()
getWGMediators
public java.util.Collection<org.wsmo.common.Entity> getWGMediators()
getGGMediators
public java.util.Collection<org.wsmo.common.Entity> getGGMediators()
getCapabilities
public java.util.Collection<org.wsmo.common.Entity> getCapabilities()
getInterfaces
public java.util.Collection<org.wsmo.common.Entity> getInterfaces()
reinit
public void reinit()
cacheWsmoHeader
public org.wsmo.common.IRI cacheWsmoHeader(org.eclipse.core.resources.IFile iFile,
boolean registerIRI)
getIRIList
public org.wsmo.common.IRI[] getIRIList(byte wsmoType)
getTypeByIRI
public byte getTypeByIRI(org.wsmo.common.IRI id)
- Determines the type of an entity refered by IRI.
- Parameters:
id -
- Returns:
- The type of the entity identified by the IRI or -1 if no such entity is found.
findMediator
public org.wsmo.mediator.Mediator findMediator(org.wsmo.common.IRI mediID,
byte defaultType)
findTopEntity
public org.wsmo.common.TopEntity findTopEntity(org.wsmo.common.IRI iri)
getFileLocationForId
public java.lang.String getFileLocationForId(org.wsmo.common.IRI iri,
int wsmoType)
Copyright © 2005-2008 Ontotext Lab.. All Rights Reserved.