org.intuitel.merger
public class IMSLDSerializer extends XSLTSerializer
Further information of the transformation details can be found at the INTUITEL project page, at deliverable D4.2
Serializer
,
IMSLDSerializer
,
SerializerFactory
Modifier and Type | Field and Description |
---|---|
static String |
OWL_KO_LINKED_LMS |
static String |
OWL_KO_TITLE |
static String |
PREFIX_ACT |
static String |
PREFIX_CC |
static String |
PREFIX_KO |
static String |
PROP_SCHEMA |
static String |
PROP_SCHEMA_VERSION |
static String |
VALUE_IMS_LVL |
static String |
VALUE_IMS_URI |
static String |
VALUE_ROLE_LEARNER |
static String |
VALUE_SCHEMA |
static String |
VALUE_SCHEMA_VERSION |
static String |
VALUE_STRUCTURE_TYPE |
Constructor and Description |
---|
IMSLDSerializer() |
Modifier and Type | Method and Description |
---|---|
protected String |
getCCMXSLT()
Returns the path to the XSLT file that generates the CCM.
|
protected String |
getCMXSLT()
Returns the path to the XSLT file that generates the CM.
|
protected String |
getExternalFormatName()
Returns "IMSLD".
|
protected String |
getToExternalFormatXSLT()
Returns the path to the XSLT file that generates the IMS LD manifest file.
|
void |
marshall(SLOM theSlom,
Iterator<OutputStream> it)
Writes the information stored in a SLOM object in a OutputStream.
|
mergeCMandCCM, transformFile, unmarshall
public static final String PROP_SCHEMA
public static final String VALUE_SCHEMA
public static final String PROP_SCHEMA_VERSION
public static final String VALUE_SCHEMA_VERSION
public static final String VALUE_ROLE_LEARNER
public static final String VALUE_IMS_LVL
public static final String VALUE_IMS_URI
public static final String PREFIX_KO
public static final String PREFIX_CC
public static final String PREFIX_ACT
public static final String OWL_KO_TITLE
public static final String OWL_KO_LINKED_LMS
public static final String VALUE_STRUCTURE_TYPE
protected String getCCMXSLT()
getCCMXSLT
in class XSLTSerializer
protected String getCMXSLT()
getCMXSLT
in class XSLTSerializer
protected String getToExternalFormatXSLT()
getToExternalFormatXSLT
in class XSLTSerializer
protected String getExternalFormatName()
getExternalFormatName
in class XSLTSerializer
public void marshall(SLOM theSlom, Iterator<OutputStream> it) throws InvalidParameterException, IOException
The marshall method serializes a SLOM object and writes it as IMS LD manifest package.
The method accepts the SLOM object to be serialized, and a Iterator of OutputStream objects. In the case of IMSLD, only one OutputStream is required since all the information fits in the imsmanifest.xml file.
The method returns nothing, since the generated information is written in the OutputStream objects passed as parameter.
marshall
in class XSLTSerializer
theSlom
- A SLOM object containing the information to be serializedit
- A Iterator of OutputStream objects, that will be used to write the serializationInvalidParameterException
IOException
Copyright © 2014. All rights reserved.