org.sakaiproject.tool.gradebook.facades.sakai2impl
Class XmlImportable
java.lang.Object
org.sakaiproject.tool.gradebook.facades.sakai2impl.XmlImportable
- All Implemented Interfaces:
- org.sakaiproject.importer.api.Importable
public class XmlImportable
- extends Object
- implements org.sakaiproject.importer.api.Importable
A simple generic wrapper to add new types of importable objects without needing
to subclass each of them.
THIS IS CURRENTLY UNUSED. It's here on a speculative basis for upcoming
import/archive/merge development.
TODO This would subclass AbstractImportable if AbstractImportable was bumped up to
the importer.api package for looser coupling. Currently, the AbstractImportable JAR
brings in unrelated dependencies such as the QTI class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlImportable
public XmlImportable()
XmlImportable
public XmlImportable(String typeName,
String xmlData)
- Create an importable object in one line.
- Parameters:
typeName - identifies what type of domain data is serialized in the XMLxmlData - XML string describing the data itself, suitable for archiving
or merging
getTypeName
public String getTypeName()
- Specified by:
getTypeName in interface org.sakaiproject.importer.api.Importable
setTypeName
public void setTypeName(String typeName)
getXmlData
public String getXmlData()
setXmlData
public void setXmlData(String xmlData)
- Since this class doesn't parse the data, this property could easily be renamed
"setDataDescription" and this class renamed "StringImportable".
But since XML is central to our archive / export / merge plans, it seems
worth advertising that the data can be parsed as such.
- Parameters:
xmlData -
getParent
public org.sakaiproject.importer.api.Importable getParent()
- Specified by:
getParent in interface org.sakaiproject.importer.api.Importable
setParent
public void setParent(org.sakaiproject.importer.api.Importable parent)
- Specified by:
setParent in interface org.sakaiproject.importer.api.Importable
getGuid
public String getGuid()
- Specified by:
getGuid in interface org.sakaiproject.importer.api.Importable
setGuid
public void setGuid(String guid)
getLegacyGroup
public String getLegacyGroup()
- Specified by:
getLegacyGroup in interface org.sakaiproject.importer.api.Importable
setLegacyGroup
public void setLegacyGroup(String legacyGroup)
- Specified by:
setLegacyGroup in interface org.sakaiproject.importer.api.Importable
getContextPath
public String getContextPath()
- Specified by:
getContextPath in interface org.sakaiproject.importer.api.Importable
setContextPath
public void setContextPath(String contextPath)
- Specified by:
setContextPath in interface org.sakaiproject.importer.api.Importable
Copyright © 2003-2013 Sakai Project. All Rights Reserved.