public Attribute get(String name, boolean caseSensitive) { AttributeRole result = findRoleByName(name, caseSensitive); if (result == null) { result = findRoleBySpecialName(name, caseSensitive); } if (result != null) { return result.getAttribute(); } else { return null; } }
public Attribute getRegular(String name) { AttributeRole role = findRoleByName(name); if (role != null) { if (!role.isSpecial()) { return role.getAttribute(); } else { // LogService.getGlobal().logWarning("No regular attribute with name '"+name+"' found, // however, there is a special attribute with the same name."); LogService.getRoot() .log( Level.WARNING, "com.rapidminer.example.AbstractAttributes.no_regular_attribute_found", name); return null; } } else { return null; } // return findAttribute(name, iterator()); }
public Attribute getSpecial(String name) { AttributeRole role = findRoleBySpecialName(name); if (role == null) return null; else return role.getAttribute(); }