|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.JET2Platform
public class 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 org.eclipse.core.runtime.IStatus |
execute(java.lang.String id,
org.eclipse.core.resources.IResource resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. Use runTransformOnResource(String,IResource,Map, IProgressMonitor) instead |
static org.eclipse.core.runtime.IStatus |
execute(java.lang.String id,
java.lang.Object source,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. Use runTransformOnObject(String,Object,Map, IProgressMonitor) instead |
static org.eclipse.core.runtime.IStatus |
execute(java.lang.String id,
java.lang.String source,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. Use runTransformOnString(String,String,IProgressMonitor) instead |
static org.eclipse.core.runtime.IStatus |
execute(java.lang.String id,
java.lang.String source,
java.lang.String kind,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. Use 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 org.eclipse.core.runtime.IStatus |
runTransform(java.lang.String id,
JET2Context context,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invoke a JET transform against the passed context |
static org.eclipse.core.runtime.IStatus |
runTransformOnObject(java.lang.String id,
java.lang.Object source,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute a JET transform with the passed object as the root of the source model. |
static org.eclipse.core.runtime.IStatus |
runTransformOnObject(java.lang.String id,
java.lang.Object source,
java.util.Map variables,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute a JET transform with the passed object as the root of the source model. |
static org.eclipse.core.runtime.IStatus |
runTransformOnResource(java.lang.String id,
org.eclipse.core.resources.IResource resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invoke a JET Transform on the pass resource, loading the resource using the transform's model loader. |
static org.eclipse.core.runtime.IStatus |
runTransformOnResource(java.lang.String id,
org.eclipse.core.resources.IResource resource,
java.util.Map variables,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invoke a JET Transform on the pass resource, loading the resource using the transform's model loader. |
static org.eclipse.core.runtime.IStatus |
runTransformOnString(java.lang.String id,
java.lang.String source,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invoke a JET transform on the passed String representation of an XML model. |
static org.eclipse.core.runtime.IStatus |
runTransformOnString(java.lang.String id,
java.lang.String source,
java.lang.String kind,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invoke a JET transform on the passed String representation of an input model. |
static org.eclipse.core.runtime.IStatus |
runTransformOnString(java.lang.String id,
java.lang.String source,
java.lang.String kind,
java.util.Map variables,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invoke a JET transform on the passed String representation of an input model. |
static org.eclipse.core.runtime.IStatus |
toIStatus(ContextLogEntry logEntry)
Convert a Context log entry into an IStatus; |
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 org.eclipse.core.runtime.IStatus execute(java.lang.String id, org.eclipse.core.resources.IResource resource, org.eclipse.core.runtime.IProgressMonitor monitor)
runTransformOnResource(String,IResource,Map, IProgressMonitor)
instead
public static org.eclipse.core.runtime.IStatus execute(java.lang.String id, java.lang.Object source, org.eclipse.core.runtime.IProgressMonitor monitor)
runTransformOnObject(String,Object,Map, IProgressMonitor)
instead
id
- source
- monitor
-
public static org.eclipse.core.runtime.IStatus execute(java.lang.String id, java.lang.String source, org.eclipse.core.runtime.IProgressMonitor monitor)
runTransformOnString(String,String,IProgressMonitor)
instead
public static org.eclipse.core.runtime.IStatus execute(java.lang.String id, java.lang.String source, java.lang.String kind, org.eclipse.core.runtime.IProgressMonitor monitor)
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 org.eclipse.core.runtime.IStatus toIStatus(ContextLogEntry logEntry)
logEntry
- a log entry
public static org.eclipse.core.runtime.IStatus runTransform(java.lang.String id, JET2Context context, org.eclipse.core.runtime.IProgressMonitor monitor)
id
- the JET Transform idcontext
- the JET2Contextmonitor
- a progress monitor
public static org.eclipse.core.runtime.IStatus runTransformOnObject(java.lang.String id, java.lang.Object source, org.eclipse.core.runtime.IProgressMonitor monitor)
id
- the JET Transform idsource
- the source model root object.monitor
- a progress monitor
public static org.eclipse.core.runtime.IStatus runTransformOnObject(java.lang.String id, java.lang.Object source, java.util.Map variables, org.eclipse.core.runtime.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 org.eclipse.core.runtime.IStatus runTransformOnResource(java.lang.String id, org.eclipse.core.resources.IResource resource, org.eclipse.core.runtime.IProgressMonitor monitor)
id
- the JET Transform idresource
- the Eclipse Resource to loadmonitor
- a progress monitor
public static org.eclipse.core.runtime.IStatus runTransformOnResource(java.lang.String id, org.eclipse.core.resources.IResource resource, java.util.Map variables, org.eclipse.core.runtime.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 org.eclipse.core.runtime.IStatus runTransformOnString(java.lang.String id, java.lang.String source, org.eclipse.core.runtime.IProgressMonitor monitor)
id
- the transform idsource
- the XML source, as a stringmonitor
- a progress monitor
public static org.eclipse.core.runtime.IStatus runTransformOnString(java.lang.String id, java.lang.String source, java.lang.String kind, org.eclipse.core.runtime.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 org.eclipse.core.runtime.IStatus runTransformOnString(java.lang.String id, java.lang.String source, java.lang.String kind, java.util.Map variables, org.eclipse.core.runtime.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 |