|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.tutor.coursegen.jshop2.JShopUtil
public class JShopUtil
This class contains utilities for converting a JShop2 plan into an OJDocument.
| Field Summary | |
|---|---|
static String |
DYNAMIC_TASK_OPERATOR
Insert a dynamic task. |
static String |
END_SEC_OPERATOR
End a section(Omgroup). |
static String |
INSERT_ELE_OPERATOR
Insert a referent to learning Object. |
static String |
INSERT_SERVICE_OPERATOR
Insert a learning service |
static String |
START_SEC_OPERATOR
Beginn a new section(Omgroup). |
static String |
TEXT_OPERATOR
Insert a text |
| Constructor Summary | |
|---|---|
JShopUtil()
|
|
| Method Summary | |
|---|---|
static List |
convertToStringList(List course)
convert the Predicate Objects in the List to Strings for more efficient parsing |
static String |
getCurrentDate()
This method return the current date of the system's computer in following format: "yyyy-MM-dd'T'HH:mm:ss" |
static String |
getDocumentString(OJDocument omdoc)
print out the DOM Object as XML string |
static OJDocument |
plan2OmdocJDom(List course)
This method is used to generate a OmdocJDom document from a JShop2 plan. |
static List |
removeEmptySections(List course)
Filter the list of String, remove such empty sections. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String START_SEC_OPERATOR
public static final String END_SEC_OPERATOR
public static final String INSERT_ELE_OPERATOR
public static final String INSERT_SERVICE_OPERATOR
public static final String TEXT_OPERATOR
public static final String DYNAMIC_TASK_OPERATOR
DynamicItemDynamicTask
| Constructor Detail |
|---|
public JShopUtil()
| Method Detail |
|---|
public static OJDocument plan2OmdocJDom(List course)
course -
public static List convertToStringList(List course)
course - (List of Predicate
public static List removeEmptySections(List course)
course -
public static String getDocumentString(OJDocument omdoc)
public static String getCurrentDate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||