public class SimpleAttributeResolver<K extends org.eclipse.emf.ecore.EObject,T>
extends java.lang.Object
implements com.google.common.base.Function<K,T>
Modifier and Type | Field and Description |
---|---|
static SimpleAttributeResolver<org.eclipse.emf.ecore.EObject,java.lang.String> |
NAME_RESOLVER |
Modifier | Constructor and Description |
---|---|
protected |
SimpleAttributeResolver(java.lang.Class<T> type,
java.lang.String attributeName) |
Modifier and Type | Method and Description |
---|---|
T |
apply(K from) |
org.eclipse.emf.ecore.EAttribute |
getAttribute(org.eclipse.emf.ecore.EObject object) |
java.lang.Iterable<K> |
getMatches(java.lang.Iterable<K> candidates,
T value) |
T |
getValue(K object) |
static <K extends org.eclipse.emf.ecore.EObject,T> |
newResolver(java.lang.Class<T> type,
java.lang.String attributeName) |
public static final SimpleAttributeResolver<org.eclipse.emf.ecore.EObject,java.lang.String> NAME_RESOLVER
protected SimpleAttributeResolver(java.lang.Class<T> type, java.lang.String attributeName)
public static <K extends org.eclipse.emf.ecore.EObject,T> SimpleAttributeResolver<K,T> newResolver(java.lang.Class<T> type, java.lang.String attributeName)
public org.eclipse.emf.ecore.EAttribute getAttribute(org.eclipse.emf.ecore.EObject object)