public final class XMLFileFilter extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
rootElementMatches(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource fileResource,
String path,
String expectedRootElement)
Matches a file resource for being an XML file with a specific root
element.
|
public static boolean rootElementMatches(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource fileResource,
String path,
String expectedRootElement)
throws IOException
fileResource - The file resource.path - The path of the file resource.expectedRootElement - The expected local name of the root element.true If the file is an XML file and contains the
expected root element.IOException - If the file resource cannot be read.Copyright © 2016 buschmais GbR. All rights reserved.