001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/trunk/component/src/java/org/sakaiproject/tool/assessment/qti/constants/AuthoringConstantStrings.java $
003: * $Id: AuthoringConstantStrings.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the"License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.tool.assessment.qti.constants;
021:
022: import org.sakaiproject.util.ResourceLoader;
023:
024: /**
025: * A set of strings for QTI XML item characteristics
026: *
027: * @author rshastri
028: */
029:
030: /**
031: * This class contains authoring strings and names frequently used
032: * in the Java code for QTI authoring.
033: */
034: public class AuthoringConstantStrings {
035:
036: /*
037: org.sakaiproject.tool.assessment.bundle.Messages:
038:
039:
040: anonymous = Anonymous Users
041: authenticated = Authenticated Users
042:
043: # AssessmentFacadeQueries.java
044: new_section = this section is added when a new assessment is created
045:
046: # AuthoringConstantStrings.java
047: matching = Matching
048: fib = Fill In the Blank
049: fin= Numeric Response
050: mcmc = Multiple Correct Answer
051: mcsc = Multiple Choice
052: tf = True False
053: survey = Multiple Choice Survey
054: essay = Short Answers/Essay
055: essay_alt = Essay
056: audio = Audio Recording
057: file = File Upload
058: */
059:
060: //private static ResourceLoader rb = new ResourceLoader("org.sakaiproject.tool.assessment.bundle.Messages");
061: //BUT ALL OF THEM ARE STATIC AND FINAL... THIS IS NOT A GOOD COMBINATION WITH RESOURCELOADES...
062: //
063: public static final String UNLIMITED_SUBMISSIONS = "9999";
064:
065: // use static final string instead of rb.getString() because samigo-service is deployed in shared/lib and has no access to sakai-util, which contains the REsourceLoader
066: // These are not strings displayed in UI.
067:
068: public static final String ANONYMOUS = "Anonymous Users";
069: public static final String AUTHENTICATED = "Authenticated Users";
070:
071: //Item Types
072: public static final String MATCHING = "Matching";
073: public static final String FIB = "Fill In the Blank";
074: public static final String FIN = "Numeric Response";
075: public static final String MCMC = "Multiple Correct Answer";
076: public static final String MCSC = "Multiple Choice";
077: public static final String TF = "True False";
078: public static final String SURVEY = "Multiple Choice Survey";
079: public static final String ESSAY = "Short Answers/Essay";
080: public static final String ESSAY_ALT = "Essay";
081: public static final String AUDIO = "Audio Recording";
082: public static final String FILE = "File Upload";
083:
084: /*
085: public static final String ANONYMOUS = rb.getString("anonymous"); // Anonymous Users
086: public static final String AUTHENTICATED = rb.getString("authenticated"); // Authenticated Users
087:
088: //Item Types
089: public static final String MATCHING = rb.getString("matching"); //"Matching"
090: public static final String FIB = rb.getString("fib"); //"Fill In the Blank"
091: public static final String FIN = rb.getString("fin"); //"Numeric Response"
092: public static final String MCMC = rb.getString("mcmc"); //"Multiple Correct Answer"
093: public static final String MCSC = rb.getString("mcsc"); // "Multiple Choice"
094: public static final String TF = rb.getString("tf"); // "True False"
095: public static final String SURVEY = rb.getString("survey"); // "Multiple Choice Survey"
096: public static final String ESSAY = rb.getString("essay"); // "Short Answers/Essay"
097: public static final String ESSAY_ALT = rb.getString("essay_alt"); // "Essay"
098: public static final String AUDIO = rb.getString("audio"); // "Audio Recording"
099: public static final String FILE = rb.getString("file"); // "File Upload"
100: */
101:
102: // "Unknown Type" is a placeholder for the invalid '0' , "Unused Type" is an alternate MCMC
103: // Lydia 9/29/2006 : added "" before FIN, because Diego used 11 as the type. Rather than changing the conversion script for SAM_TYPE_D table,
104: // I'm just adding an "" to make FIN the itemTypes[11]. This is used in ItemTypeExtractionStrategy.getValidType()
105: public static final String[] itemTypes = { "Unknown Type", MCSC,
106: MCMC, SURVEY, TF, ESSAY, FILE, AUDIO, FIB, MATCHING, "",
107: FIN };
108:
109: // Feedback Type
110: public static final String FEEDBACKTYPE_IMMEDIATE = "IMMEDIATE";
111: public static final String FEEDBACKTYPE_DATED = "DATED";
112: public static final String FEEDBACKTYPE_NONE = "NONE";
113: }
|