|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.JET2Platform
Utility class for invoking JET Transforms
Field Summary | |
---|---|
static java.lang.String |
JET2_NATURE_ID
The Project nature assigned to JET2 Transformation projects, "org.eclipse.jet.jet2Nature" |
static java.lang.String |
PLUGIN_ID
The Plugin identifier of the JET2 core plugin, "org.eclipse.jet". |
Method Summary | |
---|---|
static IStatus |
execute(java.lang.String id,
IResource resource,
IProgressMonitor monitor)
Deprecated. Use JET2Platform.runTransformOnResource(String,IResource,Map, IProgressMonitor) instead |
static IStatus |
execute(java.lang.String id,
java.lang.Object source,
IProgressMonitor monitor)
Deprecated. Use JET2Platform.runTransformOnObject(String,Object,Map, IProgressMonitor) instead |
static IStatus |
execute(java.lang.String id,
java.lang.String source,
IProgressMonitor monitor)
Deprecated. Use JET2Platform.runTransformOnString(String,String,IProgressMonitor) instead |
static IStatus |
execute(java.lang.String id,
java.lang.String source,
java.lang.String kind,
IProgressMonitor monitor)
Deprecated. Use JET2Platform.runTransformOnString(String,String,String,Map, IProgressMonitor) instead |
static XPathFunctionMetaData[] |
getInstalledXPathFunctions()
Return the XPath functions installed by the 'org.eclipse.jet.xpathFunctions' extension point. |
static IJETBundleManager |
getJETBundleManager()
|
ILoaderManager |
getModelLoaderManager()
Return the model loader manager. |
static IJETBundleDescriptor |
getProjectDescription(java.lang.String name)
Return the bundle description for the named JET project |
static java.lang.Object |
getShellContext()
Return the value of the shell context, suitable for passing to TransformContextExtender.setShellContext(Object) .
|
static IStatus |
runTransform(java.lang.String id,
JET2Context context,
IProgressMonitor monitor)
Invoke a JET transform against the passed context |
static IStatus |
runTransformOnObject(java.lang.String id,
java.lang.Object source,
IProgressMonitor monitor)
Execute a JET transform with the passed object as the root of the source model. |
static IStatus |
runTransformOnObject(java.lang.String id,
java.lang.Object source,
java.util.Map variables,
IProgressMonitor monitor)
Execute a JET transform with the passed object as the root of the source model. |
static IStatus |
runTransformOnResource(java.lang.String id,
IResource resource,
IProgressMonitor monitor)
Invoke a JET Transform on the pass resource, loading the resource using the transform's model loader. |
static IStatus |
runTransformOnResource(java.lang.String id,
IResource resource,
java.util.Map variables,
IProgressMonitor monitor)
Invoke a JET Transform on the pass resource, loading the resource using the transform's model loader. |
static IStatus |
runTransformOnString(java.lang.String id,
java.lang.String source,
IProgressMonitor monitor)
Invoke a JET transform on the passed String representation of an XML model. |
static IStatus |
runTransformOnString(java.lang.String id,
java.lang.String source,
java.lang.String kind,
IProgressMonitor monitor)
Invoke a JET transform on the passed String representation of an input model. |
static IStatus |
runTransformOnString(java.lang.String id,
java.lang.String source,
java.lang.String kind,
java.util.Map variables,
IProgressMonitor monitor)
Invoke a JET transform on the passed String representation of an input model. |
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 PLUGIN_ID
public static final java.lang.String JET2_NATURE_ID
Method Detail |
public static final java.lang.Object getShellContext()
TransformContextExtender.setShellContext(Object)
.
This method will work, even in the abscences of a shell or even SWT.
null
if none is setpublic static IStatus execute(java.lang.String id, IResource resource, IProgressMonitor monitor)
JET2Platform.runTransformOnResource(String,IResource,Map, IProgressMonitor)
instead
public static IStatus execute(java.lang.String id, java.lang.Object source, IProgressMonitor monitor)
JET2Platform.runTransformOnObject(String,Object,Map, IProgressMonitor)
instead
id
- source
- monitor
-
public static IStatus execute(java.lang.String id, java.lang.String source, IProgressMonitor monitor)
JET2Platform.runTransformOnString(String,String,IProgressMonitor)
instead
public static IStatus execute(java.lang.String id, java.lang.String source, java.lang.String kind, IProgressMonitor monitor)
JET2Platform.runTransformOnString(String,String,String,Map, IProgressMonitor)
instead
id
- the transform idsource
- the string respresentation of the input model.kind
- the kind of model (file extension) the string represents.monitor
- a progress monitor
public static XPathFunctionMetaData[] getInstalledXPathFunctions()
public static IJETBundleManager getJETBundleManager()
public static IJETBundleDescriptor getProjectDescription(java.lang.String name)
name
- an Eclipse project name
null
if the project does not exist or
is not a JET project.public static IStatus runTransform(java.lang.String id, JET2Context context, IProgressMonitor monitor)
id
- the JET Transform idcontext
- the JET2Contextmonitor
- a progress monitor
public static IStatus runTransformOnObject(java.lang.String id, java.lang.Object source, IProgressMonitor monitor)
id
- the JET Transform idsource
- the source model root object.monitor
- a progress monitor
public static IStatus runTransformOnObject(java.lang.String id, java.lang.Object source, java.util.Map variables, IProgressMonitor monitor)
id
- the JET Transform idsource
- the source model root object.variables
- A Map of variable names and their values. May be null
.monitor
- a progress monitor
public static IStatus runTransformOnResource(java.lang.String id, IResource resource, IProgressMonitor monitor)
id
- the JET Transform idresource
- the Eclipse Resource to loadmonitor
- a progress monitor
public static IStatus runTransformOnResource(java.lang.String id, IResource resource, java.util.Map variables, IProgressMonitor monitor)
id
- the JET Transform idresource
- the Eclipse Resource to loadvariables
- A Map of variable names and their values. May be null
.monitor
- a progress monitor
public static IStatus runTransformOnString(java.lang.String id, java.lang.String source, IProgressMonitor monitor)
id
- the transform idsource
- the XML source, as a stringmonitor
- a progress monitor
public static IStatus runTransformOnString(java.lang.String id, java.lang.String source, java.lang.String kind, IProgressMonitor monitor)
id
- the transform idsource
- the string respresentation of the input model.kind
- the kind of model (file extension) the string represents.monitor
- a progress monitor
public static IStatus runTransformOnString(java.lang.String id, java.lang.String source, java.lang.String kind, java.util.Map variables, IProgressMonitor monitor)
id
- the transform idsource
- the string respresentation of the input model.kind
- the kind of model (file extension) the string represents.variables
- A Map of variable names and their values. May be null
.monitor
- a progress monitor
public ILoaderManager getModelLoaderManager()
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |