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.
|
static Boolean |
rootElementMatches(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource fileResource,
String path,
String expectedRootElement,
String expectedNameSpace) |
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.public static Boolean rootElementMatches(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource fileResource, String path, String expectedRootElement, String expectedNameSpace) throws IOException
IOExceptionCopyright © 2016 buschmais GbR. All rights reserved.