List<AttributeClass> result = new LinkedList<AttributeClass>(); String[] cnames = value.split(","); for (String cname : cnames) { try { AttributeClass ac = AttributeClass.valueOf(cname); result.add(ac); } catch (IllegalArgumentException iae) { throw new DocumentException("attrs file("+file+") " + attr + " invalid class name: " + value); } } return result; }
List<AttributeClass> result = new LinkedList<AttributeClass>(); String[] cnames = value.split(","); for (String cname : cnames) { try { AttributeClass ac = AttributeClass.valueOf(cname); result.add(ac); } catch (IllegalArgumentException iae) { throw new DocumentException("attrs file("+file+") " + attr + " invalid class: " + value); } } return result; }
    private static List<AttributeClass> getAttributeClasses(String file, String attr, String value) throws DocumentException {		List<AttributeClass> result = new LinkedList<AttributeClass>();		String[] cnames = value.split(",");		for (String cname : cnames) {			try {				AttributeClass ac = AttributeClass.valueOf(cname);				result.add(ac);			} catch (IllegalArgumentException iae) {				throw new DocumentException("attrs file("+file+") " + attr + " invalid class name: " + value);			}		}		return result;	}