import default import semmle.code.java.frameworks.spring.SpringXMLElement /** Represents a <value> element in a Spring XML file*/ class SpringValue extends SpringXMLElement { SpringValue() { this.getName() = "value" } /** returns the value of the type attribute*/ string getTypeName() { result = this.getAttributeValue("type") } /** Returs the java RefType (class or interface) referred to by the type attribute*/ RefType getType() { result.getQualifiedName() = this.getTypeName() } }