public boolean matches(List<String> wildcards, String namespace) { if (!wildcards.isEmpty()) { for (int i = 0, size = wildcards.size(); i < size; ++i) { String wildcard = wildcards.get(i); if (matches(wildcard, namespace)) { return true; } } } return false; }
public boolean matches(List<String> wildcards, String namespace) { if (!wildcards.isEmpty()) { for (int i = 0, size = wildcards.size(); i < size; ++i) { String wildcard = wildcards.get(i); if (matches(wildcard, namespace)) { return true; } } } return false; }
public EStructuralFeature getElementWildcardAffiliation(EClass eClass, String namespace, String name) { List<EStructuralFeature> allElements = getAllElements(eClass); for (int i = 0, size = allElements.size(); i < size; ++i) { EStructuralFeature result = allElements.get(i); if (matches(getWildcards(result), namespace)) { return result; } } return null; }
public EStructuralFeature getAttributeWildcardAffiliation(EClass eClass, String namespace, String name) { List<EStructuralFeature> allAttributes = getAllAttributes(eClass); for (int i = 0, size = allAttributes.size(); i < size; ++i) { EStructuralFeature result = allAttributes.get(i); if (matches(getWildcards(result), namespace)) { return result; } } return null; }
public EStructuralFeature getElementWildcardAffiliation(EClass eClass, String namespace, String name) { List<EStructuralFeature> allElements = getAllElements(eClass); for (int i = 0, size = allElements.size(); i < size; ++i) { EStructuralFeature result = allElements.get(i); if (matches(getWildcards(result), namespace)) { return result; } } return null; }
public EStructuralFeature getAttributeWildcardAffiliation(EClass eClass, String namespace, String name) { List<EStructuralFeature> allAttributes = getAllAttributes(eClass); for (int i = 0, size = allAttributes.size(); i < size; ++i) { EStructuralFeature result = allAttributes.get(i); if (matches(getWildcards(result), namespace)) { return result; } } return null; }