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