Classes | |
class | XPathMatchSetup |
Public Member Functions | |
ConfigFileRedeemerXml (Logger logger) throws Exception | |
String[] | getFileEndings () |
boolean | _isNotAConfigFile (File xmlFile) |
void | addXPathMatch (XPathMatchSetup xpathMatchSetup) |
Static Public Attributes | |
static final String | XSD_NS = "http://www.w3.org/2001/XMLSchema" |
Protected Member Functions | |
void | configure () |
Protected Attributes | |
List< XPathMatchSetup > | xpathMatchSetupList |
Class that can recognize XML files that are known to be not config files.
alma.acs.config.validators.ConfigFileRedeemerXml.ConfigFileRedeemerXml | ( | Logger | logger | ) | throws Exception |
boolean alma.acs.config.validators.ConfigFileRedeemerXml._isNotAConfigFile | ( | File | file | ) | [virtual] |
Called by isNotAConfigFile(File) only if the file ending matches one of the endings in getFileEndings().
Implements alma.acs.config.validators.ConfigFileRedeemer.
References alma.acs.config.validators.XmlNamespaceContextContainer.addNamespace(), alma.acs.config.validators.ConfigFileRedeemer.logger, and alma.acs.config.validators.ConfigFileRedeemerXml.xpathMatchSetupList.
void alma.acs.config.validators.ConfigFileRedeemerXml.addXPathMatch | ( | XPathMatchSetup | xpathMatchSetup | ) |
void alma.acs.config.validators.ConfigFileRedeemerXml.configure | ( | ) | [protected] |
Configures information about known files which should not be accused of being config files.
References alma.acs.config.validators.ConfigFileRedeemerXml.addXPathMatch(), and alma.acs.config.validators.ConfigFileRedeemerXml.XSD_NS.
Referenced by alma.acs.config.validators.ConfigFileRedeemerXml.ConfigFileRedeemerXml().
String [] alma.acs.config.validators.ConfigFileRedeemerXml.getFileEndings | ( | ) | [virtual] |
Subclasses supply the endings of files that they can possibly redeem.
Note that in order to match, the file name must end with one of the given strings, see String#endsWith(java.lang.String). The ending may therefore contain more than one '.'.
Implements alma.acs.config.validators.ConfigFileRedeemer.
List<XPathMatchSetup> alma.acs.config.validators.ConfigFileRedeemerXml.xpathMatchSetupList [protected] |
final String alma.acs.config.validators.ConfigFileRedeemerXml.XSD_NS = "http://www.w3.org/2001/XMLSchema" [static] |
Referenced by alma.acs.config.validators.ConfigFileRedeemerXml.configure().