org.progeeks.tool.xml
Class XmlValidator
java.lang.Object
org.progeeks.tool.xml.XmlValidator
public class XmlValidator
- extends java.lang.Object
Utility that can validate different XML files based on signature.
- Version:
- $Revision: 1.6 $
- Author:
- Paul Speed
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RETURN_VALID
public static final int RETURN_VALID
- See Also:
- Constant Field Values
RETURN_INVALID
public static final int RETURN_INVALID
- See Also:
- Constant Field Values
RETURN_IGNORED
public static final int RETURN_IGNORED
- See Also:
- Constant Field Values
XmlValidator
public XmlValidator()
setXmlProfiles
public void setXmlProfiles(java.util.List profiles)
getXmlProfiles
public java.util.List getXmlProfiles()
getLastError
public java.lang.Throwable getLastError()
getLastProfile
public ObjectXmlProfile getLastProfile()
validate
public int validate(java.io.File f)
isValidForProfile
protected boolean isValidForProfile(java.io.File f,
ObjectXmlProfile profile)
getSignature
public java.lang.String getSignature(java.io.File f)
validateFile
public void validateFile(java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
validateFiles
public void validateFiles(java.util.List files)
throws java.io.IOException
- Throws:
java.io.IOException
loadValidator
public static XmlValidator loadValidator(java.io.File config)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2002-2003 Paul Speed. All Rights Reserved.