Class DefaultAttributeProcessor

    • Constructor Detail

      • DefaultAttributeProcessor

        public DefaultAttributeProcessor()
    • Method Detail

      • processAttribute

        public Object processAttribute​(org.eclipse.emf.ecore.EObject firstParent,
                                       org.eclipse.emf.ecore.EObject secondParent,
                                       org.eclipse.emf.ecore.EAttribute attribute)
        Description copied from interface: IAttributeProcessor
        For the given attribute calculates and returns a value by considering the attribute values stored in both of the given objects. The returned value has to conform to the type of the attribute.
        Specified by:
        processAttribute in interface IAttributeProcessor
        Parameters:
        firstParent - first object to consider
        secondParent - second object to consider
        attribute - attribute for which a value should be calculated
        Returns:
        calculated value