org.wsmostudio.runtime
Class WSMORuntime

java.lang.Object
  extended by org.wsmostudio.runtime.WSMORuntime

public class WSMORuntime
extends java.lang.Object

The WSMORuntime is a singleton class which represents the heart of the studio's environment. It instanciates key support objects of the WSMO4J library: WSML parser, WSML serializer, WSMO factory. The runtime maintains a dynamic registry for the known WSMO entities and their physical location in the workspace.

Version:
$Revision: 1392 $ $Date: 2007-12-05 16:47:13 +0200 $
Author:
not attributable

Field Summary
static java.lang.String DEFAULT_WSML_PARSER_IMPL
           
static java.lang.String DEFAULT_WSML_SERIALIZER_IMPL
           
static org.wsmo.common.IRI NFP_STUDIO
           
static java.lang.String NS_STUDIO_LOCAL
           
 
Constructor Summary
WSMORuntime()
           
 
Method Summary
 void doUpdateEntity(org.wsmo.common.TopEntity dirty)
           
 org.wsmo.common.TopEntity findRegisteredEntity(org.eclipse.core.runtime.IPath srcFile)
          Searches for an opened for editing entity by its file source path
static void forceEarlyInit()
           
static WSMOCache getCache()
           
 org.wsmo.factory.DataFactory getDataFactory()
           
static WorkspaceIOManager getIOManager()
           
 org.wsmo.factory.LogicalExpressionFactory getLogExprFactory()
           
static WSMORuntime getRuntime()
           
 org.wsmo.wsml.Parser getWsmlParser()
           
 org.wsmo.wsml.Serializer getWsmlSerializer()
           
 org.wsmo.validator.WsmlValidator getWsmlValidator()
           
 org.wsmo.factory.WsmoFactory getWsmoFactory()
           
 void initRuntime()
           
 void registerEntity(org.wsmo.common.TopEntity entity, org.eclipse.core.runtime.IPath filePath)
           
 void reinitWsmlValidator()
           
 void unregisterEntity(org.wsmo.common.TopEntity entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WSML_PARSER_IMPL

public static final java.lang.String DEFAULT_WSML_PARSER_IMPL
See Also:
Constant Field Values

DEFAULT_WSML_SERIALIZER_IMPL

public static final java.lang.String DEFAULT_WSML_SERIALIZER_IMPL
See Also:
Constant Field Values

NFP_STUDIO

public static org.wsmo.common.IRI NFP_STUDIO

NS_STUDIO_LOCAL

public static java.lang.String NS_STUDIO_LOCAL
Constructor Detail

WSMORuntime

public WSMORuntime()
Method Detail

getRuntime

public static WSMORuntime getRuntime()

forceEarlyInit

public static void forceEarlyInit()

getWsmoFactory

public org.wsmo.factory.WsmoFactory getWsmoFactory()

getWsmlParser

public org.wsmo.wsml.Parser getWsmlParser()

getWsmlValidator

public org.wsmo.validator.WsmlValidator getWsmlValidator()

getWsmlSerializer

public org.wsmo.wsml.Serializer getWsmlSerializer()

getLogExprFactory

public org.wsmo.factory.LogicalExpressionFactory getLogExprFactory()

getDataFactory

public org.wsmo.factory.DataFactory getDataFactory()

initRuntime

public void initRuntime()

reinitWsmlValidator

public void reinitWsmlValidator()

registerEntity

public void registerEntity(org.wsmo.common.TopEntity entity,
                           org.eclipse.core.runtime.IPath filePath)

unregisterEntity

public void unregisterEntity(org.wsmo.common.TopEntity entity)

findRegisteredEntity

public org.wsmo.common.TopEntity findRegisteredEntity(org.eclipse.core.runtime.IPath srcFile)
Searches for an opened for editing entity by its file source path

Parameters:
srcFile -
Returns:
the corresponding registered entity or null if not registered

doUpdateEntity

public void doUpdateEntity(org.wsmo.common.TopEntity dirty)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getCache

public static WSMOCache getCache()

getIOManager

public static WorkspaceIOManager getIOManager()


Copyright © 2005-2008 Ontotext Lab.. All Rights Reserved.