Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.extension.function
Class AbstractFunctionExtension<T extends AbstractFunction<?>>

java.lang.Object
  extended by de.cs3d.util.eclipse.extension.simple.IdentifiableExtension<T>
      extended by eu.esdihumboldt.hale.common.align.extension.function.AbstractFunctionExtension<T>
Type Parameters:
T - the function type
Direct Known Subclasses:
PropertyFunctionExtension, TypeFunctionExtension

public abstract class AbstractFunctionExtension<T extends AbstractFunction<?>>
extends de.cs3d.util.eclipse.extension.simple.IdentifiableExtension<T>

Abstract function extension

Author:
Simon Templer

Nested Class Summary
 
Nested classes/interfaces inherited from class de.cs3d.util.eclipse.extension.simple.IdentifiableExtension
de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable
 
Constructor Summary
AbstractFunctionExtension(String extensionId)
           
 
Method Summary
protected  T create(String elementId, org.eclipse.core.runtime.IConfigurationElement element)
          Calls doCreate(String, IConfigurationElement) to create an object for the given configuration element.
protected abstract  T doCreate(String elementId, org.eclipse.core.runtime.IConfigurationElement element)
          Create an object for the given configuration element
 Collection<T> getElements()
           
 List<T> getFunctions(String category)
          Get the functions associated to the category with the given ID
 
Methods inherited from class de.cs3d.util.eclipse.extension.simple.IdentifiableExtension
get, getIdAttributeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFunctionExtension

public AbstractFunctionExtension(String extensionId)
See Also:
IdentifiableExtension.IdentifiableExtension(String)
Method Detail

create

protected T create(String elementId,
                   org.eclipse.core.runtime.IConfigurationElement element)
Calls doCreate(String, IConfigurationElement) to create an object for the given configuration element.

Specified by:
create in class de.cs3d.util.eclipse.extension.simple.IdentifiableExtension<T extends AbstractFunction<?>>
See Also:
IdentifiableExtension.create(String, IConfigurationElement)

getFunctions

public List<T> getFunctions(String category)
Get the functions associated to the category with the given ID

Parameters:
category - the category ID, may be null
Returns:
the list of functions or an empty list

getElements

public Collection<T> getElements()
Overrides:
getElements in class de.cs3d.util.eclipse.extension.simple.IdentifiableExtension<T extends AbstractFunction<?>>
See Also:
IdentifiableExtension.getElements()

doCreate

protected abstract T doCreate(String elementId,
                              org.eclipse.core.runtime.IConfigurationElement element)
Create an object for the given configuration element

Parameters:
elementId - the element ID
element - the configuration element
Returns:
the element object or null

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d