www.sdmetrics.com

sdmetrics.model
Class VersionChecker

java.lang.Object
  |
  +--sdmetrics.model.VersionChecker

public class VersionChecker
extends java.lang.Object

Class to check the version attribute of an SDMetrics project file.


Constructor Summary
VersionChecker()
           
 
Method Summary
static void check(org.xml.sax.Attributes attrs, java.lang.String since)
          Test the "version" attribute of an XML element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionChecker

public VersionChecker()
Method Detail

check

public static void check(org.xml.sax.Attributes attrs,
                         java.lang.String since)
                  throws org.xml.sax.SAXException
Test the "version" attribute of an XML element. Currently known versions are 1.0, 1.1, 1.2, 1.3, 2.0.

Parameters:
attrs - The list of XML attributes returned by the XML parser.
since - The smallest version number that is accepted, or null if all known versions are accepted.
Throws:
org.xml.sax.SAXException - If no "version" attribute exists, or if the indicated version is not accepted.
java.lang.IllegalArgumentException - If the "since" version is not known.

www.sdmetrics.com