01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/trunk/component/src/java/org/sakaiproject/tool/assessment/qti/constants/QTIVersion.java $
03: * $Id: QTIVersion.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the"License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.tool.assessment.qti.constants;
21:
22: /**
23: * <p>Supported QTI Versions.</p>
24: * <p> </p>
25: * <p>Copyright: Copyright (c) 2005 Sakai</p>
26: * <p> </p>
27: * @author Ed Smiley esmiley@stanford.edu
28: * @version $Id: QTIVersion.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
29: */
30:
31: public class QTIVersion {
32: public static final int VERSION_1_2 = 1;
33: public static final int VERSION_2_0 = 2;
34:
35: public QTIVersion() {
36: }
37:
38: /**
39: * @param q
40: * @return true if
41: * OK (QTI_VERSION_1_2 or QTI_VERSION_2_0)
42: */
43: public static boolean isValid(int q) {
44: return (q == VERSION_1_2 || q == VERSION_2_0) ? true : false;
45: }
46:
47: }
|