|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.service.TransformationService
public abstract class TransformationService
Service class for graph transformations.
Field Summary | |
---|---|
static String |
ATTRIBUTE_CLASS
name of the 'class' attribute in the extension points. |
static String |
ATTRIBUTE_DESCRIPTION
name of the 'description' attribute in the extension points. |
static String |
ATTRIBUTE_EXTENSIONS
name of the 'extensions' attribute in the extension points. |
static String |
ATTRIBUTE_ID
name of the 'id' attribute in the extension points. |
static String |
ATTRIBUTE_NAME
name of the 'name' attribute in the extension points. |
static String |
ELEMENT_HANDLER
name of the 'handler' element in the 'graph transformer' extension point. |
static String |
EXTP_ID_GRAPH_TRANS
identifier of the extension point for layout info. |
Constructor Summary | |
---|---|
protected |
TransformationService()
Protected constructor to enforce instantiation in subclasses. |
Method Summary | |
---|---|
Collection<GraphFormatData> |
getFormatData()
Returns all registered graph format data. |
GraphFormatData |
getFormatData(String id)
Returns the graph format data for the given identifier. |
GraphFormatData |
getFormatDataBySuffix(String suffix)
Returns a graph format data that has the given suffix in its identifier. |
static TransformationService |
getInstance()
Returns the singleton instance of the transformation service. |
protected void |
loadGraphTransExtensions()
Loads and registers all graph transformer extensions from the extension point. |
protected abstract void |
reportError(CoreException exception)
Report an error that occurred while reading extensions. |
protected abstract void |
reportError(String extensionPoint,
IConfigurationElement element,
String attribute,
Throwable exception)
Report an error that occurred while reading extensions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EXTP_ID_GRAPH_TRANS
public static final String ELEMENT_HANDLER
public static final String ATTRIBUTE_CLASS
public static final String ATTRIBUTE_DESCRIPTION
public static final String ATTRIBUTE_EXTENSIONS
public static final String ATTRIBUTE_ID
public static final String ATTRIBUTE_NAME
Constructor Detail |
---|
protected TransformationService()
Method Detail |
---|
public static TransformationService getInstance()
protected abstract void reportError(String extensionPoint, IConfigurationElement element, String attribute, Throwable exception)
extensionPoint
- the identifier of the extension pointelement
- the configuration elementattribute
- the attribute that contains an invalid entryexception
- an optional exception that was caused by the invalid entryprotected abstract void reportError(CoreException exception)
exception
- a core exception holding a status with further informationprotected final void loadGraphTransExtensions()
public GraphFormatData getFormatData(String id)
id
- a graph format identifier
public Collection<GraphFormatData> getFormatData()
public final GraphFormatData getFormatDataBySuffix(String suffix)
suffix
- a graph format identifier suffix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |