org.activemath.webapp.tutor.cgWebService.ServiceController
Class Translator
java.lang.Object
org.activemath.webapp.tutor.cgWebService.ServiceController.Translator
public class Translator
- extends Object
Currently this class translates the OJDocument to Manifest according to SCORM2004.
|
Method Summary |
static Translator |
getInstance()
|
org.apache.axiom.om.OMElement |
parseDOM(OJDocument doc)
Converts an OJDocument into an OMElement, whereas the content and format doesn't changed. |
org.apache.axiom.om.OMElement |
parseManifest(OJDocument doc)
Parses an OJDocument and creates a manifest XML Stream,
which is built into an OMElement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Category log
getInstance
public static Translator getInstance()
parseDOM
public org.apache.axiom.om.OMElement parseDOM(OJDocument doc)
throws InvalidOJDocumentException,
XMLStreamException
- Converts an OJDocument into an OMElement, whereas the content and format doesn't changed.
- Parameters:
doc -
- Returns:
- the OMElement containing the OJDocument.
- Throws:
InvalidOJDocumentException
XMLStreamException
parseManifest
public org.apache.axiom.om.OMElement parseManifest(OJDocument doc)
throws InvalidOJDocumentException,
XMLStreamException
- Parses an OJDocument and creates a manifest XML Stream,
which is built into an OMElement.
- Parameters:
doc -
- Returns:
- the OMElement containing the Manifest
- Throws:
InvalidOJDocumentException
XMLStreamException