Class IdentifierEObjectMatcher.DefaultIDFunction

  • All Implemented Interfaces:
    com.google.common.base.Function<EObject,​String>, Function<EObject,​String>
    Enclosing class:
    IdentifierEObjectMatcher

    public static class IdentifierEObjectMatcher.DefaultIDFunction
    extends Object
    implements com.google.common.base.Function<EObject,​String>
    The default function used to retrieve IDs from EObject. You might want to extend or compose with it if you want to reuse its behavior.
    • Constructor Detail

      • DefaultIDFunction

        public DefaultIDFunction()
    • Method Detail

      • apply

        public String apply​(EObject eObject)
        Return an ID for an EObject, null if not found.
        Specified by:
        apply in interface com.google.common.base.Function<EObject,​String>
        Specified by:
        apply in interface Function<EObject,​String>
        Parameters:
        eObject - The EObject for which we need an identifier.
        Returns:
        The identifier for that EObject if we could determine one. null if no condition (see description above) is fulfilled for the given eObject.