public class SchemaSelectionFunctionContribution extends AbstractFunctionWizardContribution
SchemaSelection
Constructor and Description |
---|
SchemaSelectionFunctionContribution() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCount(int count,
Set<? extends AbstractParameter> entities,
boolean isTarget)
Checks if the given entity count is compatible with the given set of
entity definitions
|
protected boolean |
checkMandatoryConditions(Set<EntityDefinition> schemaEntities,
Iterable<? extends AbstractParameter> functionEntities)
Checks if all entities that are mandatory in the function definition and
have specific attached conditions can be met by at least one of the given
schema entities.
|
protected boolean |
checkType(Iterable<?> items,
Class<?> type)
Checks if each item is of the given type
|
protected AbstractWizardAction<?> |
createWizardAction(FunctionWizardDescriptor<?> descriptor,
AlignmentService alignmentService)
Create a wizard action for the given function wizard descriptor
|
SchemaSelection |
getSelection()
Get the schema selection
|
boolean |
isActive(FunctionWizardDescriptor<?> descriptor)
Determine if a function wizard is active for the current selection
|
fill, fill, getFunctionWizardDescriptors, hasActiveFunctions, isDynamic
protected AbstractWizardAction<?> createWizardAction(FunctionWizardDescriptor<?> descriptor, AlignmentService alignmentService)
AbstractFunctionWizardContribution
createWizardAction
in class AbstractFunctionWizardContribution
descriptor
- the function wizard descriptoralignmentService
- the alignment serviceAbstractFunctionWizardContribution.createWizardAction(FunctionWizardDescriptor,
AlignmentService)
public boolean isActive(FunctionWizardDescriptor<?> descriptor)
AbstractFunctionWizardContribution
isActive
in class AbstractFunctionWizardContribution
descriptor
- the function wizard descriptorAbstractFunctionWizardContribution.isActive(FunctionWizardDescriptor)
protected boolean checkMandatoryConditions(Set<EntityDefinition> schemaEntities, Iterable<? extends AbstractParameter> functionEntities)
schemaEntities
- the schema entitiesfunctionEntities
- the entities as defined in the functionprotected boolean checkType(Iterable<?> items, Class<?> type)
items
- the itemstype
- the typetrue
if all items are of the given typeprotected boolean checkCount(int count, Set<? extends AbstractParameter> entities, boolean isTarget)
count
- the entity countentities
- the entity definitionsisTarget
- if the entities are target entitiespublic SchemaSelection getSelection()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a