org.odftoolkit.odfvalidator
public class ODFValidator extends Object implements ODFValidatorProvider
Modifier and Type | Field and Description |
---|---|
protected Configuration |
m_aConfig |
protected OdfVersion |
m_aVersion |
protected boolean |
m_bUseMathDTD |
protected OdfVersion |
mOdfPackageVersion |
Constructor and Description |
---|
ODFValidator(Configuration aConfig,
Logger.LogLevel nLogLevel,
boolean logAsHTML,
OdfVersion aVersion,
boolean bUseMathDTD)
Creates a new instance of Validator
|
ODFValidator(Configuration aConfig,
Logger.LogLevel nLogLevel,
OdfVersion aVersion,
boolean bUseMathDTD)
Creates a new instance of Validator
|
Modifier and Type | Method and Description |
---|---|
Validator |
getDSigValidator(PrintStream aOut,
OdfVersion aVersion) |
String |
getGenerator()
get Generator from last validateFile or validateStream call
|
Validator |
getManifestValidator(PrintStream aOut,
OdfVersion aVersion) |
String |
getMathMLDTDSystemId(OdfVersion aVersion) |
Validator |
getMathMLValidator(PrintStream aOut,
OdfVersion aVersion) |
String |
getOdfVersion()
Returns either the ODF version request to validate or the ODF version of the root document as fall-back
|
Validator |
getStrictValidator(PrintStream aOut,
OdfVersion aVersion) |
Validator |
getValidator(PrintStream aOut,
OdfVersion aVersion) |
void |
resetValidatorProvider() |
boolean |
validate(PrintStream aOut,
Configuration aConfig,
OdfValidatorMode eMode) |
boolean |
validate(PrintStream aOut,
InputStream aInputStream,
String aBaseURI,
OdfValidatorMode eMode,
SAXParseExceptionFilter aFilter) |
boolean |
validate(PrintStream aOut,
List<String> aFileNames,
String aExcludeRegExp,
OdfValidatorMode eMode,
boolean bRecursive,
String aFilterFileName) |
boolean |
validateFile(PrintStream aOut,
File aDocFile,
OdfValidatorMode eMode,
SAXParseExceptionFilter aFilter)
validate the input File
|
boolean |
validateStream(PrintStream aOut,
InputStream aInputStream,
String aBaseURI,
OdfValidatorMode eMode,
SAXParseExceptionFilter aFilter)
validate the input Stream
|
protected Configuration m_aConfig
protected OdfVersion m_aVersion
protected OdfVersion mOdfPackageVersion
protected boolean m_bUseMathDTD
public ODFValidator(Configuration aConfig, Logger.LogLevel nLogLevel, OdfVersion aVersion, boolean bUseMathDTD) throws ODFValidatorException
ODFValidatorException
public ODFValidator(Configuration aConfig, Logger.LogLevel nLogLevel, boolean logAsHTML, OdfVersion aVersion, boolean bUseMathDTD) throws ODFValidatorException
ODFValidatorException
public String getOdfVersion()
public boolean validate(PrintStream aOut, Configuration aConfig, OdfValidatorMode eMode) throws ODFValidatorException
ODFValidatorException
public boolean validate(PrintStream aOut, List<String> aFileNames, String aExcludeRegExp, OdfValidatorMode eMode, boolean bRecursive, String aFilterFileName) throws ODFValidatorException
ODFValidatorException
public boolean validate(PrintStream aOut, InputStream aInputStream, String aBaseURI, OdfValidatorMode eMode, SAXParseExceptionFilter aFilter) throws ODFValidatorException
ODFValidatorException
public boolean validateFile(PrintStream aOut, File aDocFile, OdfValidatorMode eMode, SAXParseExceptionFilter aFilter) throws ODFValidatorException
After validation the getGenerator method can be called to get the generator of the validated file
ODFValidatorException
public boolean validateStream(PrintStream aOut, InputStream aInputStream, String aBaseURI, OdfValidatorMode eMode, SAXParseExceptionFilter aFilter) throws ODFValidatorException
After validation the getGenerator method can be called to get the generator of the validated file
ODFValidatorException
public Validator getManifestValidator(PrintStream aOut, OdfVersion aVersion) throws ODFValidatorException
getManifestValidator
in interface ODFValidatorProvider
ODFValidatorException
public Validator getValidator(PrintStream aOut, OdfVersion aVersion) throws ODFValidatorException
getValidator
in interface ODFValidatorProvider
ODFValidatorException
public Validator getStrictValidator(PrintStream aOut, OdfVersion aVersion) throws ODFValidatorException
getStrictValidator
in interface ODFValidatorProvider
ODFValidatorException
public Validator getMathMLValidator(PrintStream aOut, OdfVersion aVersion) throws ODFValidatorException
getMathMLValidator
in interface ODFValidatorProvider
ODFValidatorException
public String getMathMLDTDSystemId(OdfVersion aVersion) throws ODFValidatorException
getMathMLDTDSystemId
in interface ODFValidatorProvider
ODFValidatorException
public Validator getDSigValidator(PrintStream aOut, OdfVersion aVersion) throws ODFValidatorException
getDSigValidator
in interface ODFValidatorProvider
ODFValidatorException
public void resetValidatorProvider()
resetValidatorProvider
in interface ODFValidatorProvider
public String getGenerator()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.