import default import semmle.code.java.frameworks.spring.SpringMergable /** is the superclass of SpringList and SpringSet, which represent <list> and <set> * elements in Spring XML files*/ class SpringListOrSet extends SpringMergable { SpringListOrSet() { this.getName() = "list" or this.getName() = "set" } /** returns the value of the value-type attribute*/ string getValueTypeName() { result = this.getAttributeValue("value-type") } /** returns the java RefType (class or interface) that corresponds to the value-type*/ RefType getValueType() { result.getQualifiedName() = this.getValueTypeName() } }