|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecp.view.internal.rule.RuleRegistry<T>
T
- the actual Rule
typepublic class RuleRegistry<T extends Rule>
Rule registry that maintains which VElement
s
are affected if a setting is changed.
Constructor Summary | |
---|---|
RuleRegistry()
Default constructor. |
Method Summary | |
---|---|
Map<T,VElement> |
getAffectedRenderables(org.eclipse.emf.ecore.EStructuralFeature feature)
Returns all rules that would be affected if the value of given feature is changed. |
Set<org.eclipse.emf.ecore.EStructuralFeature> |
getAttributes()
Returns the settings of this registry. |
Set<org.eclipse.emf.ecore.EStructuralFeature> |
register(VElement renderable,
T rule,
Condition condition,
org.eclipse.emf.ecore.EObject domainModel)
Creates a setting from the given EObject and the LeafCondition and register it with the
VElement . |
VElement |
removeCondition(Condition condition)
Removes the given condition from the registry. |
VElement |
removeEFeature(org.eclipse.emf.ecore.EStructuralFeature esf,
Condition condition)
Removes a EStructuralFeature from the mapping. |
void |
removeRenderable(VElement renderable)
Removes the given VElement from the registry. |
VElement |
removeRule(T rule)
Removes the given rule from the registry. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleRegistry()
Method Detail |
---|
public Set<org.eclipse.emf.ecore.EStructuralFeature> register(VElement renderable, T rule, Condition condition, org.eclipse.emf.ecore.EObject domainModel)
EObject
and the LeafCondition
and register it with the
VElement
.
renderable
- the VElement
to be updated in case the condition changesrule
- the parent rule holding the LeafCondition
condition
- contains the attribute that the condition is depending ondomainModel
- the domain object that owns the attribute possibly being
changed
EStructuralFeatures
public VElement removeRule(T rule)
rule
- the rule to be removed
VElement
that belonged to the removed rulepublic void removeRenderable(VElement renderable)
VElement
from the registry.
renderable
- the renderable to be removedpublic VElement removeCondition(Condition condition)
condition
- the condition to be removed
VElement
that belonged to the removed conditionpublic Set<org.eclipse.emf.ecore.EStructuralFeature> getAttributes()
public Map<T,VElement> getAffectedRenderables(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
- the feature
VElement
s that are affected of the feature changepublic VElement removeEFeature(org.eclipse.emf.ecore.EStructuralFeature esf, Condition condition)
EStructuralFeature
from the mapping.
esf
- the EStructuralFeature
to removecondition
- the container Condition
VElement
being cleaned
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |