@@ -16,7 +16,7 @@ predicate applyDeviationsAtQueryLevel() {
1616}
1717
1818/** A `coding-standards.xml` configuration file (usually generated from an YAML configuration file). */
19- class CodingStandardsFile extends XMLFile {
19+ class CodingStandardsFile extends XmlFile {
2020 CodingStandardsFile ( ) {
2121 this .getBaseName ( ) = "coding-standards.xml" and
2222 // Must be within the users source code.
@@ -25,7 +25,7 @@ class CodingStandardsFile extends XMLFile {
2525}
2626
2727/** A "Coding Standards" configuration file */
28- class CodingStandardsConfig extends XMLElement {
28+ class CodingStandardsConfig extends XmlElement {
2929 CodingStandardsConfig ( ) {
3030 any ( CodingStandardsFile csf ) .getARootElement ( ) = this and
3131 this .getName ( ) = "codingstandards"
@@ -36,31 +36,31 @@ class CodingStandardsConfig extends XMLElement {
3636}
3737
3838/** An element which tells the analysis whether to report deviated results. */
39- class CodingStandardsReportDeviatedAlerts extends XMLElement {
39+ class CodingStandardsReportDeviatedAlerts extends XmlElement {
4040 CodingStandardsReportDeviatedAlerts ( ) {
4141 getParent ( ) instanceof CodingStandardsConfig and
4242 hasName ( "report-deviated-alerts" )
4343 }
4444}
4545
4646/** A container of deviation records. */
47- class DeviationRecords extends XMLElement {
47+ class DeviationRecords extends XmlElement {
4848 DeviationRecords ( ) {
4949 getParent ( ) instanceof CodingStandardsConfig and
5050 hasName ( "deviations" )
5151 }
5252}
5353
5454/** A container for the deviation permits records. */
55- class DeviationPermits extends XMLElement {
55+ class DeviationPermits extends XmlElement {
5656 DeviationPermits ( ) {
5757 getParent ( ) instanceof CodingStandardsConfig and
5858 hasName ( "deviation-permits" )
5959 }
6060}
6161
6262/** A deviation permit record, that is specified by a permit identifier */
63- class DeviationPermit extends XMLElement {
63+ class DeviationPermit extends XmlElement {
6464 DeviationPermit ( ) {
6565 getParent ( ) instanceof DeviationPermits and
6666 hasName ( "deviation-permits-entry" )
@@ -143,7 +143,7 @@ class DeviationPermit extends XMLElement {
143143}
144144
145145/** A deviation record, that is a specified rule or query */
146- class DeviationRecord extends XMLElement {
146+ class DeviationRecord extends XmlElement {
147147 DeviationRecord ( ) {
148148 getParent ( ) instanceof DeviationRecords and
149149 hasName ( "deviations-entry" )
@@ -159,13 +159,13 @@ class DeviationRecord extends XMLElement {
159159
160160 private string getRawPermitId ( ) { result = getAChild ( "permit-id" ) .getTextValue ( ) }
161161
162- private XMLElement getRawRaisedBy ( ) { result = getAChild ( "raised-by" ) }
162+ private XmlElement getRawRaisedBy ( ) { result = getAChild ( "raised-by" ) }
163163
164164 private string getRawRaisedByName ( ) { result = getRawRaisedBy ( ) .getAChild ( "name" ) .getTextValue ( ) }
165165
166166 private string getRawRaisedByDate ( ) { result = getRawRaisedBy ( ) .getAChild ( "date" ) .getTextValue ( ) }
167167
168- private XMLElement getRawApprovedBy ( ) { result = getAChild ( "approved-by" ) }
168+ private XmlElement getRawApprovedBy ( ) { result = getAChild ( "approved-by" ) }
169169
170170 private string getRawApprovedByName ( ) {
171171 result = getRawApprovedBy ( ) .getAChild ( "name" ) .getTextValue ( )
0 commit comments