CodeQL library for Java/Kotlin
codeql/java-all 4.0.1-dev (changelog, source)
Search

Class SpringProperty

A <property> element in Spring XML files.

Import path

import semmle.code.java.frameworks.spring.SpringProperty

Direct supertypes

Indirect supertypes

Predicates

getPropertyName

Gets the value of the name attribute.

getPropertyRefBean

Gets the bean referred to by the ref attribute or a nested <ref> element.

getPropertyRefString

Gets the value of the ref attribute.

getPropertyValue

Gets the value of the value attribute, or a nested <value> element, whichever is present.

getPropertyValueString

Gets the value of the value attribute.

getSetterMethod

Gets a setter method declared on this property’s enclosing bean that sets this property.

getSetterMethod

Gets a setter method declared on bean context that sets this property.

hasPropertyRefString

Holds if this property has a ref attribute.

hasPropertyValueString

Holds if this property has a value attribute.

isSimilar

Holds if this property is similar to another property. Currently only checks the property name and references to beans.

toString

Gets a printable representation of this XML element.

Inherited predicates

allCharactersString

Gets the result of appending all the character sequences of this XML parent from left to right, separated by a space.

from XmlParentImpl
getACharactersSet

Gets a character sequence that is a child of this XML parent.

from XmlParentImpl
getAChild

Gets a child element of this XML parent.

from XmlParentImpl
getAChild

Gets a child element of this XML parent with the given name.

from XmlParentImpl
getAComment

Gets a comment that is a child of this XML parent.

from XmlParentImpl
getASpringChild

Gets a child of this Spring XML element.

from SpringXmlElement
getAnAttribute

Gets an XML attribute of this XML element.

from XmlElementImpl
getAttribute

Gets the attribute with the specified name, if any.

from XmlElementImpl
getAttributeValue

Gets the value of the attribute with the specified name, if any.

from XmlElementImpl
getAttributeValueWithDefault

Gets the value of the attribute with name attributeName, or “default” if the attribute is not present.

from SpringXmlElement
getChild

Gets the child element at a specified index of this XML parent.

from XmlParentImpl
getContentStringfrom SpringXmlElement
getDepth

Gets the depth of this element within the XML file tree structure.

from XmlElementImpl
getElementPositionIndex

Gets the index of this XML element among its parent’s children.

from XmlElementImpl
getEnclosingBean

Gets the closest enclosing <bean> element.

from SpringXmlElement
getFile

Gets the XML file in which this XML element occurs.

from XmlElementImpl
getIndex

Gets the index of this XML element among its parent’s children.

from XmlElementImpl
getLocation

Gets the location of this element.

from XmlLocatableImpl
getName

Gets the name of this XML element.

from XmlElementImpl
getNamespace

Gets the namespace of this XML element, if any.

from XmlElementImpl
getNumberOfCharacterSets

Gets the number of places in the body of this XML parent where text occurs.

from XmlParentImpl
getNumberOfChildren

Gets the number of child XML elements of this XML parent.

from XmlParentImpl
getParent

Gets the parent of this XML element.

from XmlElementImpl
getSpringBeanFile

Gets the bean file of this XML element.

from SpringXmlElement
getTextValue

Gets the text value contained in this XML parent.

from XmlParentImpl
hasAttribute

Holds if this XML element has an attribute with the specified name.

from XmlElementImpl
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from XmlLocatableImpl
hasName

Holds if this XML element has the given name.

from XmlElementImpl
hasNamespace

Holds if this XML element has a namespace.

from XmlElementImpl

Charpred