Class SpringEntry

An <entry> element in Spring XML files.

Import path

import semmle.code.java.frameworks.spring.SpringEntry

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    getKeyRefBean

    Gets the bean pointed to by the key-ref attribute, or a nested <ref> or <idref> element.

    getKeyRefString

    Gets the value of key-ref attribute.

    getKeyString

    Gets the value of the key attribute.

    getValueRefBean

    Gets the bean pointed to by either the value-ref attribute, or a nested <ref> or` element, whichever is present.

    getValueRefString

    Gets the value of the value-ref attribute.

    getValueString

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

    getValueStringRaw

    Gets the value of the value attribute.

    hasKeyRefString

    Holds if this entry has a key-ref attribute.

    hasKeyString

    Holds if this entry has a key attribute.

    hasValueRefString

    Holds if this entry has a value-ref attribute.

    hasValueStringRaw

    Holds if this entry has a value attribute.

    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 XMLParent
    charsSetUpTo

    DEPRECATED: Internal.

    from XMLParent
    getACharactersSet

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

    from XMLParent
    getAChild

    Gets a child element of this XML parent.

    from XMLParent
    getAChild

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

    from XMLParent
    getAComment

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

    from XMLParent
    getALocation

    DEPRECATED: Use getLocation() instead.

    from XMLLocatable
    getASpringChild

    Gets a child of this Spring XML element.

    from SpringXMLElement
    getAnAttribute

    Gets an XML attribute of this XML element.

    from XMLElement
    getAttribute

    Gets the attribute with the specified name, if any.

    from XMLElement
    getAttributeValue

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

    from XMLElement
    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 XMLParent
    getContentStringfrom SpringXMLElement
    getDepth

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

    from XMLElement
    getElementPositionIndex

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

    from XMLElement
    getEnclosingBean

    Gets the closest enclosing <bean> element.

    from SpringXMLElement
    getFile

    Gets the XML file in which this XML element occurs.

    from XMLElement
    getIndex

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

    from XMLElement
    getLocation

    Gets the source location for this element.

    from XMLLocatable
    getName

    Gets the name of this XML element.

    from XMLElement
    getNamespace

    Gets the namespace of this XML element, if any.

    from XMLElement
    getNumberOfCharacterSets

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

    from XMLParent
    getNumberOfChildren

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

    from XMLParent
    getParent

    Gets the parent of this XML element.

    from XMLElement
    getSpringBeanFile

    Gets the bean file of this XML element.

    from SpringXMLElement
    getTextValue

    Gets the text value contained in this XML parent.

    from XMLParent
    hasAttribute

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

    from XMLElement
    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 XMLLocatable
    hasName

    Holds if this XML element has the given name.

    from XMLElement
    hasNamespace

    Holds if this XML element has a namespace.

    from XMLElement
    isSimilar

    Overridden by subclasses. Used to match value, property and ref elements for similarity.

    from SpringXMLElement
    toString

    Gets a printable representation of this XML element.

    from XMLElement

    Charpred