de.cau.cs.kieler.synccharts.text.kits.formatting
Class KitsEObjectConsumer

java.lang.Object
  extended by org.eclipse.xtext.parsetree.reconstr.impl.EObjectConsumer
      extended by de.cau.cs.kieler.synccharts.text.kits.formatting.KitsEObjectConsumer
All Implemented Interfaces:
org.eclipse.xtext.parsetree.reconstr.IEObjectConsumer

public class KitsEObjectConsumer
extends org.eclipse.xtext.parsetree.reconstr.impl.EObjectConsumer

Special IEObjectConsumer with customized behavior. Allows serialization of uninitialized labels (-> "").

Rating red

Constructor Summary
KitsEObjectConsumer(org.eclipse.xtext.parsetree.reconstr.ITransientValueService transientValueService, EObject described)
           
 
Method Summary
 Object getConsumable(String featureName, boolean allowDefault)
          Customized version of EObjectConsumer.getConsumable(String, boolean).
 
Methods inherited from class org.eclipse.xtext.parsetree.reconstr.impl.EObjectConsumer
cloneAndConsume, getEObject, getUnconsumed, isConsumable, isConsumed, isConsumedWithLastConsumtion, isInstanceOf, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KitsEObjectConsumer

public KitsEObjectConsumer(org.eclipse.xtext.parsetree.reconstr.ITransientValueService transientValueService,
                           EObject described)
Method Detail

getConsumable

public Object getConsumable(String featureName,
                            boolean allowDefault)
Customized version of EObjectConsumer.getConsumable(String, boolean). Delegates to super method first. In case the null value is returned and a scope's label is processed return something unequal to null, which will lead to further investigation about serializing this value! Here, the empty String is returned as this is the intended value to be dumped out, finally.

Specified by:
getConsumable in interface org.eclipse.xtext.parsetree.reconstr.IEObjectConsumer
Overrides:
getConsumable in class org.eclipse.xtext.parsetree.reconstr.impl.EObjectConsumer