public class XmlFile extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlFile.Location |
| Modifier and Type | Method and Description |
|---|---|
static XmlTextRange |
attributeNameLocation(Attr node) |
static XmlTextRange |
attributeValueLocation(Attr node) |
static List<Node> |
children(Node node) |
static XmlFile |
create(org.sonar.api.batch.fs.InputFile inputFile) |
static XmlFile |
create(String str) |
static XmlTextRange |
endLocation(CDATASection node) |
static XmlTextRange |
endLocation(Element node) |
Charset |
getCharset() |
String |
getContents() |
Document |
getDocument() |
org.sonar.api.batch.fs.InputFile |
getInputFile() |
Document |
getNamespaceAwareDocument() |
Document |
getNamespaceUnawareDocument() |
Optional<PrologElement> |
getPrologElement() |
static Optional<XmlTextRange> |
getRange(Node node,
XmlFile.Location location) |
static XmlTextRange |
nameLocation(Element node) |
static XmlTextRange |
nodeLocation(Node node) |
static XmlTextRange |
startLocation(CDATASection node) |
static XmlTextRange |
startLocation(Element node) |
public static XmlFile create(org.sonar.api.batch.fs.InputFile inputFile) throws IOException
IOException@Nullable public org.sonar.api.batch.fs.InputFile getInputFile()
public String getContents()
public Charset getCharset()
public Document getDocument()
public Document getNamespaceAwareDocument()
public Document getNamespaceUnawareDocument()
public Optional<PrologElement> getPrologElement()
public static XmlTextRange startLocation(CDATASection node)
public static XmlTextRange endLocation(CDATASection node)
public static XmlTextRange startLocation(Element node)
public static XmlTextRange endLocation(Element node)
public static XmlTextRange nameLocation(Element node)
public static XmlTextRange attributeNameLocation(Attr node)
public static XmlTextRange attributeValueLocation(Attr node)
public static XmlTextRange nodeLocation(Node node)
public static Optional<XmlTextRange> getRange(Node node, XmlFile.Location location)
Copyright © 2009–2018 SonarSource. All rights reserved.