Class IdentifierEObjectMatcher.DefaultIDFunction
- java.lang.Object
-
- org.eclipse.emf.compare.match.eobject.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 Summary
Constructors Constructor Description DefaultIDFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(EObject eObject)
Return an ID for an EObject, null if not found.
-
-
-
Method Detail
-
apply
public String apply(EObject eObject)
Return an ID for an EObject, null if not found.- Specified by:
apply
in interfacecom.google.common.base.Function<EObject,String>
- Specified by:
apply
in interfaceFunction<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.
-
-