|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.tutor.cgWebService.scorm.simpleScorm2004.Manifest
public class Manifest
This class translates a part of a JDOM object into a Manifest Document according to the SCORM2004 Specification of IMS Content Package. We use the default structure: hierarchical structure for the organizations. Generally we have only one organization which is the default organization. The identifier of the manifest will be defined here in the class, whereas the other identifiers, for example for organizations, are parsed from the original OJDocument. The title of each item will be generated from the title map in the metadata, using the English version.
| Field Summary | |
|---|---|
static String |
xml_adlcp_ns
|
static String |
xml_Namespace
|
static String |
xml_NS_prefix
|
static String |
xmlns_xsi
|
static String |
xsi_location
|
| Constructor Summary | |
|---|---|
Manifest()
Initialises all the members in this class. |
|
Manifest(String xmlBase)
This constructor will be used if there's a special xmlBase defined. |
|
| Method Summary | |
|---|---|
void |
dump(StringBuffer buf,
int depth)
Dumps the contents of this subtree into the provided string buffer. |
String |
getVersion()
Version of a manifest (optional). |
String |
getXmlBase()
Returns the xml:base. |
void |
organizationsDump(StringBuffer buf,
int depth)
Dumps the contents of the organization elements into the provided string buffer |
void |
parse(OJDocument doc)
Parses the given OJDocument with the goal of creating a Manifest. |
void |
resourcesDump(StringBuffer buf,
int depth)
Dumps the contents of the resource elements into the provided string buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String xml_Namespace
public static final String xml_NS_prefix
public static final String xml_adlcp_ns
public static final String xmlns_xsi
public static final String xsi_location
| Constructor Detail |
|---|
public Manifest()
public Manifest(String xmlBase)
xmlBase - | Method Detail |
|---|
public void parse(OJDocument doc)
doc - (OJDocument)public String getVersion()
public String getXmlBase()
public void dump(StringBuffer buf,
int depth)
public void organizationsDump(StringBuffer buf,
int depth)
public void resourcesDump(StringBuffer buf,
int depth)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||