Class DotNetAttributeLocator
java.lang.Object
io.jenkins.plugins.configsplice.engine.xml.DotNetAttributeLocator
Locates the source range of the attribute value addressed by a
DotNetPath
(SRS sections 8.1 to 8.4).
Two passes, with a deliberate split of responsibilities:
- StAX, configured to refuse DTDs and external entities, proves the document is well formed and safe. Nothing is located here; this pass exists so that malformed or hostile input is rejected before any hand-written code looks at the text.
XmlTagScannerwalks the proven-good text and computes exact ranges.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA located attribute value. -
Method Summary
Modifier and TypeMethodDescriptionlocate(String text, DotNetPath path) Finds the attribute addressed bypath.
-
Method Details
-
locate
public static DotNetAttributeLocator.Located locate(String text, DotNetPath path) throws SpliceException Finds the attribute addressed bypath.- Throws:
SpliceException-ErrorCode.PATH_MISSINGwhen no<add>matches or the requested attribute is absent,ErrorCode.PATH_AMBIGUOUSwhen more than one matches,ErrorCode.PARSE_FAILEDon malformed or unsafe input
-